.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-size: 2.5rem;
}

.contact-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

label {
    color: #333;
    font-weight: 500;
}

.min-chars {
    color: #666;
    font-size: 0.9rem;
    font-weight: normal;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #666;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.char-count {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.submit-container {
    text-align: center;
    margin-top: 2rem;
}

.submit-button {
    background-color: #333;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #444;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 1rem;
    }

    .contact-container h1 {
        font-size: 2rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-container h1 {
        font-size: 1.8rem;
    }

    .contact-intro {
        font-size: 1rem;
    }

    .submit-button {
        width: 100%;
        padding: 0.8rem;
    }
}