.contact-section {
    background: #050b13;
    padding: clamp(60px, 10vh, 100px) 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
}

.section-header .underline {
    width: 50px;
    height: 4px;
    background: #4eb5c2;
    margin: 12px auto 15px;
    border-radius: 2px;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(78, 181, 194, 0.1);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    position: relative;
    /* Increased margin to give floating labels space above */
    margin-top: 20px;
    margin-bottom: 30px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: #0b141d;
    border: 1px solid rgba(78, 181, 194, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #a8b2d1;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
    z-index: 1;
}

/* Floating Label: Pushed further up and out of the box */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-42px) scale(0.8);
    color: #4eb5c2;
    font-weight: 600;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #4eb5c2;
}

.submit-btn {
    width: 100%;
    background: #4eb5c2;
    color: #050b13;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background: #62c7d4;
    transform: translateY(-3px);
}

/* --- Responsive: Big Tablets to Foldables --- */

@media (max-width: 768px) {
    .contact-wrapper { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .contact-section { padding: 40px 0; }
    .form-group { margin-top: 15px; margin-bottom: 25px; }
    .form-group input, .form-group textarea { padding: 15px; }
    .form-group label { left: 15px; top: 15px; }
    
    .form-group input:focus ~ label,
    .form-group input:not(:placeholder-shown) ~ label,
    .form-group textarea:focus ~ label,
    .form-group textarea:not(:placeholder-shown) ~ label {
        transform: translateY(-38px) scale(0.8);
    }
}

@media (max-width: 320px) {
    .contact-wrapper { padding: 20px 15px; border-radius: 12px; }
    .section-header h2 { font-size: 1.5rem; }
}