/* ─── WUS Forms Front-end ─── */

.wus-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.wus-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.wus-form-field {
    margin-bottom: 4px;
}
.wus-field-full  { width: 100%; flex: 0 0 100%; }
.wus-field-half  { width: calc(50% - 8px); flex: 0 0 calc(50% - 8px); }
.wus-field-third { width: calc(33.333% - 11px); flex: 0 0 calc(33.333% - 11px); }

@media (max-width: 600px) {
    .wus-field-half,
    .wus-field-third {
        width: 100%;
        flex: 0 0 100%;
    }
}

.wus-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.wus-required {
    color: #d63638;
}

.wus-form-field input[type="text"],
.wus-form-field input[type="email"],
.wus-form-field input[type="tel"],
.wus-form-field input[type="url"],
.wus-form-field input[type="number"],
.wus-form-field textarea,
.wus-form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.wus-form-field input:focus,
.wus-form-field textarea:focus,
.wus-form-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}
.wus-form-field input.wus-field-invalid,
.wus-form-field textarea.wus-field-invalid,
.wus-form-field select.wus-field-invalid {
    border-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.15);
}

.wus-form-field input[type="file"] {
    padding: 8px;
    font-size: 14px;
}

.wus-field-description {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}
.wus-field-hint {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 4px;
}

.wus-field-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 4px;
}

/* ─── Options (checkbox/radio) ─── */
.wus-form-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Option column grids */
.wus-form-options.wus-options-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}
.wus-form-options.wus-options-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}
.wus-form-options.wus-options-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 16px;
}

@media (max-width: 600px) {
    .wus-form-options.wus-options-cols-2,
    .wus-form-options.wus-options-cols-3,
    .wus-form-options.wus-options-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .wus-form-options.wus-options-cols-2,
    .wus-form-options.wus-options-cols-3,
    .wus-form-options.wus-options-cols-4 {
        grid-template-columns: 1fr;
    }
}

.wus-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}
.wus-option input {
    margin: 0;
    flex-shrink: 0;
}

/* ─── Heading ─── */
.wus-form-heading {
    width: 100%;
    flex: 0 0 100%;
}
.wus-form-heading h3 {
    margin: 8px 0 4px;
    font-size: 18px;
    color: #333;
}
.wus-form-heading p {
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

/* ─── Paragraph ─── */
.wus-form-paragraph {
    margin-bottom: 4px;
}
.wus-paragraph-text {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* ─── HTML / Divider ─── */
.wus-form-html {
    width: 100%;
    flex: 0 0 100%;
}
.wus-form-divider {
    width: 100%;
    flex: 0 0 100%;
    border: none;
    border-top: 1px solid #ddd;
    margin: 8px 0;
}

/* ─── Spacer ─── */
.wus-form-spacer {
    /* height set inline */
}

/* ─── Field Group ─── */
.wus-form-group {
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 4px;
}
.wus-group-label {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.wus-group-inner {
    display: grid;
    gap: 16px;
}
.wus-group-cols-2 .wus-group-inner { grid-template-columns: repeat(2, 1fr); }
.wus-group-cols-3 .wus-group-inner { grid-template-columns: repeat(3, 1fr); }
.wus-group-cols-4 .wus-group-inner { grid-template-columns: repeat(4, 1fr); }

.wus-field-group-child {
    width: 100%;
    min-width: 0;
}

@media (max-width: 600px) {
    .wus-group-cols-2 .wus-group-inner,
    .wus-group-cols-3 .wus-group-inner,
    .wus-group-cols-4 .wus-group-inner {
        grid-template-columns: 1fr;
    }
}

/* ─── Submit ─── */
.wus-form-submit {
    width: 100%;
    flex: 0 0 100%;
    margin-top: 8px;
}
.wus-form .wus-form-btn {
    display: inline-block !important;
    padding: 12px 32px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    line-height: 1.4 !important;
    min-width: 120px !important;
    text-align: center !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: auto !important;
    -webkit-appearance: none !important;
}
.wus-form .wus-form-btn:hover {
    background: #005a87 !important;
    color: #fff !important;
    border: none !important;
}
.wus-form .wus-form-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}
.wus-form-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}
.wus-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: wus-spin 0.6s linear infinite;
}
@keyframes wus-spin {
    to { transform: rotate(360deg); }
}

/* ─── Messages ─── */
.wus-form-messages {
    width: 100%;
    flex: 0 0 100%;
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
}
.wus-form-messages.wus-msg-success {
    background: #ecfdf3;
    border: 1px solid #a3e2c0;
    color: #1a7a4c;
}
.wus-form-messages.wus-msg-error {
    background: #fdf2f2;
    border: 1px solid #e2a3a3;
    color: #a00;
}

/* ─── Honeypot ─── */
.wus-form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.wus-form-error {
    color: #a00;
    font-style: italic;
}

/* ─── Multi-Page Step Indicator ─── */
.wus-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 28px;
    padding: 0 16px;
    gap: 0;
}
.wus-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.wus-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;

    /* Inactive: white bg, dark text */
    background: #ffffff;
    color: #0a1543;
    border: 2px solid #0a1543;
}
.wus-step-active .wus-step-circle {
    /* Active: dark bg, white text */
    background: #0a1543;
    color: #ffffff;
    border-color: #0a1543;
    box-shadow: 0 2px 8px rgba(10, 21, 67, 0.3);
}
.wus-step-completed .wus-step-circle {
    background: #0a1543;
    color: #ffffff;
    border-color: #0a1543;
}
.wus-step-completed .wus-step-circle::after {
    content: '✓';
    font-size: 16px;
}
.wus-step-completed .wus-step-circle {
    font-size: 0; /* hide the number */
}

.wus-step-label {
    font-size: 11px;
    color: #888;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
    transition: color 0.3s ease;
}
.wus-step-active .wus-step-label {
    color: #0a1543;
    font-weight: 600;
}
.wus-step-completed .wus-step-label {
    color: #0a1543;
}

.wus-step-connector {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 8px;
    margin-bottom: 18px; /* offset for labels */
    transition: background 0.3s ease;
}
.wus-step-connector.wus-connector-active {
    background: #0a1543;
}

/* ─── Page Nav ─── */
.wus-form-page {
    width: 100%;
    flex: 0 0 100%;
}
.wus-form-page .wus-form-field,
.wus-form-page .wus-form-group,
.wus-form-page .wus-form-heading,
.wus-form-page .wus-form-paragraph,
.wus-form-page .wus-form-html,
.wus-form-page .wus-form-divider,
.wus-form-page .wus-form-spacer {
    /* Fields inside pages keep normal flow */
}

.wus-form-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    width: 100%;
}

.wus-form .wus-btn-back {
    background: #ffffff !important;
    color: #0a1543 !important;
    border: 2px solid #0a1543 !important;
    border-radius: 6px !important;
    padding: 12px 32px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: auto !important;
    line-height: 1.4 !important;
}
.wus-form .wus-btn-back:hover {
    background: #f5f5f5 !important;
}

.wus-form .wus-btn-next,
.wus-form .wus-btn-submit {
    background: #0a1543 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 32px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: auto !important;
    line-height: 1.4 !important;
}
.wus-form .wus-btn-next:hover,
.wus-form .wus-btn-submit:hover {
    background: #162058 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
}

/* ─── Page transition animation ─── */
.wus-form-page {
    animation: wusPageIn 0.3s ease;
}
@keyframes wusPageIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wus-step-label {
        font-size: 10px;
        max-width: 60px;
    }
    .wus-step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .wus-step-connector {
        margin: 0 4px;
    }
}

/* ── FAQ Generator ── */
.wus-faq-generator {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fafbfc;
}
.wus-faq-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.wus-faq-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    transition: background 0.2s;
}
.wus-faq-item:last-child {
    border-bottom: none;
}
.wus-faq-item.wus-faq-active {
    background: #f0f7ff;
    margin: 0 -16px;
    padding: 12px 16px;
    border-radius: 6px;
    border-bottom-color: transparent;
}
.wus-faq-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
    padding: 4px 0;
}
.wus-faq-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0a1543;
    cursor: pointer;
}
.wus-faq-checkbox-label.wus-faq-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.wus-faq-answer-wrap {
    margin-top: 10px;
    margin-left: 28px;
    animation: wusFaqSlideIn 0.25s ease;
}
@keyframes wusFaqSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wus-faq-question-display {
    font-size: 14px;
    font-weight: 600;
    color: #0a1543;
    margin-bottom: 6px;
    padding-left: 2px;
}
.wus-faq-question-display::before {
    content: "Q: ";
    color: #e8491d;
    font-weight: 700;
}
.wus-faq-answer {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wus-faq-answer:focus {
    border-color: #0a1543;
    box-shadow: 0 0 0 3px rgba(10, 21, 67, 0.1);
    outline: none;
}
.wus-faq-answer.wus-input-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.wus-faq-count {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    text-align: right;
}
.wus-faq-selected-count {
    font-weight: 700;
    color: #0a1543;
}

/* Mobile */
@media (max-width: 600px) {
    .wus-faq-generator {
        padding: 12px;
    }
    .wus-faq-answer-wrap {
        margin-left: 0;
    }
    .wus-faq-item.wus-faq-active {
        margin: 0 -12px;
        padding: 10px 12px;
    }
}

/* ── FAQ Generator: Headings & Labels ── */
.wus-faq-main-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 4px;
}
.wus-faq-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.wus-faq-preset-heading {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8e8e8;
    letter-spacing: 0.02em;
}

/* ── FAQ Generator: Custom Section ── */
.wus-faq-custom-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
}
.wus-faq-custom-heading {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}
.wus-faq-custom-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.wus-faq-custom-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.wus-faq-custom-item:hover {
    border-color: #4a90d9;
}
.wus-faq-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.wus-faq-custom-num {
    font-size: 13px;
    font-weight: 600;
    color: #4a90d9;
}
.wus-faq-remove-custom {
    background: none;
    border: none;
    color: #cc4444;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}
.wus-faq-remove-custom:hover {
    background: #fee;
    color: #aa0000;
}
.wus-faq-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wus-faq-custom-q-label,
.wus-faq-custom-a-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2b3c;
}
.wus-faq-custom-question {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fafbfc;
}
.wus-faq-custom-question:focus {
    border-color: #4a90d9;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}
.wus-faq-custom-answer {
    /* Inherits from existing .wus-faq-answer styles */
}

/* ── FAQ Add Button ── */
.wus-faq-add-custom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a90d9;
    background: #f0f6ff;
    border: 1px dashed #4a90d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.wus-faq-add-custom:hover {
    background: #e0edff;
    border-color: #2a70b9;
    color: #2a70b9;
}
.wus-faq-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── FAQ Count ── */
.wus-faq-count {
    margin-top: 10px;
    text-align: right;
    font-size: 13px;
    color: #888;
}

/* ── FAQ Group Headers ── */
.wus-faq-group {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.wus-faq-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f5f5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.wus-faq-group-header:hover {
    background: #ebebeb;
}
.wus-faq-group-toggle {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.25s ease;
    color: #666;
}
.wus-faq-group.collapsed .wus-faq-group-toggle {
    transform: rotate(-90deg);
}
.wus-faq-group-body {
    padding: 6px 10px 10px;
}
.wus-faq-group.collapsed .wus-faq-group-body {
    display: none;
}


/* ═══════════════════════════════════════════════════════════
   MENU UPLOAD (PDF/URL toggle)
   ═══════════════════════════════════════════════════════════ */
.wus-menu-upload {
    padding: 12px 0;
}
.wus-menu-source-toggle {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.wus-menu-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.wus-menu-radio:hover {
    border-color: #0073aa;
}
.wus-menu-radio input[type="radio"]:checked + .dashicons {
    color: #0073aa;
}
.wus-menu-radio input[type="radio"]:checked ~ * {
    color: #0073aa;
}
.wus-menu-radio:has(input:checked) {
    border-color: #0073aa;
    background: #f0f7fc;
}
.wus-menu-radio:has(input[value="none"]:checked) {
    border-color: #999;
    background: #f5f5f5;
}
.wus-menu-radio:has(input[value="none"]:checked) .dashicons {
    color: #999 !important;
}
.wus-menu-url-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.wus-menu-url-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}
.wus-menu-pdf-input {
    padding: 8px;
}

/* ═══════════════════════════════════════════════════════════
   BOOKING LINKS (Repeater)
   ═══════════════════════════════════════════════════════════ */
.wus-booking-links {
    padding: 8px 0;
}
.wus-booking-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}
.wus-booking-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
    overflow: hidden;
    transition: border-color 0.2s;
}
.wus-booking-item:hover {
    border-color: #0073aa;
}
.wus-booking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}
.wus-booking-item-num {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}
.wus-booking-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.wus-booking-remove:hover {
    color: #d63638;
}
.wus-booking-item-fields {
    padding: 14px;
}
.wus-booking-row {
    margin-bottom: 10px;
}
.wus-booking-row:last-child {
    margin-bottom: 0;
}
.wus-booking-row label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}
.wus-booking-type,
.wus-booking-label,
.wus-booking-url {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.wus-booking-type:focus,
.wus-booking-label:focus,
.wus-booking-url:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}
.wus-booking-add-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0;
}
.wus-booking-add-link:hover {
    background: #005a87;
}
.wus-booking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.wus-booking-count {
    font-size: 13px;
    color: #666;
}
.wus-booking-link-count {
    font-weight: 700;
    color: #0073aa;
}

/* ═══════════════════════════════════════════════════════════
   COUPONS & OFFERS (Repeater)
   ═══════════════════════════════════════════════════════════ */
.wus-coupons {
    padding: 8px 0;
}
.wus-coupons-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}
.wus-coupon-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fffdf5;
    overflow: hidden;
    transition: border-color 0.2s;
}
.wus-coupon-item:hover {
    border-color: #dba617;
}
.wus-coupon-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fdf6e3;
    border-bottom: 1px solid #ede0b8;
}
.wus-coupon-item-num {
    font-weight: 600;
    font-size: 13px;
    color: #8a6d0b;
}
.wus-coupon-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.wus-coupon-remove:hover {
    color: #d63638;
}
.wus-coupon-item-fields {
    padding: 14px;
}
.wus-coupon-row {
    margin-bottom: 10px;
}
.wus-coupon-row:last-child {
    margin-bottom: 0;
}
.wus-coupon-row label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}
.wus-coupon-row label small {
    font-weight: 400;
    color: #888;
}
.wus-coupon-row-inline {
    display: flex;
    gap: 14px;
}
.wus-coupon-col {
    flex: 1;
}
.wus-coupon-title,
.wus-coupon-desc,
.wus-coupon-code,
.wus-coupon-expires,
.wus-coupon-url {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.wus-coupon-desc {
    resize: vertical;
    min-height: 50px;
}
.wus-coupon-title:focus,
.wus-coupon-desc:focus,
.wus-coupon-code:focus,
.wus-coupon-expires:focus,
.wus-coupon-url:focus {
    border-color: #dba617;
    outline: none;
    box-shadow: 0 0 0 2px rgba(219,166,23,0.15);
}
.wus-coupon-add {
    display: inline-block;
    padding: 10px 20px;
    background: #dba617;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0;
}
.wus-coupon-add:hover {
    background: #b8890e;
}
.wus-coupon-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.wus-coupons-count {
    font-size: 13px;
    color: #666;
}
.wus-coupon-count-num {
    font-weight: 700;
    color: #dba617;
}


/* ── Empty state messages ── */
.wus-booking-empty,
.wus-coupon-empty {
    text-align: center;
    padding: 20px 16px;
    color: #888;
    font-size: 14px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
}
/* ── Shared disabled button style ── */
.wus-btn-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ── Mobile responsive for new types ── */
@media (max-width: 600px) {
    .wus-menu-source-toggle {
        flex-direction: column;
        gap: 10px;
    }
    .wus-coupon-row-inline {
        flex-direction: column;
        gap: 10px;
    }
    .wus-booking-item-fields,
    .wus-coupon-item-fields {
        padding: 10px;
    }
}


/* ═══════════════════════════════════════════════════════════
   CUSTOM VIDEO Field Type
   ═══════════════════════════════════════════════════════════ */
.wus-custom-video {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Section layout ── */
.wus-cv-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}
.wus-cv-section-heading {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.wus-cv-section-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* ── Photo dropzone ── */
.wus-cv-photo-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fafc;
    outline: none;
}
.wus-cv-photo-dropzone:hover,
.wus-cv-photo-dropzone:focus {
    border-color: #0073aa;
    background: #f0f7ff;
}
.wus-cv-dropzone-hover {
    border-color: #0073aa !important;
    background: #e8f4fd !important;
}
.wus-cv-dropzone-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.wus-cv-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wus-cv-drop-icon {
    font-size: 36px;
    color: #94a3b8;
    line-height: 1;
}
.wus-cv-drop-text {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
.wus-cv-drop-or {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.wus-cv-photo-browse {
    display: inline-block;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wus-cv-photo-browse:hover {
    background: #005a87;
}

/* ── Photo grid ── */
.wus-cv-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 14px;
    min-height: 0;
}
.wus-cv-photo-grid:empty {
    margin-top: 0;
}
.wus-cv-photo-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    transition: border-color 0.2s;
}
.wus-cv-photo-thumb.wus-cv-photo-uploaded {
    border-color: #22c55e;
}
.wus-cv-photo-thumb.wus-cv-photo-error {
    border-color: #ef4444;
}
.wus-cv-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wus-cv-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0;
}
.wus-cv-photo-thumb:hover .wus-cv-photo-remove {
    opacity: 1;
}
.wus-cv-photo-uploading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,115,170,0.85);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 3px 0;
    font-weight: 600;
}
.wus-cv-photo-err-msg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(239,68,68,0.9);
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 3px 4px;
    font-weight: 600;
}
.wus-cv-photo-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
    aspect-ratio: 1;
}

/* ── Photo toolbar ── */
.wus-cv-photo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.wus-cv-photo-helper {
    font-size: 12px;
    color: #94a3b8;
}
.wus-cv-photo-count {
    font-size: 13px;
    color: #666;
}
.wus-cv-photo-count-num {
    font-weight: 700;
    color: #0073aa;
}

/* ── Video links ── */
.wus-cv-video-empty {
    text-align: center;
    padding: 20px 16px;
    color: #888;
    font-size: 14px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
}
.wus-cv-video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wus-cv-video-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.wus-cv-video-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.wus-cv-video-item-num {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}
.wus-cv-video-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.wus-cv-video-remove:hover {
    opacity: 1;
}
.wus-cv-video-item-fields {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wus-cv-video-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.wus-cv-video-row label small {
    font-weight: 400;
    color: #94a3b8;
}
.wus-cv-video-row input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.wus-cv-video-row input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* ── Video toolbar ── */
.wus-cv-video-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.wus-cv-video-add {
    display: inline-block;
    padding: 10px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0;
}
.wus-cv-video-add:hover {
    background: #6d28d9;
}
.wus-cv-video-count {
    font-size: 13px;
    color: #666;
}
.wus-cv-video-count-num {
    font-weight: 700;
    color: #7c3aed;
}
.wus-cv-video-helper {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* ── Notes ── */
.wus-cv-notes {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.wus-cv-notes:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}
.wus-cv-notes-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
.wus-cv-notes-counter {
    font-size: 12px;
    color: #94a3b8;
}
.wus-cv-notes-counter-num {
    font-weight: 600;
}
.wus-cv-counter-limit {
    color: #ef4444;
    font-weight: 700;
}

/* ── Disabled button shared ── */
.wus-cv-photo-browse.wus-btn-disabled,
.wus-cv-video-add.wus-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Custom Video responsive ── */
@media (max-width: 600px) {
    .wus-cv-section {
        padding: 14px;
    }
    .wus-cv-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    .wus-cv-photo-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .wus-cv-video-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .wus-cv-video-item-fields {
        padding: 10px;
    }
}
