/* =========================================================
   YALA CONTACT PAGE
   Modern Sky Blue + Glassmorphism
   ========================================================= */

:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;

    --blue-900: #0c4a6e;

    --text: #0f172a;
    --muted: #64748b;

    --white: #ffffff;

    --radius: 28px;

    --shadow:
        0 25px 70px rgba(2, 132, 199, 0.14);
}


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

.contact-hero {
    position: relative;

    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 15% 20%,
            rgba(56, 189, 248, 0.30),
            transparent 30%),
        radial-gradient(circle at 85% 75%,
            rgba(14, 165, 233, 0.22),
            transparent 32%),
        linear-gradient(135deg,
            #e0f2fe 0%,
            #f8fdff 50%,
            #dbeafe 100%);
}


/* Decorative circles */

.contact-hero::before,
.contact-hero::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);
}

.contact-hero::before {
    width: 330px;
    height: 330px;

    left: -120px;
    top: -100px;

    background: rgba(56, 189, 248, 0.18);
}

.contact-hero::after {
    width: 420px;
    height: 420px;

    right: -170px;
    bottom: -220px;

    background: rgba(14, 165, 233, 0.15);
}


/* Hero content */

.contact-hero .overlay {
    position: relative;

    z-index: 2;

    text-align: center;

    max-width: 850px;

    padding: 40px 25px;
}

.contact-hero h1 {
    margin: 0 0 20px;

    font-size: clamp(3.5rem, 8vw, 7rem);

    line-height: 0.95;

    font-weight: 800;

    letter-spacing: -0.065em;

    background:
        linear-gradient(135deg,
            var(--blue-900),
            var(--sky-600),
            var(--sky-400));

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.contact-hero p {
    margin: 0;

    color: var(--muted);

    font-size: clamp(1rem, 2vw, 1.25rem);

    line-height: 1.7;
}


/* =========================================================
   CONTACT CARD
   ========================================================= */

.contact-section {
    position: relative;

    z-index: 10;

    width: min(1100px, calc(100% - 40px));

    margin: -80px auto 90px;

    padding: 50px;

    display: grid;

    grid-template-columns: 1fr 80px;

    gap: 40px;

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

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

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}


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

.contact-form {
    width: 100%;
}

.contact-form form {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


/* Django form paragraphs */

.contact-form form p {
    margin: 0 0 17px;
}


/* Labels */

.contact-form label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 0.9rem;

    font-weight: 650;
}


/* Inputs */

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;

    box-sizing: border-box;

    padding: 15px 17px;

    border: 1px solid #dbeafe;

    border-radius: 14px;

    outline: none;

    background: rgba(248, 250, 252, 0.85);

    color: var(--text);

    font-size: 1rem;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}


/* Focus */

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--sky-400);

    background: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.12),
        0 12px 30px rgba(14, 165, 233, 0.08);
}


.contact-form textarea {
    min-height: 150px;

    resize: vertical;
}


/* Placeholder */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.submit-btn {
    position: relative;

    overflow: hidden;

    align-self: flex-start;

    margin-top: 8px;

    padding: 15px 30px;

    border: none;

    border-radius: 999px;

    background:
        linear-gradient(135deg,
            var(--sky-700),
            var(--sky-500),
            var(--sky-400));

    color: white;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(14, 165, 233, 0.25);

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


.submit-btn:hover {
    box-shadow:
        0 20px 45px rgba(14, 165, 233, 0.35);
}


.submit-btn:active {
    transform: scale(0.97);
}


/* Button shine */

.submit-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    transform: skewX(-20deg);

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);

    transition: left 0.6s ease;
}


.submit-btn:hover::before {
    left: 140%;
}


/* =========================================================
   FORM STATUS
   ========================================================= */

#form-status {
    margin-top: 15px !important;

    color: var(--sky-600);

    font-size: 0.9rem;

    font-weight: 600;
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.social-links {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 15px;
}


.social-links a {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid var(--sky-100);

    background: var(--sky-50);

    color: var(--sky-600);

    text-decoration: none;

    font-size: 1.05rem;

    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.08);

    transition:
        color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.social-links a:hover {
    background:
        linear-gradient(135deg,
            var(--sky-700),
            var(--sky-400));

    color: white;

    box-shadow:
        0 15px 35px rgba(14, 165, 233, 0.28);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .contact-hero {
        min-height: 390px;
    }

    .contact-section {
        width: calc(100% - 30px);

        margin-top: -55px;

        padding: 32px 22px;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .social-links {
        flex-direction: row;

        justify-content: center;
    }

    .social-links a {
        width: 45px;
        height: 45px;
    }

    .submit-btn {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .contact-hero h1 {
        font-size: 3.2rem;
    }

    .contact-hero p {
        font-size: 0.95rem;
    }

    .contact-section {
        padding: 27px 17px;

        border-radius: 22px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}