*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a70dc;
    --primary-dark: #085bb3;
    --background: #f2f2f2;
    --card-bg: #ffffff;
    --text-primary: #071D49;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --success: #28a745;
    --error: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 700px;
    width: 100%;
}

.title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.declaration-form {
    width: 100%;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.label-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.name-section {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.name-section input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.name-section input::placeholder {
    color: var(--text-muted);
}

.name-section input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 112, 220, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 112, 220, 0.3);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .header {
        padding: 1.25rem 1.5rem;
    }

    .main-container {
        padding: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9375rem;
    }

    .checkbox-label {
        padding-left: 1.75rem;
    }

    .label-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .header-container svg {
        width: 110px;
        height: auto;
    }

    .main-container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem 1rem;
    }

    .title {
        font-size: 1.375rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

::selection {
    background: var(--primary);
    color: white;
}
