/* ============================================================
   Reporting Adverse Events — Pivya Styles
   ============================================================ */

/* ── Form Section wrapper & Main Container ────────────────── */
#adverse-event {
    padding: 48px 0 64px;
    background: #f5f8f8 !important;
}

.ae-form-container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* ── Stepper ─────────────────────────────────────────────── */
ul#stepTabs.stepper {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 36px !important;
    max-width: 500px;
    justify-content: space-between;
    position: relative;
    gap: 0;
}

/* Horizontal connector line */
ul#stepTabs.stepper::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 45px;
    right: 45px;
    height: 2px;
    background: #cbd5e1;
    z-index: 0;
}

ul#stepTabs.stepper .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

ul#stepTabs.stepper .nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 9px;
    background: none !important;
    border: none !important;
    padding: 0 12px 14px !important;
    cursor: default;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Circle */
ul#stepTabs.stepper .nav-link .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 800;
    font-size: 16px;
    border: 3px solid #e2e8f0;
    transition: background 0.3s ease, border-color 0.3s ease,
                color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* Label */
ul#stepTabs.stepper .nav-link .step-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Active / current */
ul#stepTabs.stepper .nav-link.active .step-num,
ul#stepTabs.stepper .nav-link.current-step .step-num {
    background: linear-gradient(135deg, #1d6fa6, #0b2265) !important;
    border-color: #1d6fa6 !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(29, 111, 166, 0.45);
    transform: scale(1.08);
}

ul#stepTabs.stepper .nav-link.active .step-label,
ul#stepTabs.stepper .nav-link.current-step .step-label {
    color: #0b2265 !important;
    font-weight: 800 !important;
}

/* ── Cards & Spacing ─────────────────────────────────────── */
.contact-card {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 36px 32px !important;
    box-shadow: 0 4px 24px rgba(11, 34, 101, 0.07) !important;
    margin-bottom: 24px;
}

/* ── Step 1: Question + Radio ────────────────────────────── */
.com-flex > p {
    font-size: 1.05rem;
    color: #1e293b;
    line-height: 1.65;
    margin-bottom: 22px;
}

.form-check-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-right: 28px;
    cursor: pointer;
    vertical-align: middle;
}

.form-check-input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    border: 2px solid #94a3b8 !important;
    border-radius: 50% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0 !important;
    position: relative;
    vertical-align: middle;
}

.form-check-input[type="radio"]:checked {
    background: #1d6fa6 !important;
    border-color: #1d6fa6 !important;
    box-shadow: 0 0 0 4px rgba(29, 111, 166, 0.15);
}

.form-check-input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.form-check-inline label {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0b2265 !important;
    cursor: pointer;
    margin: 0;
}

/* ── YES card ────────────────────────────────────────────── */
.display-after {
    border-left: 4px solid #1d6fa6 !important;
    background: #f0f7ff !important;
    margin-top: 24px !important;
}

.display-after p {
    font-size: 14.5px;
    line-height: 1.72;
    color: #334155;
    margin-bottom: 14px;
}

/* ── Accept button ───────────────────────────────────────── */
button#next,
.ae-accept-btn {
    background: linear-gradient(135deg, #2f9e5a, #1d6fa6) !important;
    color: #fff !important;
    padding: 13px 36px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(29, 111, 166, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block !important;
    text-align: center;
    line-height: 1.4;
}

button#next:hover,
.ae-accept-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── NO box ──────────────────────────────────────────────── */
.display-no {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-top: 24px !important;
}

.display-no p {
    font-size: 15px;
    color: #78350f;
    margin: 0;
}

.display-no a {
    color: #b45309 !important;
    font-weight: 700;
}

/* ── Form Grid System & Inputs ───────────────────────────── */
#adverse-event .row,
.ae-form-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
}

#adverse-event .col-md-6,
.ae-form-col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
}

#adverse-event .col-md-12,
.ae-form-col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
}

@media (max-width: 767px) {
    #adverse-event .col-md-6,
    .ae-form-col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.form-group-field {
    margin-bottom: 20px;
}

/* ── Form labels ─────────────────────────────────────────── */
.contact-card label,
.custom-padd label,
.reporting-form label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 7px;
    color: #0b2265;
    letter-spacing: 0.01em;
}

/* ── Form controls ───────────────────────────────────────── */
.form-control,
.contact-card input[type="text"],
.contact-card select,
.contact-card textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #1e293b;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-sizing: border-box;
    font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus,
.contact-card input[type="text"]:focus,
.contact-card select:focus,
.contact-card textarea:focus {
    border-color: #1d6fa6 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(29, 111, 166, 0.12) !important;
}

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

/* select arrow */
.contact-card select,
.form-control[size="1"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* ── Input group (Email + Send OTP) ──────────────────────── */
.input-group,
.contact-card .input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative;
}

.input-group > .otp_border,
.input-group > .form-control,
.contact-card .input-group input[type="text"],
.contact-card .input-group .form-control {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 10px 0 0 10px !important;
    border-right: none !important;
}

.input-group > .btn_otp,
.input-group > input[type="submit"],
.input-group > .btn-success,
.input-group > .btn,
.contact-card .input-group .btn_otp,
.contact-card .input-group input[type="submit"],
.contact-card .input-group .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 48px !important;
    min-height: 48px !important;
    background: linear-gradient(135deg, #2f9e5a, #1d6fa6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 0 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease;
}

.input-group > .btn_otp:hover,
.input-group > input[type="submit"]:hover,
.input-group > .btn-success:hover,
.contact-card .input-group .btn_otp:hover {
    opacity: 0.88;
}

#otp_verify,
.contact-card #otp_verify {
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 10px !important;
}

.fst-italic {
    color: #64748b;
    font-size: 13px;
}

/* ── Navigation buttons ───────────────────────────────────── */
.btn-prev {
    display: inline-block;
    border: 2px solid #1d6fa6 !important;
    background: transparent !important;
    color: #1d6fa6 !important;
    padding: 11px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
    text-decoration: none;
    line-height: 1.4;
    margin: 0;
}

.btn-prev:hover {
    background: #1d6fa6 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-greens,
.btn-next,
.btn-next-otp {
    background: linear-gradient(135deg, #2f9e5a, #1d6fa6) !important;
    color: #fff !important;
    padding: 12px 34px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 15px;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(29, 111, 166, 0.28);
    transition: opacity 0.22s ease, transform 0.22s ease;
    display: inline-block;
    text-decoration: none;
    line-height: 1.4;
}

.btn-greens:hover,
.btn-next:hover,
.btn-next-otp:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Submit Report button ─────────────────────────────────── */
.ae-submit-btn,
input.ae-submit-btn[type="submit"] {
    background: linear-gradient(135deg, #2f9e5a, #1d6fa6) !important;
    color: #fff !important;
    padding: 14px 44px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(29, 111, 166, 0.32) !important;
    transition: opacity 0.22s ease, transform 0.22s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.4;
}

.ae-submit-btn:hover,
input.ae-submit-btn:hover {
    opacity: 0.87 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 36px rgba(29, 111, 166, 0.38) !important;
}

/* ── Reporting form text ──────────────────────────────────── */
.reporting-form p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.72;
    margin-bottom: 14px;
}

.reporting-form p a {
    color: #1d6fa6;
    text-decoration: underline;
    font-weight: 600;
}

.reporting-form p a:hover {
    color: #0b2265;
}

/* ── Captcha image ───────────────────────────────────────── */
img#capimg {
    height: 46px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    display: block;
}

/* ── Validation errors ───────────────────────────────────── */
.text-danger,
span.text-danger,
.err.text-danger,
.val-error {
    color: #dc2626 !important;
    font-size: 12.5px;
    display: block;
    margin-top: 5px;
}

/* ── Consent checkbox label ──────────────────────────────── */
.reporting-form label.d-flex p {
    font-size: 14px;
    color: #0b2265;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.border-top {
    border-top: 1px solid #e2e8f0 !important;
}

/* ── Other Ways to Report ────────────────────────────────── */
#other-ways {
    background: linear-gradient(135deg, #0b2265 0%, #1d6fa6 100%) !important;
    padding: 30px 0 !important;
    margin: 0 !important;
}

#other-ways .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#other-ways h2,
#other-ways h4 {
    color: #fff !important;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important;
    font-weight: 800 !important;
    padding: 0 !important;
    margin: 0 !important;
    letter-spacing: 0.01em;
    text-align: center;
}

/* ── Contact section wrapper & Grid ──────────────────────── */
.ae-contact-section {
    padding: 56px 0 64px !important;
    background: #ffffff !important;
}

.ae-cards-container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.ae-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 36px;
}

@media (max-width: 949px) {
    .ae-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ── Contact detail cards ────────────────────────────────── */
.contact-detail-card {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 32px 28px !important;
    box-shadow: 0 4px 20px rgba(11, 34, 101, 0.08) !important;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.contact-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(11, 34, 101, 0.14) !important;
}

/* Icon circle */
.icon-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(47, 158, 90, 0.12), rgba(29, 111, 166, 0.15)) !important;
    margin-bottom: 18px;
    color: #1d6fa6;
    font-size: 24px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-detail-card:hover .icon-circle {
    background: linear-gradient(135deg, #2f9e5a, #1d6fa6) !important;
    color: #fff;
}

.contact-detail-card h3,
.contact-detail-card h5 {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0b2265 !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.contact-detail-card p {
    font-size: 14.5px !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    line-height: 1.6 !important;
}

.contact-detail-card p:last-child {
    margin-bottom: 0 !important;
}

.contact-detail-card strong {
    color: #0b2265;
    font-weight: 700;
}

.text-blue-hover {
    color: #1d6fa6 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-blue-hover:hover {
    color: #0b2265 !important;
    text-decoration: underline;
}

/* ── Emergency box ───────────────────────────────────────── */
.emergency-box {
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    border-left: 5px solid #f97316 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emergency-box h4 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #c2410c !important;
    margin-bottom: 0 !important;
}

.emergency-box h6 {
    font-size: 14.5px !important;
    color: #7c2d12 !important;
    line-height: 1.65;
    margin: 0 !important;
    font-weight: 500;
}

.emergency-box h6 a,
.emergency-box a {
    color: #c2410c !important;
    font-weight: 800;
    text-decoration: underline;
}

/* ── Utilities ───────────────────────────────────────────── */
.color-blue {
    color: #0b2265 !important;
}

.underline-below {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    ul#stepTabs.stepper::before {
        left: 36px;
        right: 36px;
    }
}

@media (max-width: 767px) {
    #adverse-event {
        padding: 36px 0 48px;
    }

    .contact-card {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }

    .contact-detail-card {
        padding: 24px 20px !important;
    }

    .ae-contact-section {
        padding: 40px 0 48px !important;
    }
}

@media (max-width: 575px) {
    ul#stepTabs.stepper {
        justify-content: space-around;
    }

    ul#stepTabs.stepper::before {
        left: 24px;
        right: 24px;
    }

    ul#stepTabs.stepper .nav-link .step-num {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    ul#stepTabs.stepper .nav-link .step-label {
        font-size: 10px;
    }

    .input-group,
    .contact-card .input-group {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .input-group > .otp_border,
    .contact-card .input-group input[type="text"],
    .contact-card .input-group .form-control {
        border-radius: 10px 10px 0 0 !important;
        border-right: 1.5px solid #cbd5e1 !important;
        border-bottom: none !important;
        width: 100% !important;
    }

    .btn_otp,
    .input-group > input[type="submit"],
    .input-group > .btn-success,
    .input-group > .btn,
    .contact-card .input-group .btn_otp,
    .contact-card .input-group input[type="submit"] {
        border-radius: 0 0 10px 10px !important;
        width: 100% !important;
        padding: 13px 20px !important;
        min-height: 44px;
        height: 44px !important;
    }

    .btn-greens,
    .btn-prev,
    .ae-submit-btn {
        width: 100%;
        text-align: center;
        display: block !important;
        box-sizing: border-box;
    }

    button#next,
    .ae-accept-btn {
        width: 100%;
        display: block !important;
    }
}
