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

:root {
    /* Primary accent color */
    --color-primary: #0e9ed5;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;

    /* Text colors */
    --color-text: #1e293b;
    --color-text-muted: #64748b;

    /* Surface colors */
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-focus: #2563eb;

    --font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg:
        0 10px 25px -5px rgba(0, 0, 0, 0.08),
        0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --transition: 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.container {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    width: 100px;
    height: 150px;
    margin-bottom: 0.5rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.brand {
    font-size: 2.25rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.brand-light {
    font-weight: 300;
}

.brand-bold {
    font-weight: 900;
}

.headline {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.subheadline {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.form-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

input:focus,
textarea:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    display: none;
    text-align: center;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(
        135deg,
        var(--color-primary-light),
        var(--color-primary)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.success-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-content.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.swiss-cross {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #e53935;
    border-radius: 2px;
    position: relative;
}

.swiss-cross::before,
.swiss-cross::after {
    content: "";
    position: absolute;
    background: white;
}

.swiss-cross::before {
    width: 8px;
    height: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swiss-cross::after {
    width: 3px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 480px) {
    main {
        padding: 2rem 1rem;
    }

    .brand {
        font-size: 1.875rem;
    }

    .card {
        padding: 1.5rem;
    }
}
