/* ==========================================================
   BUY ADS PAGE
   PROFESSIONAL MARKETPLACE ADVERTISING
========================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f8fafc;
    color: #111827;

    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
textarea {
    font: inherit;
}


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

.ads-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;

    z-index: 100;
}


.ads-header-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 14px 16px;

    display: flex;

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

    gap: 15px;
}


.ads-logo {
    font-size: 20px;

    font-weight: 800;

    color: #2563eb;

    white-space: nowrap;
}


.ads-dashboard-link {
    padding: 8px 12px;

    border: 1px solid #dbeafe;

    border-radius: 8px;

    color: #2563eb;

    font-size: 13px;

    font-weight: 600;

    background: #eff6ff;

    white-space: nowrap;
}


.ads-dashboard-link:hover {
    background: #dbeafe;
}


/* ==========================================================
   MAIN
========================================================== */

main {
    width: 100%;
}


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

.ads-hero {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 16px 35px;

    display: grid;

    grid-template-columns: 1fr;

    gap: 30px;

    align-items: center;
}


.ads-hero-content {
    min-width: 0;
}


.ads-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #2563eb;
}


.ads-hero h1 {
    margin: 0 0 18px;

    max-width: 700px;

    font-size: clamp(
        34px,
        8vw,
        64px
    );

    line-height: 1.05;

    letter-spacing: -1.5px;

    color: #111827;
}


.ads-hero h1 span {
    display: block;

    color: #2563eb;
}


.ads-hero-content > p {
    max-width: 650px;

    margin: 0;

    font-size: 15px;

    line-height: 1.7;

    color: #64748b;
}


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

.ads-hero-actions {
    margin-top: 25px;

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.primary-button,
.secondary-button {
    display: inline-flex;

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

    min-height: 45px;

    padding: 0 18px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}


.primary-button {
    background: #2563eb;

    color: #ffffff;
}


.primary-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.secondary-button {
    background: #ffffff;

    border: 1px solid #dbe3ef;

    color: #334155;
}


.secondary-button:hover {
    border-color: #2563eb;

    color: #2563eb;
}


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

.ads-hero-card {
    width: 100%;

    padding: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #ffffff
        );

    border: 1px solid #dbeafe;

    box-shadow:
        0 15px 40px rgba(
            15,
            23,
            42,
            .07
        );
}


.hero-card-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    display: flex;

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

    border-radius: 12px;

    background: #2563eb;

    font-size: 23px;
}


.ads-hero-card > strong {
    display: block;

    margin-bottom: 8px;

    font-size: 21px;

    color: #111827;
}


.ads-hero-card > p {
    margin: 0 0 20px;

    font-size: 13px;

    line-height: 1.7;

    color: #64748b;
}


.hero-card-stat {
    padding-top: 15px;

    border-top: 1px solid #dbeafe;

    display: flex;

    justify-content: space-between;

    gap: 10px;
}


.hero-card-stat span {
    color: #64748b;

    font-size: 12px;
}


.hero-card-stat strong {
    color: #2563eb;

    font-size: 12px;
}


/* ==========================================================
   GENERAL SECTION
========================================================== */

.why-ads,
.advertising-plans,
.campaign-section,
.how-it-works,
.ads-information,
.ads-final-cta {
    width: 100%;

    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 16px;
    padding-right: 16px;
}


.why-ads,
.advertising-plans,
.campaign-section,
.how-it-works {
    padding-top: 55px;
    padding-bottom: 55px;
}


.section-heading {
    max-width: 720px;

    margin: 0 auto 30px;

    text-align: center;
}


.section-heading > span {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.section-heading h2 {
    margin: 0 0 12px;

    font-size: clamp(
        26px,
        5vw,
        40px
    );

    line-height: 1.15;

    letter-spacing: -.7px;
}


.section-heading p {
    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   BENEFITS
========================================================== */

.benefits-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 14px;
}


.benefit-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.benefit-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(
            15,
            23,
            42,
            .07
        );
}


.benefit-icon {
    width: 43px;
    height: 43px;

    margin-bottom: 15px;

    display: flex;

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

    border-radius: 10px;

    background: #eff6ff;

    font-size: 20px;
}


.benefit-card h3 {
    margin: 0 0 8px;

    font-size: 17px;
}


.benefit-card p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.65;
}


/* ==========================================================
   ADVERTISING PLANS
========================================================== */

.advertising-plans {
    max-width: 1300px;
}


.plans-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 18px;

    align-items: stretch;
}


.plan-card {
    position: relative;

    min-width: 0;

    padding: 25px;

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(
            15,
            23,
            42,
            .04
        );
}


.plan-card.featured {
    border: 2px solid #2563eb;

    box-shadow:
        0 15px 35px rgba(
            37,
            99,
            235,
            .12
        );
}


.popular-badge {
    position: absolute;

    top: 0;
    right: 18px;

    transform: translateY(-50%);

    padding: 6px 10px;

    border-radius: 20px;

    background: #2563eb;

    color: #ffffff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .4px;
}


.plan-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .8px;
}


.plan-top h3 {
    margin: 0 0 8px;

    font-size: 21px;
}


.plan-top p {
    margin: 0;

    min-height: 65px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


.plan-price {
    margin: 24px 0;

    font-size: 36px;

    line-height: 1;

    font-weight: 850;

    color: #111827;
}


.plan-price span {
    font-size: 19px;

    vertical-align: top;

    margin-right: 2px;

    color: #2563eb;
}


/* ==========================================================
   PLAN FEATURES
========================================================== */

.plan-features {
    display: flex;

    flex-direction: column;

    gap: 11px;

    margin-bottom: 25px;

    flex: 1;
}


.plan-features div {
    color: #475569;

    font-size: 13px;

    line-height: 1.4;
}


.plan-features div::first-letter {
    color: #2563eb;
}


/* ==========================================================
   PLAN BUTTON
========================================================== */

.select-plan {
    width: 100%;

    min-height: 46px;

    padding: 0 15px;

    border: 1px solid #2563eb;

    border-radius: 9px;

    background: #ffffff;

    color: #2563eb;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.select-plan:hover {
    background: #2563eb;

    color: #ffffff;

    transform: translateY(-1px);
}


.plan-card.featured .select-plan {
    background: #2563eb;

    color: #ffffff;
}


.plan-card.featured .select-plan:hover {
    background: #1d4ed8;
}


/* ==========================================================
   CAMPAIGN SECTION
========================================================== */

.campaign-section {
    max-width: 900px;
}


.campaign-card {
    width: 100%;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(
            15,
            23,
            42,
            .05
        );
}


/* ==========================================================
   SELECTED PLAN
========================================================== */

.selected-plan-box {
    width: 100%;

    margin-bottom: 25px;

    padding: 16px;

    border-radius: 11px;

    background: #eff6ff;

    border: 1px solid #dbeafe;
}


.selected-plan-box > span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;
}


.selected-plan-box > strong {
    display: block;

    margin-bottom: 5px;

    color: #1d4ed8;

    font-size: 18px;
}


#selectedPlanDetails {
    color: #64748b;

    font-size: 12px;
}


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

#adsPurchaseForm {
    width: 100%;
}


.form-field {
    width: 100%;

    margin-bottom: 18px;
}


.form-field label {
    display: block;

    margin-bottom: 7px;

    color: #1e293b;

    font-size: 12px;

    font-weight: 700;
}


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

    max-width: 100%;

    padding: 12px 13px;

    border: 1px solid #dbe3ef;

    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    font-size: 13px;

    outline: none;

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


.form-field input {
    height: 46px;
}


.form-field textarea {
    min-height: 100px;

    resize: vertical;

    line-height: 1.5;
}


.form-field input:focus,
.form-field textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(
            37,
            99,
            235,
            .10
        );
}


.form-field small {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 10px;

    line-height: 1.5;
}


/* ==========================================================
   PAYMENT SUMMARY
========================================================== */

.payment-summary {
    width: 100%;

    margin-top: 25px;

    padding: 16px;

    border-radius: 11px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;
}


.payment-summary > div {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 9px 0;

    font-size: 12px;
}


.payment-summary span {
    color: #64748b;
}


.payment-summary strong {
    color: #111827;

    text-align: right;
}


.payment-summary .summary-total {
    margin-top: 7px;

    padding-top: 14px;

    border-top: 1px solid #e2e8f0;
}


.summary-total strong {
    color: #2563eb;

    font-size: 20px;
}


/* ==========================================================
   PAYMENT BUTTON
========================================================== */

.pay-ads-button {
    width: 100%;

    min-height: 48px;

    margin-top: 18px;

    border: none;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.pay-ads-button:hover:not(:disabled) {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.pay-ads-button:disabled {
    background: #cbd5e1;

    color: #64748b;

    cursor: not-allowed;
}


/* ==========================================================
   PAYMENT STATUS
========================================================== */

.ads-payment-status {
    width: 100%;

    margin-top: 12px;

    padding: 10px;

    border-radius: 8px;

    font-size: 12px;

    line-height: 1.5;

    text-align: center;
}


.ads-payment-status:empty {
    display: none;
}


/* ==========================================================
   HOW IT WORKS
========================================================== */

.steps-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 14px;
}


.step {
    position: relative;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;
}


.step-number {
    display: inline-flex;

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

    width: 38px;
    height: 38px;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;
}


.step h3 {
    margin: 0 0 8px;

    font-size: 16px;
}


.step p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


/* ==========================================================
   INFORMATION
========================================================== */

.ads-information {
    max-width: 900px;

    padding-top: 10px;

    padding-bottom: 55px;
}


.information-box {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 20px;

    border: 1px solid #bfdbfe;

    border-radius: 13px;

    background: #eff6ff;
}


.information-icon {
    flex-shrink: 0;

    font-size: 20px;
}


.information-box h3 {
    margin: 0 0 7px;

    font-size: 15px;

    color: #1e3a8a;
}


.information-box p {
    margin: 0;

    color: #475569;

    font-size: 12px;

    line-height: 1.7;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.ads-final-cta {
    max-width: 100%;

    margin-top: 10px;

    padding-top: 65px;
    padding-bottom: 65px;

    padding-left: 20px;
    padding-right: 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff
        );

    border-top: 1px solid #dbeafe;

    border-bottom: 1px solid #dbeafe;
}


.ads-final-cta > span {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.ads-final-cta h2 {
    margin: 0 0 12px;

    font-size: clamp(
        26px,
        6vw,
        42px
    );

    line-height: 1.15;
}


.ads-final-cta p {
    max-width: 550px;

    margin: 0 auto 22px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   FOOTER
========================================================== */

.ads-footer {
    width: 100%;

    padding: 25px 16px;

    background: #ffffff;

    border-top: 1px solid #e5e7eb;

    text-align: center;
}


.ads-footer p {
    margin: 0 0 12px;

    color: #94a3b8;

    font-size: 11px;
}


.ads-footer > div {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;
}


.ads-footer a {
    color: #64748b;

    font-size: 11px;
}


.ads-footer a:hover {
    color: #2563eb;
}


/* ==========================================================
   TABLET
========================================================== */

@media (min-width: 600px) {

    .ads-header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }


    .ads-hero {
        padding:
            70px 24px
            50px;
    }


    .benefits-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .plans-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .steps-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .campaign-card {
        padding: 30px;
    }


    .why-ads,
    .advertising-plans,
    .campaign-section,
    .how-it-works,
    .ads-information {
        padding-left: 24px;
        padding-right: 24px;
    }

}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 900px) {

    .ads-header-inner {
        padding:
            16px 30px;
    }


    .ads-hero {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(300px, .65fr);

        padding:
            90px 30px
            70px;

        gap: 60px;
    }


    .benefits-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 18px;
    }


    .plans-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 20px;
    }


    .steps-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 18px;
    }


    .why-ads,
    .advertising-plans,
    .campaign-section,
    .how-it-works,
    .ads-information {
        padding-left: 30px;
        padding-right: 30px;
    }

}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (min-width: 1200px) {

    .ads-hero {
        padding-top: 105px;
        padding-bottom: 85px;
    }


    .ads-hero h1 {
        font-size: 62px;
    }


    .benefit-card {
        padding: 25px;
    }


    .plan-card {
        padding: 28px;
    }

}


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

@media (max-width: 380px) {

    .ads-header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }


    .ads-logo {
        font-size: 17px;
    }


    .ads-dashboard-link {
        padding: 7px 9px;

        font-size: 10px;
    }


    .ads-hero {
        padding:
            38px 12px
            30px;
    }


    .ads-hero h1 {
        font-size: 31px;

        letter-spacing: -1px;
    }


    .ads-hero-actions {
        flex-direction: column;
    }


    .primary-button,
    .secondary-button {
        width: 100%;
    }


    .why-ads,
    .advertising-plans,
    .campaign-section,
    .how-it-works,
    .ads-information {
        padding-left: 12px;
        padding-right: 12px;
    }


    .campaign-card {
        padding: 15px;
    }


    .payment-summary > div {
        font-size: 11px;
    }


    .information-box {
        padding: 15px;

        gap: 10px;
    }

}


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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(
        37,
        99,
        235,
        .25
    );

    outline-offset: 2px;
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

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

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition: none !important;
    }

}