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

html,
body {
    height: 100%;
}

/* Full-page background with unique style */
#main-content {
    margin-top: 50px;
    font-family: 'Segoe UI', sans-serif;
    height: calc(100vh - 100px);
    /* Adjust if header/footer height changes */
}

/* Hero section covers the full page */
.contact-hero {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('contact.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Semi-transparent overlay for contrast */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Glassmorphism Contact Form Card */
.contact-form-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styles inside the glass card */
.contact-form-card h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.error .error-message {
    opacity: 1;
}

/* Stylish button */
.btn {
    padding: 12px;
    background: #21a1f1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1a89d4;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .contact-form-card {
        padding: 30px;
    }
}