/*
 * Shared design tokens + components for the public registration forms:
 * main-form (international Apply), doctoral, residency, georgian-admission,
 * medic. Values here are the majority convention already in use across
 * those modules' own CSS files, not invented — this file exists so the
 * primary color/radius/spacing/font are defined once instead of five times.
 *
 * Not used by the admin panel (admin-theme.css) or the landing page
 * (landing.css) — both keep their own, deliberately separate identities.
 */

:root {
    --form-primary-dark: #1a3a5c;
    --form-primary: #2c5f8a;
    --form-primary-gradient: linear-gradient(120deg, var(--form-primary-dark), var(--form-primary));

    --form-success-a: #198754;
    --form-success-b: #20c997;
    --form-success-gradient: linear-gradient(120deg, var(--form-success-a), var(--form-success-b));

    --form-radius-outer: 14px;
    --form-radius-inner: 10px;
    --form-radius-pill: 20px;

    --form-header-padding: 34px;
    --form-body-padding: 30px;
    --form-body-padding-compact: 26px;
    --form-success-header-padding: 40px;

    --form-bg: #f0f4f8;
    --form-border-muted: #e0e8f0;
    --form-text-muted: #6c757d;
    --form-shadow: 0 8px 28px rgba(0, 0, 0, .12);

    --form-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--form-font); }

/* Every public form's CTA should match its own header gradient, not
   Bootstrap's unrelated default blue. */
.btn-primary {
    background-color: var(--form-primary);
    border-color: var(--form-primary-dark);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--form-primary-dark);
    border-color: var(--form-primary-dark);
}

/* The drag-drop file input widget shared by main-form/doctoral/residency,
   and now extended to georgian-admission/medic. */
.file-upload-box {
    border: 2px dashed #cdd5e0;
    border-radius: var(--form-radius-inner);
    padding: 20px;
    background: #fafbfc;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.file-upload-box.has-file { border-color: var(--form-primary); background: #f0f6fb; }
.file-upload-box input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.file-hint { font-size: .85rem; color: var(--form-text-muted); margin-top: 4px; }

/* Mobile comfort: none of these forms had any breakpoint tuning before —
   they relied entirely on Bootstrap's grid. Named per-module since each
   module kept its own header/body class names. */
@media (max-width: 767.98px) {
    .apply-header, .doctoral-header, .residency-header, .ga-header,
    .medic-header, .hub-header, .success-header {
        padding: 24px;
    }
    .apply-body, .doctoral-body, .residency-body, .ga-body,
    .medic-body, .hub-body, .success-body {
        padding: 20px;
    }
    .section-title { font-size: 1rem; margin-bottom: 16px; }
}
