/* Performer Estimate Form Display Overrides */

/* Row Rule Toggle Buttons */
.rule-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.rule-toggle-btn {
    font-size: 0.65rem;
    line-height: 1.1;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #0f172a;
    color: #0f172a;
    background-color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rule-toggle-btn:hover {
    background-color: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
}

.rule-toggle-btn--off {
    border-color: #cbd5f5;
    color: #94a3b8;
    background-color: #f8fafc;
    text-decoration: line-through;
}

.rule-toggle-btn--off:hover {
    color: #64748b;
    border-color: #94a3b8;
}

/* Voiceover Calculator Styling */
.voiceover-calculator {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.calculator-container h5 {
    color: #2c5530;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.calculator-container .form-group {
    margin-bottom: 1.5rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.calculator-container .form-group[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

.calculator-container label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* Fancy Dropdown Styling */
.dropdown-fancy {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem;
}

.dropdown-fancy:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.dropdown-fancy:hover:not(:disabled) {
    border-color: #2c5530;
    background-color: #f8f9fa;
}

.dropdown-fancy:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.dropdown-fancy option {
    padding: 0.5rem;
    font-weight: 500;
}

/* Add dropdown arrows to all select elements */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem;
}

/* Ensure disabled dropdowns have lighter arrow */
select.form-control:disabled {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Price Display Styling */
.price-display {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.price-display[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.price-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.add-to-quote-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.add-to-quote-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Animation for step reveals */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group[style*="display: block"] {
    animation: slideInFromTop 0.4s ease-out;
}

/* Custom Fee Section Styling */
.custom-fee-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.custom-fee-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.custom-fee-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.custom-fee-section .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Voiceover Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    margin: 2rem auto;
    max-width: 1000px;
    width: 95%;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 55%, #22c55e 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-weight: 600;
}

.modal-header .close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.voiceover-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vo-option-grid {
    margin-top: 0.25rem;
}

.vo-option-btn {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.vo-option-btn:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.vo-option-btn.selected,
.vo-option-btn.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.vo-option-btn i {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.vo-option-btn span {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.calculator-content {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
}

.vo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Voiceover modal layout refresh */
.vo-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 1.25rem;
    align-items: flex-start;
}

.vo-config-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vo-summary-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 1rem;
}

.vo-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 1rem;
}

.vo-step-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.vo-step-label {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.vo-step-title {
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

.vo-step-hint {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.vo-subtitle {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.vo-form-section {
    margin-bottom: 1.5rem;
}

.vo-form-section:last-child {
    margin-bottom: 0;
}

.vo-form-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.vo-label-hint {
    font-weight: 400;
    color: #64748b;
    font-size: 0.875rem;
}

.vo-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
}

.vo-form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.vo-form-input::placeholder {
    color: #94a3b8;
}

.vo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.vo-actions .btn {
    flex: 1;
    min-width: 140px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.vo-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

label.vo-checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

label.vo-checkbox-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

label.vo-checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

label.vo-checkbox-label input[type="checkbox"]:checked {
    accent-color: #0f172a;
}

label.vo-checkbox-label input:checked ~ span {
    color: #0f172a;
}

label.vo-checkbox-label:has(input:checked) {
    background: #eff6ff;
    border-color: #0ea5e9;
}

.vo-discount-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.vo-summary-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    color: #f8fafc;
    border: none;
}

.vo-summary-card .price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #e0f2fe;
    letter-spacing: 0.01em;
}

.vo-summary-card .price-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e0f2fe;
}

.vo-price-big {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.vo-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.vo-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vo-summary-caption {
    font-size: 0.875rem;
    color: #e0f2fe;
}

.vo-summary-note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #e0f2fe;
    opacity: 0.9;
    line-height: 1.5;
}

.vo-tips-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.vo-tips-card h6 {
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.vo-tips {
    padding-left: 1.25rem;
    margin: 0;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
}

.vo-tips li {
    margin-bottom: 0.5rem;
}

.vo-summary-card .vo-status-message {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: #f8fafc;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .vo-modal-grid {
        grid-template-columns: 1fr;
    }

    .vo-summary-column {
        position: relative;
        top: auto;
    }
}

.calculator-content h5 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.calculated-price {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.calculated-price .price-label {
    font-weight: 500;
    color: #6c757d;
    margin-right: 0.5rem;
}

.calculated-price .price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.vo-summary-card.calculated-price {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    border: none;
    color: #f8fafc;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

.vo-summary-card.calculated-price .price-value {
    color: #f8fafc;
}

.vo-summary-card.calculated-price .price-label {
    color: #e0f2fe;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .voiceover-calculator {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .add-to-quote-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .custom-fee-section .row {
        margin: 0;
    }
    
    .custom-fee-section .col-md-3,
    .custom-fee-section .col-md-6 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .voiceover-options {
        grid-template-columns: 1fr;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Quote Name Display Styling */
.section-header-with-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 2rem;
}

.quote-name-display {
    text-align: right;
    min-width: 300px;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.prefill-test-button {
    white-space: nowrap;
}

.quote-name-display h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

#quote-name-value {
    color: #2c5530;
    font-weight: 700;
}

/* Quote Name Footer Display */
.quote-name-footer-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.quote-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.quote-name-label {
    font-weight: 600;
    color: #495057;
}

.quote-name-value {
    font-weight: 700;
    color: #2c5530;
    font-size: 1.1rem;
}

/* PaloPay Fees Section Footer Layout */
[data-section="palopayFees"] .section-footer-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

[data-section="palopayFees"] .add-row-btn {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 200px;
    height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

/* Non-Taxable Items Section Footer Layout */
[data-section="nonTaxableItems"] .section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

[data-section="nonTaxableItems"] .add-row-btn {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 200px;
    height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

/* Quote Name in Header Display (for shared-quote.html) */
.quote-name-in-header {
    color: #2c5530;
    font-weight: 700;
    font-size: 1rem;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: #f0f9f0;
    border: 1px solid #2c5530;
    border-radius: 6px;
    display: inline-block;
}

/* Ensure the form is always visible when loaded - target both possible IDs */
#performer-quote-form:not([data-hidden="true"]),
#main-content:not([data-hidden="true"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove any conflicting hidden states */
#performer-quote-form.hidden,
#performer-quote-form.d-none,
#performer-quote-form.invisible,
#main-content.hidden,
#main-content.d-none,
#main-content.invisible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure container is visible */
.container:has(#performer-quote-form),
.container:has(#main-content) {
    display: block !important;
    visibility: visible !important;
    min-height: 100vh;
}

/* Loading state should hide properly */
#loading.hidden {
    display: none !important;
}

/* Form sections should be visible by default (unless marked as hidden) */
#performer-quote-form .form-section:not(.section-hidden),
#main-content .form-section:not(.section-hidden) {
    display: block !important;
    visibility: visible !important;
}

/* Ensure no parent element can hide the form */
body > .container {
    display: block !important;
    visibility: visible !important;
}

/* MEAA VoiceOver Rate Card Styles */
.voiceover-rate-card {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #d6e7f0;
}

.rate-controls {
    margin-bottom: 2rem;
}

.control-group h5 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rate-card-table {
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rate-card-table h5 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.rate-table th,
.rate-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.rate-table th {
    background: linear-gradient(135deg, #2c5aa0, #3d6bb0);
    color: white;
    font-weight: 600;
}

.rate-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.rate-table tbody tr:hover {
    background: #e3f2fd;
}

.rate-cell {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rate-cell:hover {
    background: #4CAF50 !important;
    color: white;
    transform: scale(1.05);
}

.rate-cell.selected {
    background: #4CAF50 !important;
    color: white;
    font-weight: 600;
}

.rate-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.select-rate-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.select-rate-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.additional-fees {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.additional-fees h5 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fee-category h6 {
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.fee-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fee-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    padding-left: 2.5rem;
    margin: 0;
}

.fee-option:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.fee-option input[type="checkbox"] {
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.fee-option .checkmark {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #495057;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fee-option input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.fee-option input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.fee-text {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.fee-amount {
    color: #4CAF50;
    font-weight: 600;
    margin-left: 0.5rem;
}

.rates-summary {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.rates-summary h5 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-items {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    font-size: 1.25rem;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #4CAF50;
    margin: 1rem 0;
    color: #2c5aa0;
}

.summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.summary-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.summary-actions .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
}

.summary-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.wizard-step {
    margin-bottom: 2rem;
}

.step-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-header h4 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.step-number {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.step-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.checkbox-group {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    margin: 0;
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    left: 0;
    opacity: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.price-indicator {
    color: #4CAF50;
    font-weight: 600;
    margin-left: 0.5rem;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e1e5e9;
    margin-top: 2rem;
}

.wizard-navigation .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wizard-navigation .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
}

.wizard-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.wizard-navigation .btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    color: white;
}

.wizard-navigation .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.price-preview {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.price-breakdown h5 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.price-items {
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #4CAF50;
    margin-top: 1rem;
}

.generated-items {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.generated-items h5 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Voice Browser Styles */
.voice-selection-group {
    grid-column: 1 / -1; /* Take full width of grid */
}

.voice-browser {
    margin-top: 1rem;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-browser-header {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.voice-browser-header h6 {
    margin: 0 0 1rem 0;
    color: #2c5aa0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.voice-search {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.voice-filter {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.voice-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.voice-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.voice-card.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.voice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.voice-name {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 1rem;
}

.voice-tier {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.voice-tier.professional {
    background: #28a745;
}

.voice-tier.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.voice-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.voice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.voice-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.voice-price {
    font-weight: 600;
    color: #4CAF50;
    font-size: 0.9rem;
}

.voice-card .play-sample {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.voice-card:hover .play-sample {
    opacity: 1;
}

.play-sample:hover {
    background: #45a049;
    transform: scale(1.1);
}

.voice-browser-footer {
    background: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-voice-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-voice-name {
    font-weight: 600;
    color: #2c5aa0;
}

.voice-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.voice-pagination button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-pagination button:hover:not(:disabled) {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.voice-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voice-pagination .current-page {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.voice-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
}

.voice-loading .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .voiceover-wizard {
        padding: 1.5rem;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-header h4 {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .voice-filters {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .voice-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .voice-browser-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* Section Visibility Controls */
.section-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-group label i {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

.checkbox-group input[type="checkbox"]:checked + label {
    color: #007bff;
}

.checkbox-group input[type="checkbox"]:checked + label i {
    color: #007bff;
}

/* Hidden sections */
.section-hidden {
    display: none !important;
}

/* Nuclear option - override any possible hiding mechanism */
form[id="performer-quote-form"],
form[id="main-content"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    width: auto !important;
}

/* ------------- Quote tables: cell content discipline ----------------- */
.quote-table            { table-layout: fixed !important; }

.quote-table td,
.quote-table th         { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* form fields must obey the column box */
.quote-table input,
.quote-table select {
  width: 100%;          /* fill the cell, no more */
  max-width: 100%;      /* never spill */
  min-width: 0;         /* kill Bootstrap's min-width */
  box-sizing: border-box;
}

/* right-align numeric fields for readability */
.quote-table .num,
.quote-table [data-type="money"],
.quote-table input[type="number"] {
  text-align: right;
  padding-right: .4rem;
}

/* optional: tighten Category dropdown so 'Select...' fits */
.quote-table select.category { padding-right: 1.5rem; }

/* Allow description column to wrap text (override the nowrap) */
.quote-table td:nth-child(2),
.quote-table th:nth-child(2),
.quote-table td:nth-child(3),
.quote-table th:nth-child(3) {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: initial;
}

.quote-table td:nth-child(2),
.quote-table td:nth-child(3) {
    vertical-align: top;
}

.auto-expand-textarea {
    resize: vertical;
    overflow-y: hidden;
    min-height: 40px;
    line-height: 1.35;
}

/* Ensure calculated/readonly cells display properly formatted */
.quote-table .calculated-field,
.quote-table [data-formula] {
    text-align: right;
    font-weight: 600;
    color: #059669;
}

/* Submit buttons styling */
.submit-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.submit-buttons .btn {
    min-width: 180px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.submit-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#generate-pdf-btn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

#generate-pdf-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

@media (max-width: 576px) {
    .submit-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .submit-buttons .btn {
        width: 100%;
    }
}

/* Change tracking styles removed - not needed for creation page */

/* Always visible sections styling */
.checkbox-group.always-visible {
    opacity: 0.7;
}

.checkbox-group.always-visible input[type="checkbox"] {
    cursor: not-allowed;
}

.checkbox-group.always-visible label {
    cursor: not-allowed;
    color: #6c757d !important;
}

.checkbox-group.always-visible label::after {
    content: " (Always Visible)";
    font-size: 0.85em;
    color: #868e96;
    font-style: italic;
}

/* VoiceOver Rate Source Indicator Styles */
#rate-source-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-badge.airtable {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.source-badge.fallback {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.source-badge.loading {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

#rate-source-indicator small {
    color: #6b7280;
    font-size: 0.65rem;
    white-space: nowrap;
}

#refresh-rates-btn {
    transition: all 0.3s ease;
}

#refresh-rates-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#refresh-rates-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Adult/Minor Age Selection Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #495057;
    font-size: 1rem;
}

.age-category-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.age-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.age-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.age-option-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.age-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c5530;
}

.age-code {
    font-family: Arial, sans-serif;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #495057;
    display: inline-block;
}

.age-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

/* Large Item Selection Modal */
.large-modal {
    max-width: 90vw;
    width: 1200px;
    max-height: 90vh;
    margin: 2rem auto;
}

.large-modal-body {
    padding: 1rem;
    max-height: 75vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-section {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.search-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.item-selection-table-container {
    flex: 1;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.item-selection-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0;
}

.item-selection-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.item-selection-table th {
    padding: 0.5rem 1rem !important;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    line-height: 1.2;
    height: auto !important;
}

.item-selection-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.item-selection-table tbody tr:hover {
    background: #f0f4ff;
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.item-selection-table tbody tr.custom-row:hover {
    background: #f0f9ff;
}

.item-selection-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border: none;
}

.item-code {
    font-family: Arial, sans-serif;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 600;
    display: inline-block;
}

.custom-row .item-code {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.item-description {
    font-weight: 500;
    color: #2c5530;
    line-height: 1.4;
}


.select-btn {
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    pointer-events: none; /* Let the row click handle the selection */
}

.select-btn:hover {
    transform: scale(1.1);
}

/* Item Selection Modal Updates - Legacy support */
.item-selection-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.item-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-code {
    font-family: Arial, sans-serif;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
    display: inline-block;
    width: fit-content;
}

.item-name {
    font-weight: 600;
    color: #2c5530;
}

.item-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

/* Simplified Voiceover Modal Styles */
.vo-simple-section {
    margin-bottom: 1.5rem;
}

.vo-simple-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.vo-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vo-type-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.vo-type-btn:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.vo-type-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.vo-option-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.vo-option-btn:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.vo-option-btn.active {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
}

.vo-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.vo-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0;
}

.vo-checkbox-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.vo-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #0f172a;
}

.vo-checkbox-item input[type="checkbox"]:checked ~ span {
    font-weight: 600;
    color: #0f172a;
}

.vo-checkbox-item:has(input:checked) {
    background: #eff6ff;
    border-color: #0ea5e9;
}

.vo-price-display {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.vo-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vo-price-row:last-child {
    margin-bottom: 0;
}

/* Legacy chip styles removed - using simplified buttons now */
.vo-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

label.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    font-weight: 500;
}

label.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

label.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

label.chip:hover span {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.chip-block {
    width: 100%;
}

.chip-block span {
    width: 100%;
    justify-content: center;
}

.vo-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.calculator-content h5 {
    margin-bottom: 0.75rem;
}

label.chip input:checked + span {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}


label.chip input:focus-visible + span {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.vo-status-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #6c757d;
    line-height: 1.5;
}

.vo-inline-options {
    margin-bottom: 0;
}

.vo-inline-options .form-group {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: none;
        width: auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .age-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .age-option-header {
        width: 100%;
    }
    
    .age-price {
        align-self: flex-end;
    }
}
