* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --snh-red: #c92617;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    padding-top: 175px;
}

body.body--bare {
    padding-top: 0;
}

/* Header */
.header {
    background: var(--snh-red);
    padding: 0px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3 !important;
    overflow: visible;
    min-width: 320px;
    max-width: 100%;
    width: 100%;
    filter: drop-shadow(0px 10px 10px rgb(0 0 0 / 0.2));
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.header__logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.header__logo-img {
    height: 80px;
    width: auto;
}

.header__title-block {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.header__title {
    font-family: "Cervo", Helvetica, Arial, sans-serif;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1em;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
    font-size: 2.5em;
}

.header__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Main */
.main {
}

/* Wizard */
.wizard {
    background-color: #fff;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.wizard__steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    position: relative;
}

.wizard__step {
    flex: 1;
    text-align: center;
    position: relative;
}

.wizard__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.wizard__step--active ~ .wizard__step::after {
    background: #dee2e6;
}

.wizard__step--completed::after {
    background: #c92617;
}

.wizard__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.wizard__number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.wizard__step--active .wizard__number {
    background-color: #c92617;
    color: white;
    border-color: #c92617;
    box-shadow: 0 0 0 4px rgba(201, 38, 23, 0.15);
}

.wizard__step--completed .wizard__number {
    background-color: #c92617;
    color: white;
    border-color: #c92617;
}

.wizard__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.wizard__step--active .wizard__label {
    color: #c92617;
    font-weight: 600;
}

.wizard__step--completed .wizard__label {
    color: #495057;
}

.wizard__step:not(.wizard__step--completed):not(.wizard__step--active) .wizard__link {
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Wizard */
@media (max-width: 1200px) {
    .wizard__number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .wizard__step:not(:last-child)::after {
        top: 22px;
    }
    
    .wizard__label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .wizard {
        padding: 1.5rem 0.5rem;
    }
    
    .wizard__number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
        border-width: 2px;
    }
    
    .wizard__step:not(:last-child)::after {
        top: 20px;
    }
    
    .wizard__label {
        font-size: 0.65rem;
        max-width: 60px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .wizard__step--active .wizard__number {
        box-shadow: 0 0 0 3px rgba(201, 38, 23, 0.15);
    }
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
}

/* Form Card */
.form-card {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-title {
    font-family: "Cervo", Helvetica, Arial, sans-serif;
    letter-spacing: -0.03em;
    margin: 0 0 2rem 0;
    line-height: 1em;
    text-transform: uppercase;
    font-weight: bold;
    color: #c92617;
    font-size: 2.8em;
    transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
}

/* Form */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #c92617;
}

.form-input::placeholder {
    color: #999;
}

/* ==========================================
   Summary/Overview Styles
   ========================================== */

.summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.summary-card__number {
    width: 32px;
    height: 32px;
    background: var(--snh-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.summary-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.summary-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.95rem;
}

.summary-item-value {
    color: #1f2937;
    font-size: 0.95rem;
    word-break: break-word;
}

.summary-item-value--empty {
    color: #9ca3af;
    font-style: italic;
}

.summary-item-value--success {
    color: #059669;
    font-weight: 500;
}

.summary-item-value--danger {
    color: #dc2626;
    font-weight: 500;
}

.summary-item-value--multiline {
    white-space: pre-wrap;
    display: block;
    margin-top: 0.25rem;
}

/* Relation grouping */
.relation-group {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.relation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.summary-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.summary-subsection__title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.summary-address {
    line-height: 1.6;
}

.summary-notice {
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.summary-notice__text {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .summary-card {
        padding: 1.5rem;
    }
    
    .summary-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .summary-item-label {
        font-size: 0.85rem;
    }
    
    .summary-item-value {
        font-size: 0.9rem;
    }
}

/* Form Check (Radio & Checkbox) */
.form-check {
    margin-bottom: 0.75rem;
    display: block;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-input.is-valid {
    border-color: #28a745;
}

.form-check-input.is-valid:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-label {
    cursor: pointer;
}

/* Button */
.form-actions {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff;
    text-align: right;
    border-radius: 0 0 0.25rem 0.25rem;
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    line-height: 1.5;
}

.btn--primary {
    background-color: #c92617;
    color: white;
    box-shadow: 0 0.125rem 0.625rem rgba(201, 38, 23, 0.4);
}

.btn--primary:hover {
    background-color: #a51d13;
    box-shadow: 0 0.125rem 0.625rem rgba(201, 38, 23, 0.6);
    transform: translateY(-1px);
}

.btn--primary:disabled,
.btn--primary.btn--disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn--primary:disabled:hover,
.btn--primary.btn--disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

.btn__icon {
    width: 16px;
    height: 16px;
}

.btn--small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Form Header with Badges */
.form-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge--primary {
    background-color: #007bff;
    color: white;
}

.badge--danger {
    background-color: #c92617;
    color: white;
}

.badge--required {
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    text-transform: none;
    font-weight: 500;
}

.form-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.46875rem 2.1875rem rgba(4,9,20,0.08), 0 0.9375rem 1.40625rem rgba(4,9,20,0.06), 0 0.25rem 0.53125rem rgba(4,9,20,0.08), 0 0.125rem 0.1875rem rgba(4,9,20,0.06);
    border: 0;
    transition: all .2s;
    animation: fadeInUp 0.5s ease-in-out;
}

.form-section:hover {
    box-shadow: 0 0.46875rem 2.1875rem rgba(4,9,20,0.1), 0 0.9375rem 1.40625rem rgba(4,9,20,0.1), 0 0.25rem 0.53125rem rgba(4,9,20,0.08), 0 0.125rem 0.1875rem rgba(4,9,20,0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.card-body {
    padding: 1.5rem;
}

.form-legend {
    font-family: "Cervo", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
    background-color: transparent;
}

.form-section-title {
    font-family: "Cervo", Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
    background-color: transparent;
}

.form-section-subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 1.5rem 0 1rem 0;
    padding: 0;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-section-header .form-section-title {
    margin-bottom: 0;
}

.form-legend--sub {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 2rem 0 1.5rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
}

.form-section > .form-row:first-of-type {
    padding: 0;
}

.form-section > .form-row {
    padding: 0;
}

.form-section > .form-row:last-of-type {
    padding: 0;
}

/* Grid Layout for Form */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--large {
    grid-column: span 1;
}

.form-group--small {
    grid-column: span 1;
}

/* Three column layout for address fields */
.form-row:has(.form-group--large) {
    grid-template-columns: 2fr 1fr 1fr;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-label small {
    font-weight: 400;
    color: #6c757d;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #c92617;
    box-shadow: 0 0 0 0.2rem rgba(201, 38, 23, 0.15);
}

.form-input::placeholder {
    color: #adb5bd;
}

.form-input--inline {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin-left: 0.5rem;
}

/* Radio Buttons */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-radio-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: none;
}

.form-radio-list--scrollable {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.form-radio:hover {
    background-color: #f8f9fa;
}

.form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #c92617;
}

.form-radio span {
    font-size: 0.875rem;
    color: #495057;
}

.form-radio--with-input {
    align-items: flex-start;
}

.form-radio--with-input span {
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row:has(.form-group--large) {
        grid-template-columns: 1fr;
    }
    
    .form-group--large,
    .form-group--small {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .form-section {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }

    .form-legend {
        font-size: 0.95rem;
    }
    
    .form-legend--sub {
        font-size: 0.85rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .form-actions {
        padding: 1rem;
    }
    
    .form-header {
        flex-direction: column;
    }
    
    .form-input--inline {
        min-width: 150px;
    }
}

/* Form Validation Styles */
.form-input:focus {
    border-color: #2775BE;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-input.is-valid {
    border-color: #28a745 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-input.is-valid:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-input.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-input.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-input.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
    display: block !important;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

.form-input.is-valid ~ .valid-feedback {
    display: block;
}

/* Radio and Checkbox Validation */
.form-radio input[type="radio"].is-invalid,
.form-check input[type="checkbox"].is-invalid {
    border-color: #dc3545;
}

.form-radio input[type="radio"].is-valid,
.form-check input[type="checkbox"].is-valid {
    border-color: #28a745;
}


/* Alert Styles */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-light {
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.alert-dark {
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
}

.alert-dismissible {
    padding-right: 4rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem 1.25rem;
    color: inherit;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.5;
}

.alert-dismissible .close:hover {
    opacity: 0.75;
}

.alert-link {
    font-weight: 700;
    text-decoration: underline;
}

.alert-primary .alert-link {
    color: #002752;
}

.alert-success .alert-link {
    color: #0b2e13;
}

.alert-info .alert-link {
    color: #062c33;
}

.alert-warning .alert-link {
    color: #533f03;
}

.alert-danger .alert-link {
    color: #491217;
}

/* Alert with icons */
.alert-icon {
    display: flex;
    align-items: flex-start;
}

.alert-icon-content {
    flex: 1;
}

.alert-icon svg,
.alert-icon i {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Fade animation */
.alert.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.alert.fade.show {
    opacity: 1;
}


/* Secondary Button (for back/cancel actions) */
.btn--secondary {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 0.125rem 0.5rem rgba(108, 117, 125, 0.3);
}

.btn--secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 0.125rem 0.5rem rgba(108, 117, 125, 0.5);
    transform: translateY(-1px);
}

/* Outline Button (alternative for back actions) */
.btn--outline {
    background-color: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
    box-shadow: none;
}

.btn--outline:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* Button Link Styling */
a.btn {
    text-decoration: none;
    display: inline-flex;
}

a.btn:hover {
    text-decoration: none;
}

/* Button Group for Navigation */
.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.btn-group .btn {
    vertical-align: middle;
}

.btn-group--end {
    justify-content: flex-end;
}

.btn-group--start {
    justify-content: flex-start;
}

.btn-group--center {
    justify-content: center;
}

.btn-group--single {
    justify-content: flex-end;
}


/* Bootstrap Grid & Form Control Compatibility */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

.form-control, 
.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:focus.is-valid,
.form-control:focus.is-invalid {
    box-shadow: none;
}

.form-control.is-valid,
.form-input.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus,
.form-input.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid,
.form-input.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus,
.form-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.position-relative {
    position: relative;
}

/* Utility Classes - Margin Bottom */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Utility Classes - Margin Top */
.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

select.form-control:focus {
    border-color: #80bdff;
}

/* Study Program Selection Styles */
.study-domain-group {
    margin-bottom: 2rem;
}

.study-domain-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.study-orientation-group {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.study-orientation-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.study-programs {
    margin-left: 1rem;
}

.study-programs .form-check {
    margin-bottom: 0.75rem;
}

.study-programs .form-check-input {
    margin-top: 0.25rem;
}

.study-programs .form-check-label {
    font-size: 0.95rem;
    cursor: pointer;
    padding-left: 0.5rem;
}

.study-programs .form-check-input:checked + .form-check-label {
    font-weight: 600;
}

.form-select {
    display: block;
    width: 100%;
}

/* ==========================================
   Email Sent Page Styles
   ========================================== */

.email-sent-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
}

.email-sent-icon {
    color: var(--snh-red);
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.email-sent-message {
    font-size: 1.5rem;
    line-height: 2;
    color: #333;
    margin: 0;
}

.email-sent-message strong {
    color: var(--snh-red);
    font-weight: 600;
}

.email-sent-instructions {
    background: #f8f9fa;
    border-left: 4px solid var(--snh-red);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.email-sent-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.email-sent-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.email-sent-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #555;
}

.email-sent-list li:last-child {
    margin-bottom: 0;
}

.email-sent-list strong {
    font-weight: 600;
    color: #333;
}

.email-sent-help {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.email-sent-help-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #666;
}

.email-sent-help-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.email-sent-help-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #666;
    font-size: 0.95rem;
}

.email-sent-help-list li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .email-sent-success {
        padding: 2rem 1rem;
    }
    
    .email-sent-icon {
        width: 48px;
        height: 48px;
    }
    
    .email-sent-message {
        font-size: 1rem;
    }
    
    .email-sent-instructions {
        padding: 1.25rem 1.5rem;
    }
}

/* ==========================================
   Email Verification Page Styles
   ========================================== */

.email-verification-intro {
    padding: 1.5rem 0;
}

.email-verification-intro p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ==========================================
   File Upload
   ========================================== */

.file-upload {
    position: relative;
}

.file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.file-upload__zone:hover,
.file-upload__zone--drag-over {
    border-color: var(--snh-red);
    background: #fff5f5;
}

.file-upload__zone--has-file {
    border-color: #059669;
    background: #f0fdf4;
}

.file-upload__icon {
    width: 40px;
    height: 40px;
    color: #9ca3af;
    flex-shrink: 0;
}

.file-upload__zone--has-file .file-upload__icon {
    color: #059669;
}

.file-upload__label {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.file-upload__label strong {
    color: var(--snh-red);
}

.file-upload__filename {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #059669;
    word-break: break-all;
}

.file-upload__filename svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.file-upload__hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

.file-upload__zone.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

/* ==========================================
   Info Boxes (Generiek)
   ========================================== */

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.info-box--success {
    border-left-color: #28a745;
}

.info-box--info {
    border-left-color: #17a2b8;
}

.info-box--warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.info-box--danger {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.info-box--error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.info-box--primary {
    border-left-color: var(--snh-red);
}

.info-box__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.info-box__subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.3;
}

.info-box__subtitle--underline {
    text-decoration: underline;
}

.info-box__text {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
    font-size: 1rem;
}

.info-box__text:last-child {
    margin-bottom: 0;
}

.info-box ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.info-box li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #4b5563;
    font-size: 1rem;
}

.info-box li:last-child {
    margin-bottom: 0;
}

.info-box strong {
    font-weight: 600;
    color: #1f2937;
}

.info-box__actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .info-box {
        padding: 1.5rem 1.75rem;
    }
    
    .info-box ul {
        padding-left: 1.5rem;
    }
}

/* ==========================================
   Form Section Header with Actions
   ========================================== */

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-section-header .form-section-title {
    margin-bottom: 0;
}

.form-section-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.copy-address-btn {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-section-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .form-section-header-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   Form Section Subtitle Header Support
   ========================================== */

.form-section-header .form-section-subtitle {
    margin-bottom: 0;
}

/* Allow subtitle to be used in header */
h3.form-section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

/* ==========================================
   SmartSchool SSO Button
   Conform SmartSchool brand guidelines:
   https://www.smartschool.be/developers/guidelines-for-smartschool-integrations-and-sso-button/
   ========================================== */

.smartschool-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    background-color: #FF520E;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.smartschool-btn:hover {
    background-color: #e04800;
    color: #ffffff;
    text-decoration: none;
}

/* Logo sectie: breedte = hoogte van de knop (40px) */
.smartschool-btn__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.smartschool-btn__logo img {
    height: 24px;
    width: auto;
}

/* Verticale scheidingslijn */
.smartschool-btn__divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Tekst label */
.smartschool-btn__text {
    padding: 0 16px;
    line-height: 40px;
}

/* ==========================================
   Richting keuze — herinschrijvingen
   ========================================== */

.direction-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.direction-choice {
    padding: 1.25rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
    user-select: none;
    background: #fff;
}

.direction-choice:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.direction-choice.active {
    border-color: var(--snh-red);
    background-color: #fff8f7;
    box-shadow: 0 2px 8px rgba(201,38,23,0.12);
}

.direction-choice__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.direction-choice__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.direction-choice__sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.direction-choice.active .direction-choice__title {
    color: var(--snh-red);
}

.direction-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.direction-section.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Student info balk bovenaan */
.student-info-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.student-info-bar__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.student-info-bar__meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

.student-info-bar__choice {
    margin-left: auto;
    font-size: 0.875rem;
    color: #374151;
    text-align: right;
}

.student-info-bar__choice strong {
    display: block;
    color: #111;
}

/* ── Opties onder een richting ─────────────────────────────────────────── */
.program-options-box {
    margin-top: 0.6rem;
    margin-left: 1.6rem;
    padding: 0.65rem 0.9rem;
    background: #f8f9fa;
    border-left: 3px solid var(--snh-red, #c0392b);
    border-radius: 0 6px 6px 0;
    animation: fadeIn 0.15s ease;
}

.program-options-box .options-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.program-options-box .form-check {
    margin-bottom: 0.35rem;
}

.program-options-box .form-check-label {
    font-size: 0.9rem;
    color: #374151;
}

/* ==========================================
   Landing Page
   ========================================== */

.landing {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.landing__intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.landing__tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.landing-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.landing-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.landing-tile--primary {
    background-color: var(--snh-red);
}

.landing-tile--secondary {
    background-color: #2a3f54;
}

.landing-tile--danger {
    background-color: #7f1d1d;
}

.landing-tile__icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.landing-tile__title {
    font-family: "Cervo", Helvetica, Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.landing-tile__desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.landing-tile__cta {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.landing-tile:hover .landing-tile__cta {
    border-color: white;
    background-color: rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
    .landing__tiles {
        grid-template-columns: 1fr;
    }
}
