/* =========================================================
   AI CREATOR STUDIO
   CONTACT PAGE CSS
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #f5f7ff;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
    min-height: 78px;

    background: rgba(10, 15, 35, 0.96);

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    position: sticky;
    top: 0;
    z-index: 1000;

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

.site-header .container {
    width: 100%;
    max-width: 1200px;

    min-height: 78px;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.site-header .logo {
    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.7px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #a5b4fc
        );

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

    color: transparent;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;

    gap: 28px;
}

.main-nav a {
    position: relative;

    color: #cbd5e1;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -8px;

    width: 0;
    height: 2px;

    transform: translateX(-50%);

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6,
            #22d3ee
        );

    transition: 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    width: 70%;
}


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

.page-hero {
    position: relative;

    min-height: 470px;

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

    padding: 90px 25px;

    overflow: hidden;

    text-align: center;

    background-color: #10152f;

    background-image:
        linear-gradient(
            90deg,
            rgba(8, 12, 34, 0.86) 0%,
            rgba(8, 12, 34, 0.70) 34%,
            rgba(8, 12, 34, 0.18) 58%,
            rgba(8, 12, 34, 0.00) 100%
        ),
        url("hero.jpg");

    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    left: -210px;
    top: 30px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.25);

    filter: blur(75px);
}

.page-hero::after {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    right: -190px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(34, 211, 238, 0.18);

    filter: blur(75px);
}

.page-hero .container {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;

    position: relative;
    z-index: 2;
}


/* BADGE */

.page-hero .badge {
    display: inline-flex;
    align-items: center;

    padding: 10px 19px;

    margin-bottom: 23px;

    border-radius: 999px;

    color: #e0e7ff;

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

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

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.5px;
}


/* HERO TITLE */

.page-hero h1 {
    max-width: 850px;

    margin: 0 auto 22px;

    color: #ffffff;

    font-size: clamp(43px, 6vw, 70px);

    line-height: 1.04;

    letter-spacing: -3px;

    font-weight: 950;
}

.page-hero h1::after {
    content: "";

    display: block;

    width: 75px;
    height: 4px;

    margin: 24px auto 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6,
            #22d3ee
        );
}


/* HERO TEXT */

.page-hero p {
    max-width: 700px;

    margin: 0 auto;

    color: #cbd5e1;

    font-size: 17px;

    line-height: 1.85;
}


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

.section {
    width: 100%;

    padding: 100px 30px 115px;

    background:
        linear-gradient(
            180deg,
            #f5f7ff 0%,
            #ffffff 100%
        );
}

.section > .container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   CONTACT GRID
   ========================================================= */

.section .tools-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 30px;

    max-width: 1100px;

    margin: 0 auto;
}


/* =========================================================
   CONTACT CARDS
   ========================================================= */

.section .tool-card {
    position: relative;

    padding: 35px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fafbff 58%,
            #f3f4ff 100%
        );

    border: 1px solid #e2e8f0;

    border-radius: 22px;

    box-shadow:
        0 17px 45px rgba(49, 46, 129, 0.09);

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

.section .tool-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6,
            #22d3ee
        );
}

.section .tool-card:hover {
    transform: translateY(-5px);

    border-color: #c7d2fe;

    box-shadow:
        0 25px 55px rgba(49, 46, 129, 0.16);
}


/* =========================================================
   CARD HEADINGS
   ========================================================= */

.section .tool-card h2 {
    color: #0f172a;

    font-size: 27px;

    line-height: 1.25;

    letter-spacing: -0.8px;

    margin-bottom: 18px;
}

.section .tool-card h3 {
    position: relative;

    color: #4f46e5;

    font-size: 16px;

    font-weight: 900;

    margin-top: 28px;

    margin-bottom: 8px;

    padding-left: 14px;
}

.section .tool-card h3::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: 17px;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #6366f1,
            #8b5cf6,
            #22d3ee
        );
}


/* CARD TEXT */

.section .tool-card p {
    color: #64748b;

    font-size: 14px;

    line-height: 1.85;

    margin-bottom: 15px;
}


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

.generator-form {
    width: 100%;
}

.generator-form label {
    display: block;

    color: #1e293b;

    font-size: 13px;

    font-weight: 850;

    margin-top: 16px;

    margin-bottom: 8px;
}

.generator-form label:first-child {
    margin-top: 0;
}


/* INPUTS */

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

    color: #0f172a;

    background: #ffffff;

    border: 1px solid #d5ddec;

    border-radius: 11px;

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.generator-form input {
    height: 50px;

    padding: 0 14px;
}

.generator-form textarea {
    min-height: 155px;

    padding: 13px 14px;

    resize: vertical;

    line-height: 1.65;
}

.generator-form input::placeholder,
.generator-form textarea::placeholder {
    color: #9aa8bd;
}

.generator-form input:focus,
.generator-form textarea:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.14);
}


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

.generator-form button[type="submit"] {
    width: 100%;

    min-height: 53px;

    margin-top: 22px;

    border: none;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #6366f1 0%,
            #7c3aed 52%,
            #06b6d4 100%
        );

    font-size: 14px;

    font-weight: 900;

    box-shadow:
        0 12px 28px rgba(99, 102, 241, 0.42);

    transition: 0.25s ease;
}

.generator-form button[type="submit"]:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 38px rgba(124, 58, 237, 0.55);
}


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

@media (max-width: 900px) {

    .site-header .container {
        padding: 0 22px;
    }

    .main-nav {
        gap: 17px;
    }

    .section .tools-grid {
        grid-template-columns: 1fr;
    }

    .section .tool-card {
        max-width: 750px;

        width: 100%;

        margin: 0 auto;
    }
}


@media (max-width: 680px) {

    .site-header {
        position: relative;
    }

    .site-header .container {
        min-height: auto;

        padding: 17px 20px;

        flex-direction: column;

        gap: 15px;
    }

    .site-header .logo {
        font-size: 20px;
    }

    .main-nav {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 9px 16px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .page-hero {
        min-height: 410px;

        padding: 70px 20px;
    }

    .page-hero h1 {
        font-size: 41px;

        letter-spacing: -2px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .section {
        padding: 65px 20px 80px;
    }

    .section .tool-card {
        padding: 25px 21px;

        border-radius: 17px;
    }

    .section .tool-card h2 {
        font-size: 23px;
    }
}


@media (max-width: 420px) {

    .page-hero h1 {
        font-size: 35px;
    }

    .main-nav {
        gap: 8px 12px;
    }

    .main-nav a {
        font-size: 11px;
    }
}


/* =========================================================
   HERO TEXT ON THE LEFT (same as home page)
   ========================================================= */

.page-hero {
    justify-content: flex-start;

    padding-left: 7%;
    padding-right: 7%;

    text-align: left;
}

.page-hero .container {
    max-width: 600px;

    margin: 0;
}

.page-hero h1 {
    margin: 0 0 22px;

    letter-spacing: -2px;

    text-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
}

.page-hero h1::after {
    margin: 24px 0 0;
}

.page-hero p {
    max-width: 500px;

    margin: 0;
}


/* =========================================================
   STRONG SUBMIT BUTTON (same as home page)
   ========================================================= */

.generator-form button[type="submit"] {
    position: relative;
    overflow: hidden;

    min-height: 56px;

    border-radius: 13px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 12px 28px rgba(99, 102, 241, 0.42);
}

.generator-form button[type="submit"]::after {
    content: "";

    position: absolute;
    top: 0;
    left: -60%;

    width: 40%;
    height: 100%;

    background: linear-gradient(
        100deg,
        transparent,
        rgba(255, 255, 255, 0.42),
        transparent
    );

    transform: skewX(-20deg);

    animation: btnShine 3.8s ease-in-out infinite;
}

.generator-form button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.015);
}

.generator-form button[type="submit"]:disabled::after {
    display: none;
}

@keyframes btnShine {
    0%, 55% { left: -60%; }
    100%    { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
    .generator-form button[type="submit"]::after {
        animation: none;
    }
}

@media (max-width: 900px) {

    .page-hero {
        justify-content: center;

        text-align: center;

        background-image:
            linear-gradient(
                180deg,
                rgba(8, 12, 34, 0.80) 0%,
                rgba(8, 12, 34, 0.72) 100%
            ),
            url("hero.jpg");
    }

    .page-hero .container {
        margin: 0 auto;
    }

    .page-hero h1 {
        margin: 0 auto 22px;
    }

    .page-hero h1::after {
        margin: 24px auto 0;
    }

    .page-hero p {
        max-width: 700px;

        margin: 0 auto;
    }
}