/* ============================================================
   Adverse Event Reporting form — Keuro Life
   Uses the site's Poppins fonts (loaded via styles.css) and brand palette:
   green #78BE20 · dark green #1D3C34 · grey #1E1E1E · light grey #969696
   ============================================================ */

.ae-page {
    font-family: 'poppins-regular', sans-serif;
    color: #1E1E1E;
    background: #f4f6f4;
}

/* Header logo sits over the dark hero, matching the homepage header */
.ae-page header { position: absolute; }

/* ---- Hero (same banner background as the home page top) ---- */
.ae-hero {
    background: url(/content/images/homepage/banner.jpg) center / cover no-repeat;
    color: #fff;
    padding: 150px 0 60px;
}
.ae-hero h1 {
    font-family: 'poppins-bold', sans-serif;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.ae-hero .ae-intro {
    font-family: 'poppins-regular', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.85);
}
.ae-hero .ae-intro a { color: #94E541; text-decoration: underline; }

/* ---- Form section ---- */
.ae-form-section { padding: 50px 0 90px; }

.ae-required-note {
    font-family: 'poppins-regular', sans-serif;
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 24px;
}

.ae-form {
    background: #fff;
    padding: 34px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(29, 60, 52, 0.08);
    max-width: 860px;
}

.ae-section { border: none; margin: 0 0 26px; padding: 0; }
.ae-section legend {
    font-family: 'poppins-bold', sans-serif;
    font-size: 18px;
    color: #1D3C34;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 2px solid #78BE20;
    width: 100%;
    float: none;
}

.ae-field { margin-bottom: 20px; display: flex; flex-direction: column; }
.ae-field-row { display: flex; gap: 20px; }
.ae-field-row .ae-field { flex: 1; }

.ae-field label {
    font-family: 'poppins-semibold', sans-serif;
    font-size: 14px;
    color: #1D3C34;
    margin-bottom: 8px;
}
.ae-req { color: #d33; font-weight: bold; }

.ae-field input[type="text"],
.ae-field input[type="email"],
.ae-field input[type="tel"],
.ae-field input[type="file"],
.ae-field select,
.ae-field textarea {
    font-family: 'poppins-regular', sans-serif;
    font-size: 15px;
    color: #1E1E1E;
    padding: 14px 16px;
    background: #f7f9f7;
    border: 1px solid #d7ddd7;
    border-radius: 6px;
    outline: none;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ae-field textarea { resize: vertical; min-height: 120px; }

.ae-field input:focus,
.ae-field select:focus,
.ae-field textarea:focus {
    border-color: #78BE20;
    box-shadow: 0 0 0 3px rgba(120, 190, 32, 0.15);
    background: #fff;
}

.ae-field input.ae-invalid,
.ae-field select.ae-invalid,
.ae-field textarea.ae-invalid { border-color: #d33; background: #fff7f7; }

.ae-help { font-size: 12.5px; color: #7a7a7a; margin-top: 6px; line-height: 1.5; }
.ae-error { font-size: 13px; color: #d33; margin-top: 6px; font-family: 'poppins-semibold', sans-serif; }

/* ---- Request-type cards ---- */
.ae-type-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.ae-type-card {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #d7ddd7;
    border-radius: 8px;
    cursor: pointer;
    background: #f7f9f7;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin: 0;
}
.ae-type-card:hover { border-color: #78BE20; }
.ae-type-card span { font-family: 'poppins-semibold', sans-serif; font-size: 15px; color: #1D3C34; }
.ae-type-card input { width: 18px; height: 18px; accent-color: #78BE20; }
.ae-type-card:has(input:checked) { border-color: #78BE20; background: rgba(120, 190, 32, 0.08); }

/* ---- Sub-forms ---- */
.ae-subform {
    margin-top: 24px;
    padding-top: 6px;
    border-top: 1px dashed #dfe4df;
}
.ae-subform[hidden] { display: none; }

/* ---- Privacy + submit ---- */
.ae-privacy { margin: 10px 0 26px; }
.ae-check { flex-direction: row; align-items: flex-start; gap: 12px; cursor: pointer; }
.ae-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #78BE20; flex: 0 0 auto; }
.ae-check span {
    font-family: 'poppins-regular', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}
.ae-check a { color: #1D3C34; text-decoration: underline; }

.ae-btn {
    display: inline-block;
    font-family: 'poppins-medium', sans-serif;
    font-size: 16px;
    padding: 16px 44px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: filter 0.15s ease;
}
.ae-btn-primary { background: #78BE20; color: #1D3C34; }
.ae-btn-primary:hover { filter: brightness(0.95); }
.ae-btn-outline {
    background: transparent;
    border: 2px solid #78BE20;
    color: #1D3C34;
    margin-top: 16px;
}

/* ---- Alerts ---- */
.ae-alert { padding: 22px 26px; border-radius: 8px; margin-bottom: 26px; max-width: 860px; }
.ae-alert-success { background: #eef7e6; border: 1px solid #78BE20; }
.ae-alert-success h2 { font-family: 'poppins-bold', sans-serif; font-size: 22px; color: #1D3C34; margin-bottom: 10px; }
.ae-alert-success p { font-size: 15px; color: #33503f; line-height: 1.6; }
.ae-alert-error { background: #fdeceb; border: 1px solid #d33; color: #a12018; font-family: 'poppins-semibold', sans-serif; }

/* ---- Footer ---- */
.ae-footer {
    display: flex; align-items: center; justify-content: center;
    padding: 34px 0; background: #000;
    font-family: 'poppins-regular', sans-serif;
    font-size: 12px; color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   RTL (Arabic)
   ============================================================ */
.ae-rtl .ae-hero .ae-intro,
.ae-rtl .ae-form { text-align: right; }
.ae-rtl .change-lang a { direction: ltr; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767px) {
    .ae-hero { padding: 120px 0 44px; }
    .ae-hero h1 { font-size: 28px; }
    .ae-form { padding: 22px 18px; }
    .ae-field-row { flex-direction: column; gap: 0; }
    .ae-type-cards { flex-direction: column; }
    .ae-btn { width: 100%; }
}
