:root {
    --ucla-blue: #2774AE;
    --ucla-blue-dark: #1e5a8e;
    --ucla-gold: #fdb515;
    --text-primary: #2c3e50;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #fafbfc;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 0px 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header Styles */
.header {
    background: white;
    padding: 0;
}

.header-logo {
    background: #f8fafc;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dgc-logo {
    max-height: 100px;
    width: auto;
}

.logo-box {
    background: var(--ucla-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-study {
    background: linear-gradient(135deg, var(--ucla-blue) 0%, var(--ucla-blue-dark) 100%);
    padding: 20px 40px;
    text-align: center;
    color: white;
}

.study-title {
    font-family: 'Crimson Pro', serif;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.study-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
    line-height: 1.8;
}

.acronym {
    font-weight: 800;
    letter-spacing: 0.4px;
}

/* Content Styles */
.content {
    padding: 50px 60px 60px;
}

.progress-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.progress-note strong {
    color: var(--ucla-blue);
    font-weight: 500;
}

.section-header {
    font-family: 'Crimson Pro', serif;
    font-size: 24px;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ucla-gold);
    display: inline-block;
}

.section-intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Form Styles */
.question-group {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.question-group:last-of-type {
    border-bottom: none;
}

.form-label {
    font-size: 15px;
    color: #334155;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.form-control {
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-control:focus {
    border-color: var(--ucla-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(39, 116, 174, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Form Select (Dropdowns) */
.form-select {
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--ucla-blue);
    box-shadow: 0 0 0 3px rgba(39, 116, 174, 0.1);
    outline: none;
}

/* Custom Radio Buttons */
.form-check-input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    margin-top: 0.15em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input[type="radio"]:hover {
    border-color: var(--ucla-blue);
}

.form-check-input[type="radio"]:checked {
    background-color: var(--ucla-blue);
    border-color: var(--ucla-blue);
}

.form-check-input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(39, 116, 174, 0.1);
    border-color: var(--ucla-blue);
}

/* Custom Checkboxes */
.form-check-input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-top: 0.25em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input[type="checkbox"]:hover {
    border-color: var(--ucla-blue);
}

.form-check-input[type="checkbox"]:checked {
    background-color: var(--ucla-blue);
    border-color: var(--ucla-blue);
}

.form-check-input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(39, 116, 174, 0.1);
    border-color: var(--ucla-blue);
}

.form-check-label {
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
    margin-left: 8px;
}

.form-check {
    margin-bottom: 12px;
}

.radio-inline-group {
    display: flex;
    gap: 28px;
    margin-top: 12px;
}

.radio-inline-group .form-check {
    margin-bottom: 0;
}

/* Helper Text */
.helper-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.helper-text a {
    color: var(--ucla-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.helper-text a:hover {
    border-bottom-color: var(--ucla-blue);
}

/* Other Input */
.other-input {
    margin-left: 26px;
    margin-top: 8px;
}

/* Submit Section */
.submit-section {
    margin-top: 50px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, var(--ucla-blue) 0%, var(--ucla-blue-dark) 100%);
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(39, 116, 174, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 116, 174, 0.4);
    color: white;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Device Section - Reusable form section container */
.device-section {
    background: #f8fafc;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.device-section legend {
    font-family: 'Crimson Pro', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ucla-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ucla-gold);
}

.device-section label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
}

.device-section strong {
    color: var(--text-primary);
}

/* Alert Warning - Reusable warning alert */
.alert-warning-custom {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 6px;
    margin-top: 16px;
}

.alert-warning-custom small {
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}

/* Address Form - Reusable form container */
.address-form {
    background: white;
    padding: 24px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-row > div {
    flex: 1;
}

/* Spinner Container - Reusable loading spinner */
.spinner-container {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.spinner-dots {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 12px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) {
    background: #10b981;
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    background: #f59e0b;
    animation-delay: -0.16s;
}

.spinner-dot:nth-child(3) {
    background: var(--ucla-blue);
}

.spinner-dot:nth-child(4) {
    background: #6b7280;
    animation-delay: 0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.spinner-text {
    color: var(--ucla-blue);
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #f8fafc;
    padding: 30px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer a {
    color: var(--ucla-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer a:hover {
    border-bottom-color: var(--ucla-blue);
}

.footer-meta {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* Alert/Message Box Components - Reusable across all pages */
.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    padding: 24px 32px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.alert-success h3,
.alert-success h5 {
    color: #065f46;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.alert-success p {
    color: #047857;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 24px 32px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.alert-warning p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.alert-warning strong {
    color: #92400e;
    font-weight: 600;
}

.alert-warning a {
    color: var(--ucla-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.alert-warning a:hover {
    border-bottom-color: var(--ucla-blue);
}

.alert-info {
    background: #f0f9ff;
    border-left: 4px solid var(--ucla-blue);
    padding: 24px 32px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.alert-info h3,
.alert-info h5 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

.alert-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #dc2626;
    padding: 20px 28px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.alert-danger h6 {
    color: #991b1b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.alert-danger strong {
    font-weight: 700;
}

/* Button Variants */
.btn-back {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 14px 50px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    color: white;
}

/* Accordion Components - Reusable */
.accordion-section {
    margin-bottom: 16px;
}

.accordion-header {
    background: linear-gradient(135deg, var(--ucla-blue) 0%, var(--ucla-blue-dark) 100%);
    color: white;
    padding: 18px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 116, 174, 0.3);
}

.accordion-header.active {
    border-radius: 8px 8px 0 0;
}

.accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 32px 28px;
    border-radius: 0 0 8px 8px;
}

.accordion-content.active {
    display: block;
}

/* FAQ Components - Reusable */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--ucla-blue);
    box-shadow: 0 2px 8px rgba(39, 116, 174, 0.1);
}

.faq-question {
    background: #f8fafc;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    padding: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.faq-answer a {
    color: var(--ucla-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.faq-answer a:hover {
    border-bottom-color: var(--ucla-blue);
}

/* Page Headers - Reusable */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Text alignment utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 40px 30px;
    }

    .header {
        padding: 40px 30px;
    }

    .study-title {
        font-size: 32px;
    }

    .radio-inline-group {
        gap: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .device-section {
        padding: 24px 20px;
    }
    
    .alert-success,
    .alert-warning,
    .alert-info,
    .alert-danger {
        padding: 20px 24px;
    }
    
    .accordion-header {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .accordion-content {
        padding: 24px 20px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 20px;
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

@media (min-width: 992px) {
    #perksImg {
        max-width: 80%;
    }
}