/* ==========================================================================
   BOOKING PAGE STYLES — AN GREEN
   ========================================================================== */

/* ── Layout ── */
.booking-section {
    padding-top: 2rem;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    margin-top: 2.5rem;
}

@media (max-width: 991px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Form Wrap ── */
.booking-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(27,60,32,.06);
    border: 1px solid rgba(27,60,32,.06);
}

/* ── Progress Steps ── */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #f0f7ea 0%, #e8f5e0 100%);
    border-radius: var(--radius-md, 12px);
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    background: #e0e0e0;
    color: #999;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    border: 3px solid transparent;
}

.booking-step.active .step-circle {
    background: linear-gradient(135deg, #7DC328, #5F9A1D);
    color: #fff;
    border-color: rgba(125,195,40,.25);
    box-shadow: 0 4px 16px rgba(125,195,40,.35);
    transform: scale(1.05);
}

.booking-step.completed .step-circle {
    background: #1B3C20;
    color: #7DC328;
    border-color: rgba(27,60,32,.15);
}

.step-label {
    font-size: .72rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color .3s;
}

.booking-step.active .step-label,
.booking-step.completed .step-label {
    color: #1B3C20;
}

.booking-step-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 .5rem;
    border-radius: 2px;
    transition: background .4s;
    align-self: center;
    margin-bottom: 1.4rem;
    min-width: 40px;
}

.booking-step-line.active {
    background: linear-gradient(90deg, #7DC328, #5F9A1D);
}

/* ── Panels ── */
.booking-panel {
    display: none;
    animation: panelIn .4s ease;
}

.booking-panel.active {
    display: block;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booking-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1B3C20;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.booking-panel-title i {
    color: #7DC328;
    font-size: 1.1rem;
}

/* ── Input with icons ── */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7DC328;
    font-size: .85rem;
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrap > .form-control {
    padding-left: 40px;
}

/* ── Service Picker ── */
.form-label-main {
    display: block;
    font-weight: 600;
    color: #1B3C20;
    margin-bottom: .75rem;
    font-size: .9rem;
}

.form-label-main .required {
    color: #e74c3c;
}

.service-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}

@media (max-width: 575px) {
    .service-picker {
        grid-template-columns: 1fr 1fr;
    }
}

.service-option {
    cursor: pointer;
    display: block;
}

.service-option input[type="radio"] {
    display: none;
}

.service-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1rem .6rem;
    border: 2px solid #eaeaea;
    border-radius: var(--radius-md, 12px);
    background: #fafafa;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    text-align: center;
}

.service-option-content i {
    font-size: 1.5rem;
    color: #999;
    transition: color .25s;
}

.service-option-name {
    font-size: .82rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.service-option-price {
    font-size: .72rem;
    font-weight: 500;
    color: #7DC328;
    background: rgba(125,195,40,.08);
    padding: .15rem .5rem;
    border-radius: 99px;
}

.service-option:hover .service-option-content {
    border-color: #7DC328;
    background: rgba(125,195,40,.03);
}

.service-option input:checked + .service-option-content {
    border-color: #7DC328;
    background: linear-gradient(135deg, rgba(125,195,40,.06), rgba(125,195,40,.12));
    box-shadow: 0 4px 16px rgba(125,195,40,.15);
}

.service-option input:checked + .service-option-content i {
    color: #7DC328;
}

/* ── Form Actions ── */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.form-actions .btn-next,
.form-actions .btn-submit-booking {
    margin-left: auto;
}

/* ── Summary Card ── */
.booking-summary {
    background: linear-gradient(135deg, #f8fbf5 0%, #f0f7ea 100%);
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem;
    border: 1px solid rgba(125,195,40,.15);
}

.summary-section h4 {
    font-size: .9rem;
    font-weight: 700;
    color: #1B3C20;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.summary-section h4 i {
    color: #7DC328;
    font-size: .8rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.summary-item.full {
    grid-column: 1 / -1;
}

.summary-label {
    font-size: .7rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.summary-value {
    font-size: .875rem;
    font-weight: 500;
    color: #333;
}

.summary-divider {
    height: 1px;
    background: rgba(125,195,40,.2);
    margin: 1rem 0;
}

.summary-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(125,195,40,.2);
    font-weight: 700;
    color: #1B3C20;
}

.price-value {
    font-size: 1.35rem;
    color: #7DC328;
}

/* ── Notice ── */
.booking-notice {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59,130,246,.05);
    border-radius: var(--radius-sm, 8px);
    border-left: 3px solid #3b82f6;
}

.booking-notice i {
    color: #3b82f6;
    font-size: 1rem;
    margin-top: 2px;
}

.booking-notice p {
    margin: 0;
    font-size: .8rem;
    color: #555;
    line-height: 1.5;
}

/* ── Success State ── */
.booking-success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7DC328, #5F9A1D);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPop .5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.booking-success-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1B3C20;
    margin-bottom: .5rem;
}

.booking-success-content > p {
    color: #666;
    font-size: .9rem;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.success-details {
    background: #f8fbf5;
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem;
    margin: 0 auto 1.5rem;
    max-width: 420px;
    text-align: left;
    border: 1px solid rgba(125,195,40,.15);
}

.success-details .sd-row {
    display: flex;
    justify-content: space-between;
    padding: .35rem 0;
    font-size: .85rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.success-details .sd-row:last-child {
    border-bottom: none;
}

.success-details .sd-label {
    color: #999;
    font-weight: 500;
}

.success-details .sd-value {
    color: #333;
    font-weight: 600;
}

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

/* ── Sidebar Cards ── */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.booking-sidebar-card {
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
}

.booking-sidebar-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.booking-sidebar-card h3 i {
    color: #7DC328;
}

/* Benefits Card */
.benefits-card {
    background: #fff;
    border: 1px solid rgba(27,60,32,.06);
    box-shadow: 0 4px 20px rgba(27,60,32,.06);
}

.benefits-card h3 {
    color: #1B3C20;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .85rem;
    color: #444;
    line-height: 1.4;
}

.benefits-list li i {
    color: #7DC328;
    font-size: .75rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(145deg, #1B3C20 0%, #2A5430 100%);
    color: #fff;
}

.contact-card h3 {
    color: #fff;
}

.sidebar-phone {
    font-size: 1.35rem;
    font-weight: 800;
    color: #7DC328;
    letter-spacing: .01em;
}

/* Guarantee Card */
.guarantee-card {
    background: linear-gradient(135deg, #f0f7ea 0%, #e8f5e0 100%);
    border: 1px solid rgba(125,195,40,.15);
    text-align: center;
}

.guarantee-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7DC328, #5F9A1D);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
}

.guarantee-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.guarantee-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #1B3C20;
    margin-bottom: .4rem;
}

.guarantee-card p {
    font-size: .8rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ── Form error state ── */
.form-control.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.1) !important;
}

.form-error-msg {
    color: #e74c3c;
    font-size: .75rem;
    margin-top: .25rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ── Form message ── */
.form-message {
    margin-top: 1rem;
    font-size: .875rem;
    padding: 0;
    transition: all .3s;
}

.form-message.success {
    color: #059669;
    background: rgba(5,150,105,.05);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm, 8px);
    border-left: 3px solid #059669;
}

.form-message.error {
    color: #e74c3c;
    background: rgba(231,76,60,.05);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm, 8px);
    border-left: 3px solid #e74c3c;
}

/* ── Loading state ── */
.btn-submit-booking.loading {
    pointer-events: none;
    opacity: .7;
}

.btn-submit-booking.loading i:before {
    content: "\f110"; /* fa-spinner */
}

.btn-submit-booking.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .booking-form-wrap {
        padding: 1.25rem;
    }

    .service-picker {
        grid-template-columns: 1fr 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-actions .btn-next,
    .form-actions .btn-submit-booking {
        margin-left: 0;
    }

    .booking-progress {
        padding: .75rem .5rem;
        gap: 0;
    }

    .step-label {
        font-size: .62rem;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        font-size: .8rem;
    }
}
