.exam-booking-shell {
    background: #f6f7fb;
}

.exam-booking-hero {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    color: #ffffff;
    position: relative;
    background: linear-gradient(135deg, #213926 0%, #1e7534 52%, #3ba245 100%);
    box-shadow: 0 10px 24px rgba(16, 40, 22, 0.14);
}

.exam-booking-hero .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.exam-booking-hero .title,
.exam-booking-hero h2,
.exam-booking-hero h4 {
    color: #ffffff;
}

.exam-booking-cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d0dbe8;
    background: #ffffff;
    color: #213926;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 40, 22, 0.18);
}

.exam-booking-cart-chip i {
    color: #1e7534;
    font-size: 18px;
}

.exam-booking-cart-chip .count {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fbb034;
    color: #213926;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.exam-booking-card {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    box-shadow: none;
}

.exam-booking-card .card-body {
    padding: 1.5rem;
}

.exam-booking-form-section,
.exam-booking-result-section {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.exam-booking-result-section {
    padding: 24px;
}

.exam-booking-card .form-control,
.exam-booking-card .form-select {
    border: 1px solid #d0dbe8;
    border-radius: 8px;
    min-height: 42px;
    font-size: 14px;
}

.exam-booking-card .form-control:focus,
.exam-booking-card .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.exam-booking-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.exam-booking-card .btn-success {
    background-color: #198754;
    border-color: #198754;
    border-radius: 8px;
    font-weight: 600;
}

.exam-booking-card .ol-btn-primary,
.exam-booking-card .ol-btn-light {
    border-radius: 8px;
    font-weight: 600;
}

.exam-booking-card .ol-btn-light {
    background: #fbb034;
    border-color: #fbb034;
    color: #ffffff;
    box-shadow: none;
}

.exam-booking-card .ol-btn-light:hover,
.exam-booking-card .ol-btn-light:focus,
.exam-booking-card .ol-btn-light:active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.exam-booking-card .ol-btn-primary {
    background: #2f80ed;
    border-color: #2f80ed;
    color: #ffffff;
}

.exam-booking-card .ol-btn-primary:hover,
.exam-booking-card .ol-btn-primary:focus,
.exam-booking-card .ol-btn-primary:active {
    background: #1f6fda;
    border-color: #1f6fda;
    color: #ffffff;
}

.exam-booking-card .ol-btn-primary {
    padding-left: 14px;
    padding-right: 14px;
}

.exam-booking-card .ol-btn-primary.btn,
.exam-booking-card .ol-btn-light.btn {
    min-height: 40px;
}

.exam-booking-card .ol-icon-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dee8;
    background: #ffffff;
}

.exam-booking-card .btn-outline-success {
    border-radius: 8px;
    font-weight: 600;
    border-color: #0f766e;
    color: #0f766e;
}

.exam-booking-card .btn-warning {
    border-radius: 8px;
    font-weight: 600;
}

#calculatorForm .subject-rows-heading {
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
}

#calculatorForm #addSubjectRowBtn {
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    padding: 10.5px 24px;
}

#calculatorForm .subject-row .form-label {
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    margin-bottom: 6px;
}

#calculatorForm .subject-row .form-select,
#calculatorForm .subject-row .form-control {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    padding: 10px 15px;
    min-height: 42px;
}

#addSubjectRowBtn,
#addSubjectRowBtn.btn,
#addSubjectRowBtn.btn.ol-btn-primary,
#addSubjectRowBtn.btn.ol-btn-light {
    background: #f4f7fe !important;
    border-color: #f4f7fe !important;
    color: #4b5675 !important;
    background-image: none !important;
    box-shadow: none !important;
}

#addSubjectRowBtn:hover,
#addSubjectRowBtn:focus,
#addSubjectRowBtn:active {
    background: #eaf0fb !important;
    border-color: #eaf0fb !important;
    color: #4b5675 !important;
    background-image: none !important;
}

.remove-subject-row-btn,
.remove-subject-row-btn.btn,
.remove-subject-row-btn.btn.ol-btn-light,
.remove-subject-row-btn.btn.ol-icon-btn {
    background: #f4f7fe !important;
    border-color: #f4f7fe !important;
    color: #4b5675 !important;
}

.remove-subject-row-btn i {
    color: #4b5675 !important;
}

.subject-row {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    padding: 14px 12px 12px;
    background: #ffffff;
}

.fee-quote-item {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    box-shadow: none;
    background: #ffffff;
}

.summary-card {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    padding: 0;
}

.summary-card .summary-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.exam-booking-summary-wrap .summary-head {
    border-bottom: 1px solid #e9edf3;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.exam-booking-summary-wrap .summary-head h5,
.exam-booking-summary-wrap .fee-quote-item h6,
#beforeWeProceedSection h6 {
    color: #1f2937;
    font-weight: 600;
}

.exam-booking-summary-wrap .summary-head .badge {
    font-size: 12px;
    font-weight: 600;
}

.exam-booking-summary-wrap .fee-quote-item h6 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.exam-booking-summary-wrap .quote-meta,
.exam-booking-summary-wrap .quote-pricing,
.exam-booking-summary-wrap .quote-projections {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.exam-booking-summary-wrap .summary-head h5 {
    font-size: 16px;
}

.exam-booking-summary-wrap .fee-quote-item h6 {
    font-size: 13px;
}

.exam-booking-summary-wrap .quote-meta,
.exam-booking-summary-wrap .quote-pricing,
.exam-booking-summary-wrap .quote-projections {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
    color: #374151;
    font-size: 12px;
}

.exam-booking-summary-wrap {
    border-radius: 0;
    border: 0;
    background: transparent;
}

#beforeWeProceedSection {
    border: 1px solid #e9edf3 !important;
    border-radius: 8px;
    background: #ffffff;
}

#beforeWeProceedSection .question-card {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

#beforeWeProceedSection h6 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e9edf3;
    padding-bottom: 10px;
}

#beforeWeProceedSection .form-label,
#beforeWeProceedSection .form-check-label,
#beforeWeProceedSection .text-muted,
#beforeWeProceedSection small {
    color: #4b5563 !important;
    font-size: 13px;
    line-height: 1.4;
}

#beforeWeProceedSection .form-check-label {
    font-weight: 600;
    color: #1f2937 !important;
}

#beforeWeProceedSection .fw-semibold {
    color: #1f2937;
}

#beforeWeProceedSection .form-label.fw-semibold {
    font-size: 13px;
    margin-bottom: 6px;
}

#beforeWeProceedSection .row.g-3.mb-2,
#beforeWeProceedSection .row.g-3.mt-1 {
    margin-bottom: 0.75rem !important;
}

.summary-card .meta-grid,
.summary-card .metric-box,
.summary-card .quote-meta,
.summary-card .quote-pricing,
.summary-card .quote-projections {
    border: 1px solid #eef2f6;
    background: #fafbfd;
    border-radius: 8px;
}

.summary-card .meta-grid,
.summary-card .metric-box {
    padding: 12px;
}

.summary-card .metric-box .text-muted,
.summary-card .metric-box .small,
.summary-card .meta-grid .small {
    color: #6b7280 !important;
    font-size: 12px;
    line-height: 1.25;
}

.summary-card .metric-box .fw-bold,
.summary-card .meta-grid .fw-semibold {
    color: #111827;
    font-size: 13px;
}

.summary-card .meta-grid {
    border: 1px solid #eef2f6;
    background: #fafbfd;
}

.summary-card .metric-box {
    border: 1px solid #eef2f6;
    background: #fafbfd;
}

.summary-card .quote-meta,
.summary-card .quote-pricing,
.summary-card .quote-projections {
    border: 1px solid #eef2f6;
    background: #fafbfd;
}

.exam-booking-result-section .ol-card-body {
    padding: 0 !important;
}

.exam-booking-result-section .summary-head {
    margin-bottom: 1rem !important;
}

.exam-booking-result-section .fee-quote-item {
    margin-bottom: 1rem !important;
    padding: 1rem !important;
}

.exam-booking-result-section #beforeWeProceedSection {
    margin-top: 1rem !important;
    padding: 1rem !important;
}

.exam-booking-result-section #beforeWeProceedSection .question-card {
    padding: 14px;
    margin-bottom: 1rem;
}

.exam-booking-result-section #beforeWeProceedSection .question-card:last-child {
    margin-bottom: 0;
}

.exam-booking-result-section .totals-strip {
    margin-top: 1rem !important;
    padding: 14px;
    border: 1px solid #e9edf3 !important;
    border-radius: 8px !important;
    background: #fafbfd !important;
}

.exam-booking-result-section .summary-card,
.exam-booking-result-section .question-card,
.exam-booking-result-section .totals-strip {
    font-size: 14px;
    line-height: 21px;
}

.summary-card .quote-pricing .col-md-4,
.summary-card .quote-meta .col-md-3,
.summary-card .quote-projections > div {
    font-size: 12px;
    color: #4b5563;
}

.exam-booking-summary-wrap .summary-head h5 {
    font-size: 16px;
    line-height: 1.2;
}

.exam-booking-summary-wrap .fee-quote-item h6 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.summary-card > .d-flex:first-child {
    padding-bottom: 10px;
    margin-bottom: 14px !important;
    border-bottom: 1px solid #e9edf3;
}

.exam-booking-summary-wrap .totals-strip {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #fafbfd;
    padding: 12px 14px;
}

.exam-booking-summary-wrap .totals-strip .text-muted,
.exam-booking-summary-wrap .totals-strip small {
    font-size: 11px;
    color: #6b7280 !important;
}

.exam-booking-summary-wrap .totals-strip strong {
    font-size: 14px;
    color: #111827;
}

.exam-booking-summary-wrap .totals-strip .grand-total-amount {
    color: #1e7534;
    font-size: 15px;
    font-weight: 700;
}

/* Admin fee-calculator parity for frontend result typography */
.exam-booking-result-section .summary-head h5 {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #4b5675 !important;
}

.exam-booking-result-section .summary-head .badge {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #1b84ff !important;
    background: #eaf5ff !important;
    border-color: #c7e4ff !important;
    padding: 8px 16px !important;
}

.exam-booking-result-section .fee-quote-item h6 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #4b5675 !important;
}

.exam-booking-result-section .fee-quote-item .badge {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #212529 !important;
}

.exam-booking-result-section .meta-grid .text-muted,
.exam-booking-result-section .metric-box .text-muted {
    color: rgba(33, 37, 41, 0.75) !important;
    font-size: 12.25px !important;
    font-weight: 400 !important;
}

.exam-booking-result-section .meta-grid .fw-semibold {
    color: #4b5675 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.exam-booking-result-section .metric-box .fw-bold {
    color: #4b5675 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.exam-booking-result-section .quote-proj-row,
.exam-booking-result-section .quote-proj-row .col-md-6,
.exam-booking-result-section .quote-proj-row .col-md-3 {
    color: #4b5675 !important;
    font-size: 12.25px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

.exam-booking-result-section .quote-proj-row strong {
    color: #4b5675 !important;
    font-weight: 700 !important;
}

.exam-booking-result-section #beforeWeProceedSection h6 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #4b5675 !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
}

.exam-booking-result-section #beforeWeProceedSection .form-label,
.exam-booking-result-section #beforeWeProceedSection .form-check-label,
.exam-booking-result-section #beforeWeProceedSection .text-muted,
.exam-booking-result-section #beforeWeProceedSection small {
    color: #4b5675 !important;
    font-size: 12.25px !important;
    font-weight: 400 !important;
}

.exam-booking-result-section #beforeWeProceedSection .form-label.fw-semibold {
    font-size: 12.25px !important;
    font-weight: 600 !important;
}

.exam-booking-result-section #beforeWeProceedSection .form-label.fw-semibold.d-block.mb-2 {
    font-size: 14px !important;
    line-height: 21px !important;
}

.exam-booking-result-section .totals-strip .text-muted.small {
    color: rgba(33, 37, 41, 0.75) !important;
    font-size: 12.25px !important;
    font-weight: 400 !important;
}

.exam-booking-result-section .totals-strip strong {
    color: #4b5675 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.exam-booking-result-section .totals-strip .grand-total-amount {
    color: #0f9d58 !important;
    font-size: 20px !important;
    line-height: 30px !important;
}

#buyerInfoSection .consent-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
    padding-top: 30px;
}

#buyerInfoSection .consent-check .form-check-input {
    margin: 0;
    float: none;
    flex-shrink: 0;
}

#buyerInfoSection .consent-check .form-check-label {
    margin-bottom: 0;
    line-height: 1.35;
}

.exam-booking-result-section .unit-explanation-toggle {
    font-size: 14px;
    line-height: 21px;
    padding: 4px 8px;
    border-radius: 4px;
}

.exam-booking-result-section .unit-explanation-toggle + .unit-explanation-content,
.exam-booking-result-section .unit-explanation-content {
    margin-top: 0;
}

.exam-booking-result-section .unit-explanation-toggle-wrap {
    gap: 8px !important;
    margin-bottom: 8px !important;
}

#additionalChargesDisplay {
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
}

#grandTotalDisplay {
    color: #0f766e;
}

.exam-booking-actions {
    width: 100%;
}

.exam-booking-contact-actions-layout {
    display: flex;
    flex-direction: column;
}

.exam-booking-contact-actions-layout #buyerInfoSection {
    order: 1;
}

.exam-booking-contact-actions-layout .exam-booking-actions {
    order: 2;
}

.exam-booking-email-actions,
.exam-booking-cart-action {
    display: flex;
    align-items: center;
}

.exam-booking-email-actions {
    order: 1;
    align-items: flex-end;
}

.exam-booking-email-actions #sendQuoteForm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0 0;
}

.exam-booking-email-actions #sendQuoteForm .consent-check {
    margin-bottom: 0 !important;
    padding: 0.25rem 0;
    line-height: 1.5;
}

.exam-booking-cart-action {
    order: 2;
}

@media (max-width: 767.98px) {
    .exam-booking-card .card-body {
        padding: 1rem;
    }

    #buyerInfoSection .consent-check {
        justify-content: flex-start;
        margin-left: 0;
        text-align: left;
        padding-top: 30px;
    }

    .exam-booking-cart-chip {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .exam-booking-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .exam-booking-contact-actions-layout .exam-booking-actions {
        display: contents !important;
    }

    .exam-booking-contact-actions-layout .exam-booking-cart-action {
        order: 1;
        margin: 0.75rem 0 1rem;
    }

    .exam-booking-contact-actions-layout #buyerInfoSection {
        order: 2;
        margin-top: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .exam-booking-contact-actions-layout .exam-booking-email-actions {
        order: 3;
        margin: 0.75rem 0 1rem;
    }

    .exam-booking-cart-action {
        order: 1;
        width: 100%;
    }

    .exam-booking-email-actions {
        order: 2;
        width: 100%;
    }

    .exam-booking-cart-action form,
    .exam-booking-email-actions form,
    .exam-booking-cart-action .btn,
    .exam-booking-email-actions .btn {
        width: 100%;
    }

    .exam-booking-email-actions {
        flex-direction: column;
    }
}
