/* ================= GLOBAL ================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Space+Grotesk:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #ffffff;
    color: #1b3058;
}

/* ================= HERO ================= */

.contact-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(135deg,
            rgba(27, 48, 88, 0.96),
            rgba(28, 47, 87, 0.96));
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 46px;
    background: linear-gradient(90deg, #ffcc00, #ffe066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    margin-top: 20px;
    color: #e5e7eb;
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.7;
}

/* ================= SUPPORT CARDS ================= */

.support-section {
    padding: 100px 10%;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.support-card {
    background: #1c2f57;
    padding: 45px 30px;
    border-radius: 28px;
    text-align: center;
    color: #ffffff;
    transition: 0.35s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.support-card:hover {
    transform: translateY(-10px);
}

.support-card i {
    font-size: 42px;
    color: #ffcc00;
    margin-bottom: 18px;
}

.support-card span {
    display: block;
    margin-top: 12px;
    color: #ffcc00;
    font-weight: 600;
}

/* ================= FORM ================= */

.contact-form-section {
    padding: 110px 10%;
    background: #f8fafc;
}

.form-container {
    max-width: 900px;
    margin: auto;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    padding: 70px 60px;
    border-radius: 34px;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(27, 48, 88, 0.05);
}

.form-info {
    text-align: center;
    margin-bottom: 45px;
}

.form-info h2 {
    font-size: 32px;
}

.form-info p {
    margin-top: 10px;
    color: #475569;
}

/* Floating fields */
.support-form .field {
    position: relative;
    margin-bottom: 28px;
}

.support-form input,
.support-form textarea {
    width: 100%;
    padding: 16px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background: transparent;
    color: #1b3058;
    transition: 0.3s ease;
}

/* Floating label */
.support-form label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 8px;
    font-size: 13px;
    color: #64748b;
    pointer-events: none;
    transition: 0.3s ease;
}

.support-form textarea+label {
    top: 18px;
    transform: none;
}

/* Focus */
.support-form input:focus,
.support-form textarea:focus {
    border-color: #b52b2b;
    box-shadow: 0 0 0 3px rgba(181, 43, 43, 0.25);
}


/* Move label up */
.support-form input:focus+label,
.support-form input:valid+label,
.support-form textarea:focus+label,
.support-form textarea:valid+label {
    top: -8px;
    font-size: 11px;
    color: #b52b2b;
}

/* Button */
.send-btn {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(90deg, #b52b2b, #d63c3c);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(181, 43, 43, 0.35);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.35s ease;

}

.send-btn:hover {
    box-shadow: 0 22px 45px rgba(181, 43, 43, 0.55);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .support-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 45px 28px;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

/* ===== LIVE FORM VALIDATION UI ===== */

.field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: red;
    visibility: hidden;
}

.field.error input,
.field.error textarea {
    border-color: red !important;
}

.field.success input,
.field.success textarea {
    border-color: #16a34a !important;
}

.field.error small {
    visibility: visible;
}

/* ===== POPUP MODAL ===== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 18px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    animation: popupScale 0.3s ease;
}

.popup-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.popup-box h3 {
    color: #1b3058;
    margin-bottom: 8px;
}

.popup-box p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
}

.popup-box button {
    padding: 10px 28px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(90deg, #b52b2b, #d63c3c);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.popup-box button:hover {
    opacity: 0.9;
}

@keyframes popupScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
