/* =========================================
   PREMIUM CORPORATE FORM DESIGN
   Inspired by AB & David Branding
   ========================================= */

:root {
    --navy: #0B1B3D;         /* AB & David Deep Navy */
    --crimson: #8C1D2D;      /* AB & David Red */
    --bg-light: #F7F9FC;     /* Soft grey background */
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif; /* Elegant serif for headings */
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-sans);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}




/* =========================================
   CLEAN WHITE HEADER
   ========================================= */

.top-brand-bar {
    background: #FFFFFF; /* Pure White */
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #E5E7EB;
}

/* Elegant thin accent line at the very top (Navy, Maroon, Green) */
.top-brand-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0B1B3D 33%, #801424 33%, #801424 66%, #1E7B34 66%);
}

/* Size the logos perfectly */
.top-brand-bar img {
    height: 65px;
    object-fit: contain;
    /* REMOVED the filter: brightness(0) invert(1); so they stay original color */
}

.top-brand-bar .vu-logo {
    height: 75px; /* VU logo needs slightly more height */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-brand-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .top-brand-bar img {
        height: 50px;
    }
    .top-brand-bar .vu-logo {
        height: 60px;
    }
}





/* Main Container */
.survey-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

/* Header Section */
.survey-header {
    text-align: center;
    margin-bottom: 40px;
}

.survey-header h1 {
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.survey-header p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* The Form Card */
.form-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    position: relative;
    border-top: 5px solid var(--crimson);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.progress-text .current-step {
    color: var(--crimson);
}

.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--crimson);
    width: 20%;
    transition: width 0.4s ease;
}

/* Form Sections */
.form-section {
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.form-section.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Inputs */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 27, 61, 0.1);
}

.form-control::placeholder {
    color: #A0AABF;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230B1B3D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* Custom Checkboxes & Radios (No ugly default inputs) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.custom-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.custom-option:hover {
    border-color: var(--navy);
    background: #FAFBFC;
}

.custom-option input[type="checkbox"],
.custom-option input[type="radio"] {
    margin-top: 3px;
    margin-right: 12px;
    accent-color: var(--crimson); /* Native but branded */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-option .option-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
}

.custom-option input:checked + .option-text {
    font-weight: 600;
    color: var(--navy);
}

/* Attendance Specific Cards */
.attendance-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.attendance-card {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attendance-card input[type="radio"] {
    display: none;
}

.attendance-card i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.attendance-card strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
}

.attendance-card small {
    font-size: 12px;
    color: var(--text-muted);
}

.attendance-card:has(input:checked) {
    border-color: var(--crimson);
    background: rgba(140, 29, 45, 0.03);
}

.attendance-card:has(input:checked) i {
    color: var(--crimson);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--crimson);
    color: var(--white);
}

.btn-primary:hover {
    background: #701522;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #F3F4F6;
    color: var(--text-dark);
}

/* Footer */
.survey-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .top-brand-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .form-card {
        padding: 25px;
    }
    .attendance-cards {
        grid-template-columns: 1fr;
    }
    .survey-header h1 {
        font-size: 26px;
    }
}




/* --- Footer Styling --- */
.site-footer-custom {
    background: #FFFFFF;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px; /* Even spacing */
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer-logos img {
    height: 50px;
    object-fit: contain;
    opacity: 0.8; /* Slightly subtle for the footer */
    transition: opacity 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
}

.footer-logos .vu-logo {
    height: 65px;
}

.footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}