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

:root {
    --gov-primary: #00AAFF;
    --gov-primary-dark: #0088CC;
    --gov-text: #1a1a1a;
    --gov-text-light: #666;
    --gov-border: #e0e0e0;
    --gov-bg: #fafbfc;
    --gov-white: #ffffff;
    --gov-alert-bg: #e8f4fd;
    --gov-alert-border: #b3d9f2;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gov-text);
    background: var(--gov-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.gov-header {
    background: var(--gov-white);
    border-bottom: 1px solid var(--gov-border);
    padding: clamp(12px, 3vw, 20px) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-logo {
    height: clamp(36px, 8vw, 48px);
    transition: opacity 0.2s;
}

.gov-logo:hover {
    opacity: 0.8;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-item {
    color: var(--gov-text);
    font-size: 14px;
    font-weight: 400;
}

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--gov-white);
    padding: clamp(8px, 2vw, 12px) 0;
    border-bottom: 1px solid var(--gov-border);
}

.breadcrumb {
    font-size: clamp(12px, 2.5vw, 14px);
    color: var(--gov-text-light);
}

.breadcrumb a {
    color: var(--gov-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--gov-text-light);
}

/* Main Content */
.main-content {
    padding: clamp(24px, 5vw, 48px) 0 clamp(40px, 8vw, 80px);
    background: var(--gov-bg);
}

.page-header {
    margin-bottom: clamp(24px, 5vw, 40px);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: var(--gov-text);
    margin-bottom: clamp(8px, 2vw, 12px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--gov-text-light);
    font-weight: 300;
}

/* Alert Box */
.alert-box {
    display: flex;
    gap: clamp(12px, 3vw, 20px);
    padding: clamp(16px, 4vw, 24px);
    border-radius: 8px;
    margin: 0 auto clamp(24px, 5vw, 40px);
    max-width: 800px;
    border: 1px solid var(--gov-alert-border);
    background: var(--gov-alert-bg);
    box-shadow: var(--shadow-sm);
}

.alert-icon {
    flex-shrink: 0;
    color: var(--gov-primary);
}

.alert-content h3 {
    font-size: clamp(14px, 3vw, 17px);
    font-weight: 700;
    margin-bottom: clamp(6px, 2vw, 10px);
    color: var(--gov-text);
}

.alert-content p {
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.6;
    color: var(--gov-text);
    margin-bottom: clamp(6px, 2vw, 10px);
}

.alert-content p:last-child {
    margin-bottom: 0;
}

.alert-deadline {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gov-alert-border);
}

/* Content Section */
.content-section {
    background: transparent;
    display: flex;
    justify-content: center;
}

/* Form Styles */
.gov-form {
    max-width: 800px;
    width: 100%;
}

.form-section {
    border: 1px solid var(--gov-border);
    border-radius: 12px;
    padding: clamp(20px, 5vw, 32px);
    margin-bottom: clamp(16px, 4vw, 24px);
    background: var(--gov-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.form-section legend {
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: 700;
    color: var(--gov-text);
    padding: 0 clamp(6px, 2vw, 10px);
    margin-bottom: clamp(16px, 4vw, 24px);
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 24px);
    margin-bottom: clamp(16px, 4vw, 24px);
}

.form-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .form-row:has(> .form-group:nth-child(2)) {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group label {
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 600;
    color: var(--gov-text);
    margin-bottom: clamp(6px, 2vw, 8px);
    display: block;
}

.form-group input,
.form-group select {
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 16px);
    border: 1.5px solid var(--gov-border);
    border-radius: 8px;
    font-size: clamp(14px, 3vw, 16px);
    font-family: inherit;
    color: var(--gov-text);
    background: var(--gov-white);
    transition: all 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gov-primary);
    box-shadow: 0 0 0 4px rgba(0, 170, 255, 0.12);
    transform: translateY(-1px);
}

.form-group input:disabled,
.form-group select:disabled {
    background: var(--gov-bg);
    color: var(--gov-text-light);
    cursor: not-allowed;
}

.help-text {
    font-size: clamp(12px, 2.5vw, 13px);
    color: var(--gov-text-light);
    margin-top: clamp(4px, 1vw, 6px);
}

/* Radio Options */
.form-group-radio {
    margin-bottom: clamp(16px, 4vw, 24px);
}

.radio-label-main {
    display: block;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 600;
    color: var(--gov-text);
    margin-bottom: clamp(10px, 3vw, 14px);
}

.radio-options {
    display: flex;
    gap: clamp(16px, 4vw, 24px);
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 10px);
    cursor: pointer;
    font-size: clamp(14px, 3vw, 16px);
    color: var(--gov-text);
    padding: clamp(8px, 2vw, 10px);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.radio-option:hover {
    background: var(--gov-bg);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-custom {
    width: clamp(20px, 4vw, 22px);
    height: clamp(20px, 4vw, 22px);
    border: 2px solid var(--gov-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    width: clamp(10px, 2vw, 12px);
    height: clamp(10px, 2vw, 12px);
    border-radius: 50%;
    background: var(--gov-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--gov-primary);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-option:hover .radio-custom {
    border-color: var(--gov-primary);
}

/* Collapsible */
.collapsible {
    margin-top: clamp(16px, 4vw, 24px);
    padding: clamp(16px, 4vw, 24px);
    background: var(--gov-bg);
    border-radius: 10px;
    border: 1px solid var(--gov-border);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible[hidden] {
    display: none;
}

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

/* Select */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gov-white);
    border: 1.5px solid var(--gov-border);
    border-radius: 10px;
    margin-top: clamp(4px, 1vw, 8px);
    max-height: clamp(200px, 40vh, 280px);
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: var(--shadow-md);
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 16px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.5vw, 14px);
    border-bottom: 1px solid var(--gov-bg);
}

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

.suggestion-item:hover {
    background: var(--gov-bg);
    transform: translateX(4px);
}

.suggestion-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-text {
    font-size: clamp(13px, 2.5vw, 15px);
    color: var(--gov-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Actions */
.form-actions {
    margin-top: clamp(24px, 5vw, 40px);
    padding-top: clamp(20px, 4vw, 32px);
    border-top: 1px solid var(--gov-border);
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 40px);
    border: none;
    border-radius: 8px;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gov-primary);
    color: var(--gov-white);
}

.btn-primary:hover {
    background: var(--gov-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:disabled {
    background: var(--gov-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
.gov-footer {
    background: var(--gov-white);
    border-top: 1px solid var(--gov-border);
    padding: clamp(24px, 5vw, 40px) 0;
    margin-top: clamp(40px, 8vw, 80px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 4vw, 24px);
}

.footer-logo img {
    height: clamp(32px, 6vw, 40px);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-logo img:hover {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: clamp(16px, 4vw, 28px);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gov-text-light);
    text-decoration: none;
    font-size: clamp(12px, 2.5vw, 14px);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gov-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: clamp(16px, 4vw, 24px);
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .alert-box {
        flex-direction: column;
    }

    .form-actions {
        justify-content: stretch;
    }

    .btn {
        width: 100%;
    }
    
    .radio-options {
        gap: clamp(12px, 3vw, 16px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 clamp(12px, 4vw, 20px);
    }
    
    .header-nav {
        display: none;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        min-height: 48px; /* Better touch target */
    }
    
    .radio-option {
        min-height: 44px; /* Better touch target */
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--gov-primary);
    color: var(--gov-white);
}