/* CSS Variables for design tokens */
:root {
    --bg-primary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-header: #04162B;
    --bg-checkbox: #F8FAFC;
    
    --color-text-main: #1E293B;
    --color-text-muted: #475569;
    --color-text-white: #FFFFFF;
    --color-brand-blue: #0C346B;
    --color-error: #DC2626;
    --color-success: #15803D;
    
    --border-color: #D2D6DC;
    --border-color-hover: #94A3B8;
    --border-focus: #2B6CB0;
    --focus-ring-shadow: 0 0 0 3px rgba(43, 108, 176, 0.25);
    
    --font-sans: Arial, sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

/* Basic Reset & Base Styling */
*
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--bg-primary);
    font-family: var(--font-sans);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Accessibility Focus Indicator */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.nda-scrollbox:focus-visible,
a:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Custom visual focus for keyboard navigation on checkbox */
.custom-checkbox-input:focus-visible + .custom-checkbox-label .checkbox-box {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Main Site Header */
.site-header {
    color: var(--color-brand-blue);
}

.header-content {
    max-width: 1150px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    display: block;
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
}

.portal-badge {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}

/* Portal Container Layout */
.portal-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 48px 20px;
}

/* Intro / Description Section */
.portal-intro {
    text-align: left;
    margin-bottom: 36px;
}

.intro-icon-container {
    margin-bottom: 20px;
}

.intro-icon {
    display: inline-block;
}

#page-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.intro-description {
    font-size: 18px;
    color: #444444;
    margin: 0;
    line-height: 1.6;
}





.form-section {
    width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

/* NDA Scrollable Area */
.nda-scrollbox {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 310px;
    overflow-y: auto;
    background-color: #FAFAFA;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 #F1F5F9;
}

/* Styled scrollbar for webkit */
.nda-scrollbox::-webkit-scrollbar {
    width: 8px;
}

.nda-scrollbox::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: var(--radius-md);
}

.nda-scrollbox::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: var(--radius-md);
}

.nda-scrollbox::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.nda-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 16px;
}

.nda-scrollbox p {
    font-size: 18px;
    color: #444444;
    margin-bottom: 16px;
    line-height: 1.6;
}

.nda-scrollbox h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 8px;
    margin-top: 16px;
}

/* Checkbox Container styles */
.checkbox-container {
    background-color: var(--bg-checkbox);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

/* Hide checkbox natively but keep accessible */
.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    width: 100%;
}

.checkbox-box {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    margin-top: 2px;
}

.checkmark-icon {
    width: 16px;
    height: 16px;
    color: var(--color-text-white);
    opacity: 0;
    transform: scale(0.5);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Checkbox Active / Checked States */
.custom-checkbox-input:checked + .custom-checkbox-label .checkbox-box {
    background-color: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
}

.custom-checkbox-input:checked + .custom-checkbox-label .checkmark-icon {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox-label:hover .checkbox-box {
    border-color: var(--border-color-hover);
}

.checkbox-text {
    font-size: 18px;
    color: #444444;
    line-height: 1.55;
}

/* Divider line */
.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 36px 0;
}

/* Access Request Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 18px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94A3B8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: var(--focus-ring-shadow);
}

/* Custom Select styling to replace browser native styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Textarea height */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Field Helpers & Error States */
.field-help {
    font-size: 15px;
    color: #444444;
    margin-top: 6px;
}

.field-error-message {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 6px;
    font-weight: 500;
}

.form-input.input-error,
.form-select.input-error,
.checkbox-box.input-error {
    border-color: var(--color-error);
}

.form-input.input-error:focus,
.form-select.input-error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Submit Container Layout */
.submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.submit-button {
    background-color: #1677ba;
    color: var(--color-text-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.submit-button:hover {
    background-color: #094672;
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button-icon {
    display: block;
    color: var(--color-text-white);
}

.submit-disclaimer {
    font-size: 15px;
    color: #444444;
    text-align: center;
    margin-top: 16px;
    line-height: 1.55;
}

/* Success Card View */
.success-card {
    background-color: var(--bg-card);
    border: 1px solid #D1E7DD;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 48px 32px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto 0 auto;
    animation: fadeIn var(--transition-normal);
}

.success-icon-container {
    width: 64px;
    height: 64px;
    background-color: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-checkmark {
    width: 40px;
    height: 40px;
}

.success-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 16px;
}

.success-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Site Footer */
.site-footer {
    background-color: var(--bg-header);
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text-white);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .portal-container {
        padding: 32px 20px;
    }
    
    
    
    #page-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
