/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7a7a7a;
    --primary-dark: #5a5a5a;
    --secondary-color: #8a8a8a;
    --text-primary: #2a2a2a;
    --text-secondary: #6a6a6a;
    --background: #fafafa;
    --surface: #f5f5f5;
    --border: #e8e8e8;
    --success: #7a8a7a;
    --error: #9a7a7a;
    --shadow: rgba(0, 0, 0, 0.03);
    --accent: #d5d5d5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: #f8f8f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-weight: 400;
}

.container {
    max-width: 480px;
    width: 100%;
    background: var(--background);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    border: 1px solid var(--border);
}

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

/* Header */
.header {
    background: var(--surface);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

/* Main Content */
.main-content {
    padding: 2rem 1.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    margin-top: 1.5rem;
}

.contact-section h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.form-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(122, 122, 122, 0.08);
}

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

/* Checkbox Styles */
.checkbox-group {
    gap: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.checkbox-text {
    user-select: none;
}

.submit-btn {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

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

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 400;
    display: none;
    font-size: 0.875rem;
}

.form-status.success {
    background-color: #f0f0f0;
    color: var(--text-primary);
    border: 1px solid var(--border);
    display: block;
}

.form-status.error {
    background-color: #f5f5f5;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    display: block;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .container {
        border-radius: 6px;
    }

    .logo h1 {
        font-size: 1.375rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .description {
        font-size: 0.875rem;
    }

    .main-content {
        padding: 1.5rem 1.25rem;
    }

    .header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loader::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
