/* ==========================================================================
   WHY-APPOINTMENT-CUSTOM.CSS - 2 SECTION RIÊNG BIỆT: TẠI SAO CHỌN CHÚNG TÔI & ĐẶT LỊCH HẸN
   Nha Khoa 3D - Tuân thủ nghiêm ngặt 4 nguyên tắc thiết kế:
   1. Kế thừa & Cải tiến có chủ đích (Tách bạch 2 section rõ ràng, tăng trải nghiệm người dùng)
   2. Phong cách chuyên nghiệp, thực tế, KHÔNG "AI" (Viền mảnh 1px #e2e8f0, bóng đổ mềm, không glassmorphism/neon)
   3. Responsive chuẩn chỉ chống vỡ layout trên mọi kích thước màn hình
   4. Thử nghiệm ổn định chữ tiếng Việt, touch target >= 44px
   ========================================================================== */

/* 0. Triệt để khử viền đen/outline mặc định khi click/tap */
.clinic-why-us-section a,
.clinic-why-us-section button,
.clinic-appointment-section a,
.clinic-appointment-section button,
.clinic-appointment-section input,
.clinic-appointment-section .clinic-input {
    outline: none !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* ==========================================================================
   SECTION 1: TẠI SAO CHỌN CHÚNG TÔI (.clinic-why-us-section)
   Tone màu chủ đạo: Xanh Navy Y Tế Chuẩn Chuyên Khoa (#162746)
   Căn giữa trang trọng, Tương phản cao, Typography chuẩn y khoa
   ========================================================================== */
.clinic-why-us-section {
    background: linear-gradient(180deg, #162746 0%, #111e38 100%);
    padding: 65px 0 70px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clinic-why-us-section .why-us-center-wrap {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.clinic-why-us-section .why-us-header-centered {
    margin-bottom: 24px;
    text-align: center;
}

.clinic-why-us-section .why-us-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    background-color: rgba(0, 132, 201, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.clinic-why-us-section .why-us-main-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.35;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    text-align: center;
}

/* Chuẩn hóa nội dung văn bản từ Database (loại bỏ times-new-roman, cỡ chữ đồng nhất 14.5px-15px) */
.clinic-why-us-section .why-us-text-centered,
.clinic-why-us-section .why-us-text-centered * {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    white-space: normal !important;
}

.clinic-why-us-section .why-us-text-centered {
    margin: 0 auto 24px;
    max-width: 880px;
}

.clinic-why-us-section .why-us-text-centered p,
.clinic-why-us-section .why-us-text-centered span {
    font-size: 14.5px !important;
    line-height: 1.78 !important;
    color: #cbd5e1 !important; /* Xám sáng dịu mắt, tương phản chuẩn trên nền navy */
    margin-bottom: 14px !important;
    text-align: justify;
    text-justify: inter-word;
}

.clinic-why-us-section .why-us-text-centered p:last-child {
    margin-bottom: 0 !important;
}

/* Nút Tìm hiểu thêm dạng Pill đồng bộ với hệ thống */
.clinic-why-us-section .why-us-action-centered {
    margin-top: 26px;
    text-align: center;
}

.clinic-why-us-section .why-us-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 28px;
    background-color: #0084c9;
    border: 1px solid #0284c7;
    color: #ffffff !important;
    border-radius: 999px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 132, 201, 0.28);
    transition: all 0.25s ease;
}

.clinic-why-us-section .why-us-btn-pill:hover {
    background-color: #0072b2;
    border-color: #0072b2;
    box-shadow: 0 6px 18px rgba(0, 132, 201, 0.42);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.clinic-why-us-section .why-us-btn-pill i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.clinic-why-us-section .why-us-btn-pill:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   SECTION 2: ĐẶT LỊCH HẸN KHÁM (.clinic-appointment-section)
   Thiết kế 2 cột chuẩn mẫu tham khảo:
   - Cột trái: Nền xanh navy y tế uy tín, Badge đỏ, Lợi ích 3 cam kết, Hotline 24/7
   - Cột phải: Form đặt hẹn trắng sáng, bố cục 2 cột khoa học, Nút Đặt lịch đỏ nổi bật
   ========================================================================== */
.clinic-appointment-section {
    background-color: #f1f5f9;
    padding: 65px 0 75px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.clinic-appointment-section .appointment-wrapper-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* CỘT TRÁI: NAVY Y TẾ */
.clinic-appointment-section .appointment-info-col {
    background: linear-gradient(175deg, #0b1528 0%, #162746 100%);
    color: #ffffff;
    padding: 44px 38px;
    flex: 0 0 42%;
    max-width: 42%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.clinic-appointment-section .appointment-badge-red {
    display: inline-block;
    padding: 5px 14px;
    background-color: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.clinic-appointment-section .appointment-main-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.32;
    letter-spacing: -0.3px;
}

.clinic-appointment-section .appointment-lead-desc {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.62;
    margin: 0 0 28px;
}

/* Danh sách 3 cam kết lợi ích */
.clinic-appointment-section .appointment-perks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.clinic-appointment-section .perk-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.5;
}

.clinic-appointment-section .perk-item i {
    color: #38bdf8;
    font-size: 16px;
    margin-top: 2px;
    flex: 0 0 16px;
}

/* Hộp Hotline chân cột trái */
.clinic-appointment-section .appointment-hotline-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: auto;
}

.clinic-appointment-section .hotline-card-label {
    display: block;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.clinic-appointment-section .hotline-card-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clinic-appointment-section .hotline-link-cyan {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.clinic-appointment-section .hotline-link-cyan:hover {
    color: #7dd3fc;
    transform: translateY(-1px);
}

.clinic-appointment-section .hotline-dash {
    color: #64748b;
    font-weight: 700;
}

/* CỘT PHẢI: FORM ĐẶT HẸN TRẮNG SÁNG */
.clinic-appointment-section .appointment-form-col {
    background: #ffffff;
    padding: 44px 42px;
    flex: 0 0 58%;
    max-width: 58%;
}

.clinic-appointment-section .form-card-header {
    margin-bottom: 22px;
}

.clinic-appointment-section .form-card-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.clinic-appointment-section .form-card-subtitle {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Lưới Form 2 cột khoa học */
.clinic-appointment-section .form-grid-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.clinic-appointment-section .form-field-group {
    flex: 1 1 50%;
    min-width: 0;
}

.clinic-appointment-section .form-field-group.full-width {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 20px;
}

.clinic-appointment-section .field-label {
    display: block;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.clinic-appointment-section .required-star {
    color: #dc2626;
}

/* Các trường input, select, textarea */
.clinic-appointment-section .clinic-field-input,
.clinic-appointment-section .clinic-field-select,
.clinic-appointment-section .clinic-field-textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none !important;
}

.clinic-appointment-section .clinic-field-textarea {
    height: auto;
    min-height: 70px;
    padding: 10px 14px;
    resize: vertical;
}

.clinic-appointment-section .clinic-field-input:focus,
.clinic-appointment-section .clinic-field-select:focus,
.clinic-appointment-section .clinic-field-textarea:focus {
    border-color: #0084c9 !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 201, 0.15) !important;
}

.clinic-appointment-section .clinic-field-input::placeholder,
.clinic-appointment-section .clinic-field-textarea::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

/* Bọc Select có mũi tên đẹp */
.clinic-appointment-section .select-wrapper {
    position: relative;
}

.clinic-appointment-section .clinic-field-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

/* Nút Submit Đỏ rực rỡ chuẩn mẫu */
.clinic-appointment-section .form-submit-row {
    margin-top: 6px;
}

.clinic-appointment-section .appointment-btn-confirm {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #ffffff !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.clinic-appointment-section .appointment-btn-confirm:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.clinic-appointment-section .appointment-btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Từ 991px xuống 360px - Chống vỡ)
   ========================================================================== */
@media (max-width: 991px) {
    .clinic-why-us-section {
        padding: 48px 0 52px;
    }

    .clinic-why-us-section .why-us-main-title {
        font-size: 24px;
    }

    .clinic-appointment-section {
        padding: 45px 0 50px;
    }

    .clinic-appointment-section .appointment-wrapper-box {
        flex-direction: column;
        border-radius: 14px;
    }

    .clinic-appointment-section .appointment-info-col,
    .clinic-appointment-section .appointment-form-col {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 34px 28px;
    }

    .clinic-appointment-section .appointment-hotline-card {
        margin-top: 24px;
    }

    .clinic-appointment-section .appointment-main-title {
        font-size: 23px;
    }
}

@media (max-width: 600px) {
    .clinic-why-us-section {
        padding: 38px 0 42px;
    }

    .clinic-why-us-section .why-us-badge {
        font-size: 11px;
        padding: 5px 14px;
    }

    .clinic-why-us-section .why-us-main-title {
        font-size: 20px;
        line-height: 1.35;
    }

    .clinic-why-us-section .why-us-text-centered p,
    .clinic-why-us-section .why-us-text-centered span {
        font-size: 14px !important;
        line-height: 1.68 !important;
        text-align: left !important;
    }

    .clinic-why-us-section .why-us-btn-pill {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        height: 44px;
    }

    .clinic-appointment-section {
        padding: 35px 0 40px;
    }

    .clinic-appointment-section .appointment-wrapper-box {
        border-radius: 12px;
    }

    .clinic-appointment-section .appointment-info-col,
    .clinic-appointment-section .appointment-form-col {
        padding: 26px 18px;
    }

    .clinic-appointment-section .appointment-main-title {
        font-size: 20px;
    }

    .clinic-appointment-section .form-card-title {
        font-size: 20px;
    }

    .clinic-appointment-section .form-grid-row {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 14px;
    }

    .clinic-appointment-section .clinic-field-input,
    .clinic-appointment-section .clinic-field-select {
        height: 44px;
        font-size: 16px; /* Chống iOS zoom tự động */
    }

    .clinic-appointment-section .appointment-btn-confirm {
        height: 48px;
        font-size: 13.5px;
    }
}

@media (max-width: 360px) {
    .clinic-why-us-section .why-us-main-title,
    .clinic-appointment-section .appointment-main-title,
    .clinic-appointment-section .form-card-title {
        font-size: 18px;
    }
}