/* ================= GLOBAL ================= */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #00abe4, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= HERO ================= */

.contact-hero {
    padding: 160px 60px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* GLOW */
.contact-hero::before {
    content: "";
    position: absolute;
    width: 1500px;
    height: 1500px;
    background: radial-gradient(circle, rgba(0,171,228,0.5), transparent 70%);
    top: -400px;
    right: -500px;
    filter: blur(180px);
}

.contact-hero::after {
    content: "";
    position: absolute;
    width: 1500px;
    height: 1500px;
    background: radial-gradient(circle, rgba(0,171,228,0.4), transparent 70%);
    bottom: -400px;
    left: -500px;
    filter: blur(200px);
}

.contact-hero-text {
    max-width: 700px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 50px;
}

.contact-hero h5{
    color: #00abe4;
}

/* ================= GLASS ================= */

.glass-card {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
}

/* ================= CONTACT HERO RESPONSIVENESS FIX ================= */

@media (max-width: 1024px) {

    .contact-hero {
        padding: 140px 40px 80px;
    }

    .contact-hero-text {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box; /* ✅ prevent overflow */
    }

    .contact-hero h1 {
        font-size: 40px;
        line-height: 1.3;
        word-wrap: break-word; /* ✅ prevent text cut */
    }
}

@media (max-width: 768px) {

    .contact-hero {
        padding: 130px 20px 60px;
    }

    .contact-hero-text {
        width: 100%;
        padding: 25px 18px; /* ✅ fix glass padding issue */
        box-sizing: border-box;
    }

    .contact-hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {

    .contact-hero-text {
        padding: 22px 15px;
    }

    .contact-hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }
}



/* ================= CONTACT SECTION ================= */

.contact {
    padding: 120px 60px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* 🔥 SAME STYLE GRADIENT AS HERO */
.contact::before {
    content: "";
    position: absolute;
    width: 1400px;
    height: 1400px;

    background: radial-gradient(circle, rgba(0,171,228,0.45) 0%, rgba(0,171,228,0.15) 40%, transparent 75%);
    
    top: -400px;
    right: -400px;

    filter: blur(180px);
    z-index: 0;
}

.contact::after {
    content: "";
    position: absolute;
    width: 1400px;
    height: 1400px;

    background: radial-gradient(circle, rgba(0,171,228,0.4) 0%, rgba(0,171,228,0.1) 40%, transparent 75%);
    
    bottom: -400px;
    left: -400px;

    filter: blur(200px);
    z-index: 0;
}

/* CONTAINER */
.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* ================= GLASS ================= */

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border-radius: 20px;
    padding: 35px;

    border: 1px solid rgba(255,255,255,0.35);

    box-shadow: 0 15px 60px rgba(0,0,0,0.12);

    transition: 0.4s;
}

/* HOVER */
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,171,228,0.25);
}

/* ================= LEFT ================= */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card i {
    font-size: 22px;
    color: #00abe4;
    margin-bottom: 10px;
}

/* ================= FORM ================= */
.alert-success {
    display: inline-block;
    max-width: 400px;
    width: auto;

    background: green;
    color: #ffffff;
    font-weight: bold;

    padding: 12px 18px;
    border-radius: 10px;

    border: 1px solid rgba(0, 168, 107, 0.25);

    text-align: center;
    font-weight: 500;
    font-size: 14px;

    box-shadow: 0 6px 15px rgba(0, 168, 107, 0.08);

    animation: fadeIn 0.4s ease;
}

.alert-container {
    text-align: center;
    margin-bottom: 15px;
}

.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* ================= CONTACT FORM ================= */

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* INPUT GROUP */
.input-group {
    position: relative;
    width: 100%;
}

/* INPUT */
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);

    background: rgba(255,255,255,0.6);

    outline: none;
    transition: 0.3s;

    box-sizing: border-box; /* ✅ FIX RIGHT SIDE ISSUE */
}

/* FOCUS */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #00abe4;
    box-shadow: 0 0 15px rgba(0,171,228,0.3);
    background: white;
}

/* LABEL */
.input-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%); /* ✅ center inside field */

    font-size: 14px;
    color: #777;

    transition: 0.3s ease;
    pointer-events: none;
}

/* FLOAT (CLEAN STYLE ABOVE FIELD) */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    
    top: -12px; /* ✅ moves ABOVE border */
    left: 12px;

    font-size: 11px;
    color: #00abe4;

    transform: none;
    letter-spacing: 0.5px;
}

/* BUTTON */
.btn-primary {
    margin-top: 5px;

    background: linear-gradient(135deg, #00abe4, #00c6ff);
    color: white;

    padding: 14px;
    border-radius: 50px;
    border: none;

    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,171,228,0.4);
    transition: 0.3s;

    width: 100%;
    box-sizing: border-box;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .contact-form form {
        gap: 14px;
    }

    .input-group input,
    .input-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px;
    }
}

@media (max-width: 480px) {

    .input-group input,
    .input-group textarea {
        padding: 11px 12px;
        font-size: 13px;
    }
}

/* ================= MAP ================= */

.map iframe {
    width: 100%;
    height: 420px;
    border: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}