@media only screen and (min-width: 0rem) {
    #contact {
        padding: 3rem 2rem;
        max-width: 62rem;
        margin: 0 auto;
        background-color: #fff;
    }

    #contact h1 {
        font-size: 2.2rem;
        font-weight: 800;
        color: #1a1a2e;
        margin-bottom: 0.75rem;
    }

    #contact-content {
        font-size: 1.15rem;
        color: #555;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    #contact-form {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        max-width: 40rem;
        background: #f8f5ff;
        border: 1px solid #e8e0f5;
        padding: 2.5rem;
        border-radius: 12px;
        margin: 0 auto;
    }

    #contact-form label {
        font-weight: 600;
        font-size: 0.95rem;
        color: #333;
        margin-bottom: -0.75rem;
    }

    #contact-form input,
    #contact-form textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        box-sizing: border-box;
        transition: border-color 0.2s ease;
    }

    #contact-form input:focus,
    #contact-form textarea:focus {
        border-color: var(--secondary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(69, 43, 131, 0.1);
    }

    #contact-form textarea {
        resize: vertical;
        min-height: 120px;
    }

    #contact-form button {
        width: 100%;
        padding: 0.85rem;
        background-color: var(--secondary);
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.05rem;
        font-weight: 600;
        transition: background-color 0.2s ease, transform 0.15s ease;
        box-sizing: border-box;
        margin-top: 0.5rem;
    }

    #contact-form button:hover {
        background-color: #5a3ca0;
        transform: translateY(-1px);
    }

    #success-message {
        display: none;
        padding: 1.25rem;
        border: 1px solid #a3d9b1;
        background-color: #d4edda;
        border-radius: 8px;
        text-align: center;
        margin-top: 1.5rem;
        max-width: 40rem;
    }

    #success-message p {
        color: #155724;
        margin: 0;
        font-size: 1rem;
    }
}

@media only screen and (max-width: 63.9375rem) {
    #contact {
        padding: 2rem 1.25rem;
    }

    #contact-form {
        padding: 1.5rem;
    }
}