/* =========================================================
   PUBLIC ATTESTATION REQUEST PAGE (form + success)
   ========================================================= */

:root {
    --gls-cream: #fffee8;
    --gls-cream-soft: #fffff9;
    --gls-border: #e6e2c5;
    --gls-blue: #2563eb;
    --gls-blue-light: #3577f4;
    --gls-blue-dark: #1533a1;
    --gls-text: #1c1c1a;
    --gls-muted: #6c6a5e;
    --gls-yellow: #fc0;
    --gls-success: #009d5a;
}

body { background: var(--gls-cream) !important; }

/* ── HERO ─────────────────────────────────────── */
.att-hero {
    position: relative;
    padding: 64px 0 32px;
    overflow: hidden;
}
.att-hero::before,
.att-hero::after {
    content: ''; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.att-hero::before {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(37,99,235,.15), transparent 70%);
    top: -80px; left: -80px;
}
.att-hero::after {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,204,0,.22), transparent 70%);
    bottom: -60px; right: -60px;
}
.att-hero-inner { position: relative; z-index: 1; text-align: center; }
.att-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .9rem;
    background: rgba(37,99,235,.08);
    color: var(--gls-blue);
    border-radius: 999px;
    font-size: .8rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.att-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--gls-blue);
    animation: attPulse 1.6s ease-in-out infinite;
}
@keyframes attPulse { 50% { opacity: .35; transform: scale(.85); } }

.att-hero h1 {
    font-family: "Now", sans-serif; font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.1; color: var(--gls-text);
    margin-bottom: .75rem;
}
.att-hero h1 .accent {
    background: linear-gradient(120deg, var(--gls-blue) 0%, var(--gls-blue-light) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.att-hero p.lead {
    color: var(--gls-muted); font-size: 1.05rem;
    max-width: 620px; margin: 0 auto;
}

/* ── STEPS BAR ─────────────────────────────────── */
.att-steps {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin: 28px auto 0;
}
.att-step-chip {
    display: flex; align-items: center; gap: .55rem;
    background: #fff; border: 1px solid var(--gls-border);
    padding: .55rem 1rem; border-radius: 999px;
    font-size: .85rem; color: var(--gls-text); font-weight: 500;
}
.att-step-chip .num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gls-blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .72rem;
}
.att-step-chip.muted .num { background: #c9c4ad; }
.att-step-chip.muted { color: var(--gls-muted); }

/* ── FORM CARD ─────────────────────────────────── */
.att-page { padding: 24px 0 90px; }
.att-card {
    background: #fff;
    border: 1px solid var(--gls-border);
    border-radius: 20px;
    padding: 36px 36px 32px;
    max-width: 880px; margin: 0 auto;
    box-shadow: 0 12px 32px rgba(0,0,0,.05);
}
.att-section-title {
    font-family: "Now", sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--gls-text);
    display: flex; align-items: center; gap: .55rem;
    margin: 0 0 16px;
}
.att-section-title i {
    width: 32px; height: 32px; border-radius: 10px;
    background: rgba(37,99,235,.1); color: var(--gls-blue);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.att-divider {
    border: 0; border-top: 1px dashed var(--gls-border);
    margin: 28px 0 22px;
}

.att-card .form-label {
    font-weight: 600; font-size: .9rem;
    color: var(--gls-text);
    margin-bottom: .35rem;
}
.att-card .form-control,
.att-card .form-select {
    border: 1px solid var(--gls-border);
    background: var(--gls-cream-soft);
    border-radius: 12px;
    color: var(--gls-text);
    padding: .7rem .95rem;
    font-size: .95rem;
    transition: all .15s ease;
}
.att-card .form-control:focus,
.att-card .form-select:focus {
    border-color: var(--gls-blue);
    background: #fff;
    box-shadow: 0 0 0 .18rem rgba(37,99,235,.15);
}
.att-card .form-control[readonly] {
    background: #f5f3e0;
    color: var(--gls-muted);
    font-style: italic;
}
.att-card small.help {
    color: var(--gls-muted);
    font-size: .8rem;
    display: block;
    margin-top: .35rem;
}
.att-card small.help i { color: var(--gls-blue); margin-right: 3px; }

.att-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center;
    margin-top: 28px;
}
.att-secure-note {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--gls-muted); font-size: .85rem;
}
.att-secure-note i { color: var(--gls-success); }

.att-submit {
    background: var(--gls-text);
    color: #fff;
    border: 0;
    padding: .85rem 1.85rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: transform .15s ease, background .15s ease;
}
.att-submit:hover {
    background: var(--gls-blue);
    transform: translateY(-2px);
    color: #fff;
}

.att-error {
    background: #fff4f4;
    border: 1px solid #f4c2c2;
    color: #b02323;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: .9rem;
}
.att-error ul { margin: 0; padding-left: 1.2rem; }

@media (max-width: 576px) {
    .att-card { padding: 24px 22px 22px; }
    .att-actions { flex-direction: column; align-items: stretch; }
    .att-submit { width: 100%; justify-content: center; }
}

/* ── SUCCESS PAGE ──────────────────────────────── */
.att-success-page {
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;
}
.att-success-page::before,
.att-success-page::after {
    content: ''; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.att-success-page::before {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(37,99,235,.15), transparent 70%);
    top: -80px; left: -80px;
}
.att-success-page::after {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,204,0,.22), transparent 70%);
    bottom: -60px; right: -60px;
}
.att-success-card {
    position: relative; z-index: 1;
    background:#fff;
    border: 1px solid var(--gls-border);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,.06);
    padding: 60px 40px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.att-success-card .icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(0,157,90,.1);
    color: var(--gls-success);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    position: relative;
}
.att-success-card .icon::before {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(0,157,90,.3);
    animation: attRotate 14s linear infinite;
}
@keyframes attRotate { to { transform: rotate(360deg); } }

.att-success-card h1 {
    font-family: "Now", sans-serif;
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--gls-text);
    margin-bottom: .65rem;
}
.att-success-card p {
    color: var(--gls-muted);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}
.att-success-actions {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.att-btn-primary {
    background: var(--gls-text); color: #fff;
    border: 0; padding: .85rem 1.6rem;
    border-radius: 12px; font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}
.att-btn-primary:hover { background: var(--gls-blue); transform: translateY(-2px); color: #fff; }
.att-btn-ghost {
    background: transparent; color: var(--gls-text);
    border: 1px solid var(--gls-border);
    padding: .85rem 1.6rem; border-radius: 12px;
    font-weight: 600; text-decoration: none;
    transition: all .15s ease;
}
.att-btn-ghost:hover {
    background: #fff;
    border-color: var(--gls-blue);
    color: var(--gls-blue);
}

/* ── GLS-only notice ─────────────────────────────── */
.att-gls-only {
    display: flex;
    gap: 16px;
    align-items: center;
    max-width: 920px;
    margin: 0 auto 28px;
    padding: 14px 20px;
    background: linear-gradient(180deg, #fffaf3 0%, #fff4e6 100%);
    border: 1px solid #fcd9b6;
    border-left: 4px solid #ea580c;
    border-radius: 14px;
    color: #7c2d12;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .08);
}
.att-gls-only-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fed7aa;
    color: #c2410c;
    font-size: 1.15rem;
}
.att-gls-only-body {
    flex: 1;
    min-width: 0;
}
.att-gls-only-body strong {
    display: block;
    font-size: .98rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #9a3412;
    letter-spacing: .1px;
}
.att-gls-only-body p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
    color: #7c2d12;
    opacity: .92;
}
@media (max-width: 575.98px) {
    .att-gls-only {
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
    }
    .att-gls-only-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .att-gls-only-body strong { font-size: .92rem; }
    .att-gls-only-body p      { font-size: .82rem; }
}
[dir="rtl"] .att-gls-only {
    border-left: 1px solid #fcd9b6;
    border-right: 4px solid #ea580c;
}

/* =========================================================
   Refined Select — designer pass
   - Custom chevron (animated on focus)
   - Cream-tinted dropdown menu (where browsers honor it)
   - Crisp focus ring matching brand blue
   ========================================================= */
.att-card .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 14px;
    padding-right: 2.5rem;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.4;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}
.att-card .form-select:hover {
    border-color: #cfc8a3;
    background-color: #fbf6dc;
}
.att-card .form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.att-card .form-select:invalid,
.att-card .form-select option[value=""] {
    color: var(--gls-muted);
}
.att-card .form-select option {
    background: #fff;
    color: var(--gls-text);
    padding: .5rem .75rem;
    font-weight: 500;
}
.att-card .form-select option:disabled {
    color: var(--gls-muted);
    font-style: italic;
}
.att-card .form-select option:checked {
    background: linear-gradient(0deg, var(--gls-blue), var(--gls-blue));
    color: #fff;
}

/* RTL: flip chevron to the left side */
[dir="rtl"] .att-card .form-select {
    background-position: left 1rem center;
    padding-right: .9rem;
    padding-left: 2.5rem;
}

/* =========================================================
   Custom Select (att-select) — designer-grade dropdown
   Native <select> stays in DOM for form submission + a11y,
   visually hidden behind the styled button + menu.
   ========================================================= */
.att-select {
    position: relative;
    width: 100%;
}
.att-select__native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}
.att-select__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--gls-cream-soft);
    border: 1px solid var(--gls-border);
    border-radius: 12px;
    color: var(--gls-text);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.att-select__btn:hover {
    border-color: #cfc8a3;
    background: #fbf6dc;
}
.att-select.is-open .att-select__btn,
.att-select__btn:focus-visible {
    outline: none;
    border-color: var(--gls-blue);
    background: #fff;
    box-shadow: 0 0 0 .18rem rgba(37,99,235,.15);
}
.att-select__value--placeholder {
    color: var(--gls-muted);
    font-weight: 500;
}
.att-select__chevron {
    color: var(--gls-text);
    flex-shrink: 0;
    transition: transform .2s ease, color .18s ease;
}
.att-select.is-open .att-select__chevron {
    transform: rotate(180deg);
    color: var(--gls-blue);
}

/* Floating menu — separated card, generous spacing, soft shadow */
.att-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: .5rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--gls-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .08), 0 2px 6px rgba(17, 24, 39, .04);
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
    transform-origin: top center;
    animation: attSelectIn .16s ease-out;
}
@keyframes attSelectIn {
    from { opacity: 0; transform: translateY(-4px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.att-select__opt {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    color: var(--gls-text);
    font-size: .98rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background-color .14s ease, color .14s ease;
}
.att-select__opt + .att-select__opt {
    margin-top: 2px;
}
.att-select__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    transition: background-color .14s ease, transform .14s ease;
}
.att-select__opt:hover,
.att-select__opt.is-active {
    background: #fbf6dc;
}
.att-select__opt[aria-selected="true"] {
    background: #f7f0d4;
    color: var(--gls-blue);
    font-weight: 700;
}
.att-select__opt[aria-selected="true"] .att-select__dot {
    background: var(--gls-blue);
    transform: scale(1.15);
}

/* When the value is set, swap placeholder color/weight */
.att-select__value:not(.att-select__value--placeholder) {
    color: var(--gls-text);
    font-weight: 700;
}

/* RTL */
[dir="rtl"] .att-select__btn { text-align: right; }

/* Mobile tweaks */
@media (max-width: 480px) {
    .att-select__menu { padding: .35rem; }
    .att-select__opt { padding: .65rem .75rem; }
}

/* =========================================================
   Custom Date Picker (att-datepicker)
   Native input[type=date] kept for form submission + a11y;
   styled trigger + month-grid panel layered on top.
   ========================================================= */
.att-datepicker { position: relative; width: 100%; }
.att-datepicker__native {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}
.att-datepicker__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1rem;
    background: var(--gls-cream-soft);
    border: 1px solid var(--gls-border);
    border-radius: 12px;
    color: var(--gls-text);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.att-datepicker__btn:hover {
    border-color: #cfc8a3;
    background: #fbf6dc;
}
.att-datepicker.is-open .att-datepicker__btn,
.att-datepicker__btn:focus-visible {
    outline: none;
    border-color: var(--gls-blue);
    background: #fff;
    box-shadow: 0 0 0 .18rem rgba(37,99,235,.15);
}
.att-datepicker__icon { color: var(--gls-blue); flex-shrink: 0; }
.att-datepicker__value { flex: 1 1 auto; }
.att-datepicker__value--placeholder { color: var(--gls-muted); font-weight: 500; }
.att-datepicker__chevron {
    color: var(--gls-text);
    flex-shrink: 0;
    transition: transform .2s ease, color .18s ease;
}
.att-datepicker.is-open .att-datepicker__chevron {
    transform: rotate(180deg);
    color: var(--gls-blue);
}

/* Floating panel */
.att-datepicker__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-width: calc(100vw - 2rem);
    padding: .85rem;
    background: #fff;
    border: 1px solid var(--gls-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, .10), 0 4px 10px rgba(17, 24, 39, .04);
    z-index: 40;
    transform-origin: top left;
    animation: attSelectIn .16s ease-out;
}
[dir="rtl"] .att-datepicker__panel { left: auto; right: 0; transform-origin: top right; }

.att-datepicker__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
    margin-bottom: .65rem;
}
.att-datepicker__head-labels {
    display: flex; align-items: center; gap: .35rem;
    flex: 1 1 auto;
    justify-content: center;
}
.att-datepicker__head-month,
.att-datepicker__head-year {
    background: transparent;
    border: 0;
    padding: .35rem .55rem;
    border-radius: 8px;
    font-size: .98rem;
    font-weight: 700;
    color: var(--gls-text);
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease;
}
.att-datepicker__head-month:hover,
.att-datepicker__head-year:hover {
    background: #fbf6dc;
    color: var(--gls-blue);
}
.att-datepicker__nav {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--gls-text);
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.att-datepicker__nav:hover {
    background: #fbf6dc;
    border-color: var(--gls-border);
    color: var(--gls-blue);
}

.att-datepicker__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: .25rem;
}
.att-datepicker__weekdays span {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gls-muted);
    padding: .35rem 0;
}

.att-datepicker__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.att-datepicker__day {
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--gls-text);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease, transform .14s ease;
}
.att-datepicker__day:hover { background: #fbf6dc; }
.att-datepicker__day.is-other  { color: var(--gls-muted); opacity: .55; }
.att-datepicker__day.is-today  {
    color: var(--gls-blue);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.35);
}
.att-datepicker__day.is-selected {
    background: var(--gls-blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37,99,235,.25);
}
.att-datepicker__day.is-selected:hover { background: var(--gls-blue); }
.att-datepicker__day:disabled { color: var(--gls-muted); opacity: .4; cursor: not-allowed; background: transparent; }

/* Month/year picker grids (overlay over day grid) */
.att-datepicker__picker {
    display: grid;
    gap: .35rem;
    padding: .25rem 0;
}
.att-datepicker__picker--months { grid-template-columns: repeat(3, 1fr); }
.att-datepicker__picker--years  { grid-template-columns: repeat(4, 1fr); max-height: 252px; overflow-y: auto; }
.att-datepicker__picker button {
    background: transparent;
    border: 0;
    padding: .55rem .35rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gls-text);
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease;
}
.att-datepicker__picker button:hover { background: #fbf6dc; color: var(--gls-blue); }
.att-datepicker__picker button.is-current {
    background: var(--gls-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37,99,235,.22);
}

.att-datepicker__foot {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid var(--gls-border);
}
.att-datepicker__action {
    background: transparent;
    border: 1px solid var(--gls-border);
    padding: .45rem .85rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gls-text);
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.att-datepicker__action:hover { background: #fbf6dc; border-color: #cfc8a3; }
.att-datepicker__action--primary {
    background: var(--gls-blue);
    color: #fff;
    border-color: var(--gls-blue);
}
.att-datepicker__action--primary:hover {
    background: #1d4fcf;
    border-color: #1d4fcf;
    color: #fff;
}

/* Mobile */
@media (max-width: 420px) {
    .att-datepicker__panel { width: calc(100vw - 2rem); }
    .att-datepicker__day { font-size: .85rem; }
}
