:root {
    --primary: #0d6efd;
    --bg-light: #f8fafc;
}

html {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: #fff;
}

.header-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url('../img/background.jpg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    background-attachment: fixed;
    background-color: #f8fafc;
    width: 100%;
    min-height: 80vh;
}

@media (max-width: 768px) {
    .header-bg {
        background-attachment: scroll;
        background-position: -200px top;
        min-height: auto;
        padding: 40px 0;
    }
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
    }
}

.navbar-logo:hover {
    transform: scale(1.02);
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
}

.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.5s; }

.progress { height: 8px; border-radius: 10px; background-color: #e2e8f0; }
.progress-bar { background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%); transition: width 0.4s ease; }
.form-card { border: none; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-radius: 1.25rem; }

.section-padding { padding: 80px 0; }
.icon-box { width: 60px; height: 60px; background: #e0e7ff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }

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

@media (max-width: 768px) {
    .display-5 { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
}

.secure-img-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.secure-badge {
    width: 150px;
    height: auto;
    border-radius: 1rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.secure-badge:hover {
    transform: translateY(-5px);
}

.disclosure-content {
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: justify;
}

.disclosure-content h5 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.disclosure-content h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.disclosure-content strong {
    color: #475569;
}

@media (max-width: 768px) {
    .disclosure-content {
        text-align: left;
        font-size: 0.8rem;
    }
}

footer a:hover {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

footer .x-small {
    font-size: 0.75rem;
    line-height: 1.4;
}

@media (max-width: 767px) {
    footer ul {
        padding-bottom: 20px;
    }
}

.red {
    color: red;
}

.required {
    font-size: 0.85em;
}

/* Legal / static pages */
.data-container {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
}

.data-container.contact {
    margin-bottom: 100px;
}

.list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    display: grid;
    gap: 10px 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (min-width: 1024px) {
    .list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.list li {
    font-size: 14px;
    color: #333;
    break-inside: avoid;
}

.loading {
    width: 100px;
    padding: 6em 0;
}

/* Form validation error styling (used by js/scripts.js) */
.input-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.form-control,
.form-select,
.btn {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Radio-as-button question steps */
.btn-check:checked + .btn-outline-secondary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.btn-check:checked + .btn-outline-secondary.input-error {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}
