html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ── Form page ───────────────────────────────────────────────── */

.hidden-form {
    display: none;
    transition: opacity 0.5s ease-in-out;
}

#application {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 53px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.header-container h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
}

.language-buttons { display: flex; }
.language-buttons button { color: inherit; text-decoration: none; }

.required-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #FF0000;
}

.form-headers {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #181F46;
    margin-bottom: 0 !important;
}

#application-form .row { padding: 0; }

#application-form .row .col-md-6 .form-control,
#application-form .row .col-12 .form-control,
#application-form .row .col-lg-3 .form-control,
#application-form .row .col-lg-6 .form-control {
    background: rgba(239, 241, 249, 0.6);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 0;
}

#application-form .row .col-md-6 .form-label,
#application-form .row .col-12 .form-label {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 19px;
    color: #5570F1;
}

.form-floating label { color: #6c757d; }

.group-label {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 19px;
    color: #5570F1;
    display: block;
    margin-bottom: 8px;
}

.subject-titles {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 19px;
    margin-bottom: 20px;
    color: #5570F1;
}

#subject-list .form-check { margin-bottom: 18px; }

/* Submit button – responsive */
#submit-button {
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    width: 100%;
    max-width: 616px;
    height: 67px;
    background: #0B2447;
    border-radius: 5px;
    border: none;
}

input[type="checkbox"]:not(.square-checkbox) {
    width: 24px;
    height: 24px;
    border: 1px solid #CFD3D5;
    margin-right: 3px;
}

input[type="checkbox"]:not(.square-checkbox):checked {
    width: 24px;
    height: 24px;
    border: 1px solid #6D7DCD;
    background-color: #5570F1;
}

input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 3px;
    border-radius: 50%;
    border: 1px solid #CFD3D5;
}

input[type="radio"]:checked {
    border: 1px solid #6D7DCD;
    background-color: #5570F1;
}

input[type="checkbox"]:not(.square-checkbox):focus + label::before,
input[type="radio"]:focus + label::before {
    outline: none;
    box-shadow: none;
}

#unpaidConsentContainer { transition: all 0.3s ease; }

.required-field::after { color: red; content: ' *'; }

.form-text.text-muted {
    font-size: 0.875rem;
    color: #6c757d;
}

.square-checkbox { width: 20px; height: 20px; }

/* ── Section cards ─────────────────────────────────────────────── */

.form-section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(85, 112, 241, 0.08);
    margin-top: 28px;
    border: 1px solid #e8ebf8;
    overflow: hidden;
}

.form-section-header {
    background: #f5f7ff;
    border-bottom: 2px solid #e8ebf8;
    padding: 18px 24px;
}

.form-section-body {
    padding: 24px 24px 8px;
}

/* ── Social icons ──────────────────────────────────────────────── */

.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icons svg { fill: #FFF; }

/* ── Mobile ────────────────────────────────────────────────────── */

@media (max-width: 576px) {
    #application { font-size: 26px; }
}
