/*
 * Gomti Devi Eminence Award apply page: the rules card and form card in the
 * poster's colours. Loaded after blf-form.css and re-colours its form card,
 * file picker and dropdown inside .ga-page. The page around them is unchanged.
 */
.ga-page {
    --ga-blue: #1c4fb8;
    --ga-navy: #123a8f;
    --ga-gold: #f9a51a;
    --ga-ink: #14295e;
    --ga-muted: #51608a;
    --ga-line: rgba(28, 79, 184, .18);
    --ga-ring: rgba(28, 79, 184, .16);
    --ga-field: #f8faff;
    --ga-placeholder: #6f7da3;
}

/* Rules panel */
.ga-rules { border: 1.5px solid var(--ga-blue); border-radius: 16px; overflow: hidden; background: #fff; }
.ga-rules h2, .ga-rules h3 { font-family: "Platypi", Georgia, serif; }
.ga-rules h2 { margin: 0; padding: 16px 24px; background: var(--ga-blue); color: #fff; font-size: 24px; font-weight: 700; }
.ga-rules-body { padding: 6px 24px 22px; }
.ga-rules h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 600; color: var(--ga-navy); }
.ga-rules ul, .ga-rules ol { margin: 0; padding-left: 20px; }
.ga-rules li, .ga-rules p { font-size: 15.5px; line-height: 1.6; margin: 0 0 3px; color: var(--ga-ink); }
.ga-rules li::marker { color: var(--ga-blue); }
.ga-rules a { color: var(--ga-blue); font-weight: 600; }

/* Form card */
.ga-page .bf-card, .ga-page .bf-file, .ga-page .bf-select {
    --maroon: var(--ga-blue);
    --maroon-deep: var(--ga-navy);
    --ink: var(--ga-ink);
    --ink-soft: var(--ga-muted);
    --rule: var(--ga-line);
}
.ga-page .bf-card { box-shadow: 0 18px 40px rgba(18, 58, 143, .12); }
.ga-page .bf-card input, .ga-page .bf-card textarea, .ga-page .bf-card select,
.ga-page .bf-select-button, .ga-page .bf-file-bar, .ga-page .bf-file-drop, .ga-page .bf-box { background-color: var(--ga-field); }
.ga-page .bf-card input::placeholder, .ga-page .bf-card textarea::placeholder,
.ga-page .bf-file-name, .ga-page .bf-select.is-empty .bf-select-label { color: var(--ga-placeholder); }
.ga-page .bf-card .form-control:focus, .ga-page .bf-card select:focus, .ga-page .bf-card textarea:focus,
.ga-page .bf-card input:focus, .ga-page .bf-card .form-check-input:focus,
.ga-page .bf-file:focus-within .bf-file-bar, .ga-page .bf-select-button:focus,
.ga-page .bf-select.is-open .bf-select-button { box-shadow: 0 0 0 3px var(--ga-ring); }

.ga-page .bf-submit { background: var(--ga-blue); }
.ga-page .bf-submit:hover, .ga-page .bf-submit:focus { background: var(--ga-navy); }

/* Applicant type */
.ga-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.ga-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ga-type svg { width: 22px; height: 22px; }
.bf-card .ga-type input + label {
    display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0;
    padding: 14px 10px; border: 1.5px solid var(--ga-line); border-radius: 12px;
    background: #fff; color: var(--ga-muted); font-weight: 600; cursor: pointer; text-align: center;
}
.bf-card .ga-type input:checked + label { border-color: var(--ga-blue); background: #eef3fe; color: var(--ga-navy); }
.bf-card .ga-type input:focus-visible + label { outline: 2px solid var(--ga-blue); outline-offset: 2px; }

/* Dropdown */
.ga-page .bf-select-button {
    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='%231c4fb8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.ga-page .bf-select-button:hover { border-color: rgba(28, 79, 184, .45); }
.ga-page .bf-select-list { box-shadow: 0 14px 32px rgba(18, 58, 143, .16); }
.ga-page .bf-select-option.is-active, .ga-page .bf-select-option.is-placeholder.is-active { background: #eef3fe; }
.ga-page .bf-select-option.is-selected { color: var(--ga-navy); background: #e2eafb; }
.ga-page .bf-select-option.is-selected::after { border-color: var(--ga-blue); }

/* File picker */
.ga-page .bf-file-browse { background: #e6edfb; }
.ga-page .bf-file-browse:hover { background: #d6e1f8; }
.ga-page .bf-file-drop { border-color: rgba(28, 79, 184, .3); }
.ga-page .bf-file-drop svg { color: var(--ga-blue); }
.ga-page .bf-file-thumb { background: #eef3fe; }
.ga-page .bf-file-remove:hover { color: var(--ga-navy); }
.ga-file-note { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ga-muted); }
