/* ==========================================================================
   Consultation Booking Form - Modern Premium UI
   ========================================================================== */

/* Reset & Base Styles */
.cbf-consultation-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #F2F2F2;
    min-height: 600px;
}

.cbf-consultation-form * {
    box-sizing: border-box;
}

/* ==========================================================================
   Progress Steps Indicator
   ========================================================================== */
.cbf-progress-container {
    margin-bottom: 80px;
}

.cbf-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.cbf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cbf-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cbf-step.active .cbf-step-circle,
.cbf-step.completed .cbf-step-circle {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.cbf-step-label {
    margin-top: 8px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
    font-family: Instrument 'Instrument Sans';
    font-weight: 400;
    line-height: 18.18px;
}

.cbf-step.active .cbf-step-label,
.cbf-step.completed .cbf-step-label {
    color: #0A3A61;
    font-weight: 500;
}

.cbf-step-line {
    width: 80px;
    height: 2px;
    background: #d1d5db;
    margin: 0 8px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.cbf-step-line.active {
    background: #1e3a5f;
}

/* ==========================================================================
   Form Steps Container
   ========================================================================== */
.cbf-form {
    position: relative;
}

.cbf-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.cbf-form-step.active {
    display: block;
}

.cbf-form-step[data-step="4"] {
    background: #ffffff;
    border-radius: 30px;
    min-height: 600px;
    padding: 68px 151px;
}

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

/* ==========================================================================
   Step Titles
   ========================================================================== */
.cbf-step-title {
    font-size: 28px;
    font-weight: 700;
    color: #0A3A61;
    margin: 0 0 24px 0;
    text-align: left;
    font-family: 'Instrument Sans';
    line-height: 36px;
}

.cbf-step-subtitle {
    font-size: 18px;
    color: #5C738A;
    margin: 0 0 24px 0;
    text-align: left;
    font-family: 'Instrument Sans';
    font-weight: 400;
    line-height: 27px;
}

/* ==========================================================================
   Step 1: Consultation Type Cards
   ========================================================================== */
.cbf-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.cbf-type-card {
    background: #fff;
    border: 2px solid #DAE0E7;
    border-radius: 12px;
    padding: 20px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cbf-type-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cbf-type-card.selected {
    border-color: #1e3a5f;
    background: #f0f4f8;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
}

.cbf-type-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0C141D;
    margin: 0 0 6px 0;
font-family: 'Instrument Sans';
    line-height: 22.73px;
}

.cbf-type-card p {
    font-size: 14px;
    color: #5C738A;
    margin: 0;
    line-height: 18.18px;
    font-family: 'Instrument Sans';
    font-weight: 400;
}

/* ==========================================================================
   Step 2: Date & Time Selection
   ========================================================================== */
.cbf-date-section {
    margin-bottom: 30px;
}

.cbf-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #0C141D;
    margin-bottom: 8px;
    font-family: 'Instrument Sans';
}

.cbf-date-input-wrapper {
    position: relative;
}

.cbf-date-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    transition: border-color 0.25s ease;
    appearance: none;
}

.cbf-date-input:focus {
    outline: none;
    border-color: #1e3a5f;
}


.cbf-calendar-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    /* font-size: 18px; */
    pointer-events: none;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cbf-time-section {
    margin-bottom: 30px;
}

.cbf-time-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 11px;
    border-radius: 5px;
    color: #ffffff;
}

.cbf-time-slot {
    padding: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #0A2540;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Instrument Sans';
}

.cbf-time-slot:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.cbf-time-slot.selected {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

/* ==========================================================================
   Step 3: Contact Form
   ========================================================================== */
.cbf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.cbf-form-group {
    display: flex;
    flex-direction: column;
}

.cbf-form-group.cbf-full-width {
    grid-column: 1 / -1;
}

.cbf-label .required {
    color: #dc2626;
}

.cbf-input,
.cbf-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    transition: border-color 0.25s ease;
}

.cbf-input::placeholder,
.cbf-textarea::placeholder {
    color: #9ca3af;
}

.cbf-input:focus,
.cbf-textarea:focus {
    outline: none;
    border-color: #1e3a5f;
}

.cbf-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Step 4: Confirmation
   ========================================================================== */
.cbf-confirmation-container {
    text-align: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cbf-success-icon {
    margin: 0 auto 18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #d4a84b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbf-success-icon img {
    width: 34px;
    height: 34px;
    display: block;
}

.cbf-confirmation-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 10px 0;
}

.cbf-confirmation-message {
    font-size: 15px;
    color: #1f2d3d;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.5;
}

.cbf-confirmation-email {
    font-size: 15px;
    color: #1f2d3d;
    margin: 0 0 22px 0;
    font-weight: 600;
    line-height: 1.5;
}

.cbf-confirmation-email span,
.cbf-confirmation-message span {
    font-weight: 600;
    color: #1e3a5f;
}

.cbf-booking-summary {
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 16px;
    margin: 0 0 22px 0;
    border-radius: 10px;
    background: #a7b1bc;
    text-align: left;
    flex: 0 0 auto;
}

.cbf-booking-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.cbf-booking-icon {
    font-size: 24px;
    background: transparent;
    color: #1e3a5f;
    width: 18px;
    height: 18px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    margin-top: 2px;
}

.cbf-booking-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #16324a;
    margin: 0 0 6px 0;
}

.cbf-booking-details {
    flex: 1;
    text-align: left;
}

.cbf-booking-details p {
    font-size: 13px;
    color: #17324a;
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cbf-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.cbf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9.09px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Instrument Sans';
    border-radius: 13.64px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    line-height: 22.73px;
    opacity: 1;
}

.cbf-btn-primary {
    background: #0A3A61;
    color: #fff;
    border: none;
}

.cbf-btn-primary:hover:not(:disabled) {
    background: #4a6a8a;
}

.cbf-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cbf-btn-secondary {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.cbf-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.cbf-btn-return {
    background: #d4a84b;
    color: #1e3a5f;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    min-width: 176px;
    align-self: center;
}

.cbf-btn-return:hover {
    background: #c49a3f;
}

.cbf-arrow {
    font-size: 18px;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
.cbf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Error Message
   ========================================================================== */
.cbf-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
}

.cbf-error-message p {
    color: #dc2626;
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   Validation Styles
   ========================================================================== */
.cbf-input.error,
.cbf-textarea.error,
.cbf-date-input.error {
    border-color: #dc2626;
}

.cbf-type-card.error {
    border-color: #dc2626;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    .cbf-consultation-form {
        padding: 20px 16px;
    }

    .cbf-progress-steps {
        padding: 0;
    }

    .cbf-step-line {
        width: 30px;
    }

    .cbf-step-label {
        font-size: 10px;
    }

    .cbf-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .cbf-step-title {
        font-size: 22px;
    }

    .cbf-step-subtitle {
        font-size: 14px;
    }

    .cbf-type-grid {
        grid-template-columns: 1fr;
    }

    .cbf-time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cbf-form-grid {
        grid-template-columns: 1fr;
    }

    .cbf-form-step[data-step="4"] {
        min-height: auto;
        padding: 36px 24px;
        border-radius: 20px;
    }

    .cbf-form-group {
        grid-column: 1;
    }

    .cbf-buttons {
        flex-direction: column;
    }

    .cbf-btn {
        width: 100%;
    }

    .cbf-booking-summary {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .cbf-booking-details {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cbf-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cbf-step-line {
        width: 20px;
    }

    .cbf-progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cbf-confirmation-container {
        max-width: 100%;
    }

    .cbf-form-step[data-step="4"] {
        padding: 28px 16px;
        border-radius: 16px;
    }

    .cbf-success-icon img {
        width: 60px;
        height: 60px;
    }

    .cbf-confirmation-title {
        font-size: 24px;
    }
}