/* Minimalist Landing Page - XIAO PROJECTS */

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

:root {
    --navy-blue: #1F3E66;
    --brick-red: #BA3226;
    --white: #FFFFFF;
    --light-gray: #E0E0E0;
    --text-gray: #6B7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--navy-blue);
    background: #F3F4F6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    width: 100%;
    background: var(--white);
    padding: 32px 28px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

/* Logo */
.logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.logo img {
    display: block;
    max-height: 120px;
    width: auto;
}

/* Headline */
.headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 32px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-blue);
    margin-bottom: 6px;
}

.required {
    color: var(--brick-red);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--navy-blue);
    background: var(--white);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--brick-red);
}

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

.error-message {
    display: block;
    color: var(--brick-red);
    font-size: 0.8125rem;
    margin-top: 4px;
    min-height: 16px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: var(--brick-red);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.submit-btn:hover {
    background: #9d2a20;
    box-shadow: 0 2px 8px rgba(186, 50, 38, 0.25);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn:disabled {
    background: var(--light-gray);
    color: var(--text-gray);
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px 20px;
}

.success-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.success-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 12px;
}

.success-text {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Fade Transition */
.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

    .content-container {
        padding: 24px 20px;
    }

    .headline {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .logo img {
        max-width: 70px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .success-title {
        font-size: 1.125rem;
    }

    .success-message {
        padding: 16px 12px;
    }
}
