@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
body {
    margin: 0;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to bottom right, #F0E6EF, #E2F3F5);
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    transition: background 0.3s ease-in-out;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(to bottom right, #F0E6EF, #E2F3F5);
    transition: background 0.3s ease-in-out;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
    cursor: pointer;
}

.contact-card:hover {
    transform: scale(1.02);
}

.contact-card h1 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #5B5B7E;
    transition: color 0.3s ease-in-out;
}

.contact-card:hover h1 {
    color: #8C92A3;
}

.contact-card p {
    text-align: center;
    margin-bottom: 20px;
    color: #5B5B7E;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(226, 243, 245, 0.7);
    color: #333;
    outline: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.contact-input:focus,
.contact-textarea:focus {
    box-shadow: 0 0 5px 2px #A5C4C9;
    transform: scale(1.02);
}

.contact-textarea {
    resize: none;
}

.contact-button {
    background: #A5C4C9;
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.contact-button:hover {
    transform: scale(1.05);
    background: #89B3BA;
}

.contact-button:active {
    transform: scale(0.95);
}

.contact-status {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #5B5B7E;
}


/* Media Queries for Responsiveness */

@media (max-width: 1024px) {
    body {
        padding-top: 180px;
        /* Ensure space is maintained across devices */
    }
    .contact-card {
        max-width: 450px;
    }
    .contact-card h1 {
        font-size: 1.8rem;
    }
    .contact-input,
    .contact-textarea {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    .contact-button {
        font-size: 1.1rem;
        padding: 8px 18px;
    }
    .contact-status {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px;
        /* Keep 80px margin on top to prevent content overlap with navbar */
    }
    .contact-card {
        max-width: 400px;
        padding: 15px;
    }
    .contact-card h1 {
        font-size: 1.7rem;
    }
    .contact-input,
    .contact-textarea {
        font-size: 1rem;
        padding: 8px 12px;
    }
    .contact-button {
        font-size: 1.1rem;
        padding: 8px 18px;
    }
    .contact-status {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        margin-top: 120px;
        padding: 52px;
    }
    .contact-card h1 {
        font-size: 1.6rem;
    }
    .contact-input,
    .contact-textarea {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    .contact-button {
        font-size: 1rem;
        padding: 6px 14px;
    }
    .contact-status {
        font-size: 0.8rem;
    }
}