:root {
    --demo-navy: #071f3d;
    --demo-teal: #237D8B;
}

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

.demo-hero {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;

    width: 100%;
    max-width: none;
    margin: 0;

    padding: clamp(56px, 8vw, 110px)
        max(
            var(--gutter),
            calc((100% - var(--container-wide)) / 2 + var(--gutter))
        );

    background: radial-gradient(
        50% 70% at 92% 12%,
        rgba(92, 196, 214, 0.15),
        transparent 70%
    );
}

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

.demo-hero__intro {
    max-width: 620px;
}

.demo-hero__intro h1 {
    max-width: 12ch;
    margin: 0 0 22px;

    font-family: var(--font-display);
    font-size: clamp(2.7rem, 2rem + 2.5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;

    color: var(--ink);
}

.demo-hero__intro > p:not(.eyebrow) {
    max-width: 54ch;

    color: var(--slate);
    font-size: var(--fs-lead);
    line-height: 1.6;
}

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

.demo-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;

    margin-top: 30px;

    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.demo-hero__points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-hero__points i {
    display: grid;
    place-items: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: rgba(28, 184, 122, 0.14);
    color: #159A68;

    font-style: normal;
}

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

.demo-card {
    width: 100%;
    padding: clamp(26px, 4vw, 40px);

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

    background: var(--demo-navy);
    color: #ffffff;

    box-shadow: 0 28px 70px -34px rgba(7, 31, 61, 0.6);

    box-sizing: border-box;
}

/* =========================================================
   FORM CARD HEADER
========================================================= */

.demo-card__head .eyebrow {
    margin: 0 0 14px;

    color: #75D3E0;
}

.demo-card__head .eyebrow::before {
    background: #5CC4D6;
}

.demo-card__head h2 {
    margin: 0 0 8px;

    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.35rem + 1vw, 2.2rem);
    line-height: 1.1;

    color: #ffffff;
}

.demo-card__head > p:last-child {
    margin: 0 0 24px;

    color: #B9CADB;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* =========================================================
   CONTACT FORM 7 BASE
========================================================= */

.demo-hero > .wpcf7 {
    min-width: 0;
    width: 100%;
}

.demo-hero .wpcf7-form {
    width: 100%;
    margin: 0;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
}

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

.demo-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;

    width: 100%;
}

/* =========================================================
   LABELS
========================================================= */

.demo-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;

    width: 100%;
    margin: 0;

    color: #F3F8FD;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* =========================================================
   CF7 WRAPPERS
========================================================= */

.demo-form .wpcf7-form-control-wrap {
    display: block;

    width: 100%;
    margin: 0;
}

/* =========================================================
   INPUTS
========================================================= */

.demo-form input:not([type="submit"]),
.demo-form select,
.demo-form textarea {
    width: 100%;
    min-height: 46px;

    margin: 0;
    padding: 0 13px;

    border: 1px solid #9BB0C7;
    border-radius: 9px;

    background: #ffffff;
    color: #102A4B;

    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;

    box-sizing: border-box;

    outline: none;

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

/* =========================================================
   PLACEHOLDERS
========================================================= */

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: #65758A;
    opacity: 1;
}

/* =========================================================
   SELECT
========================================================= */

.demo-form select {
    cursor: pointer;

    padding-right: 36px;

    background-color: #ffffff;
    color: #102A4B;
}

/* =========================================================
   FOCUS STATE
========================================================= */

.demo-form input:not([type="submit"]):focus,
.demo-form select:focus,
.demo-form textarea:focus {
    border-color: #5CC4D6;

    outline: 3px solid rgba(92, 196, 214, 0.35);
    outline-offset: 1px;

    box-shadow: none;
}

/* Keyboard focus */

.demo-form input:not([type="submit"]):focus-visible,
.demo-form select:focus-visible,
.demo-form textarea:focus-visible {
    border-color: #5CC4D6;

    outline: 3px solid rgba(92, 196, 214, 0.45);
    outline-offset: 2px;
}

/* =========================================================
   CF7 INVALID FIELDS
========================================================= */

.demo-form .wpcf7-not-valid {
    border-color: #FF9F9F !important;
}

.demo-form .wpcf7-not-valid:focus {
    border-color: #FF9F9F !important;

    outline-color: rgba(255, 159, 159, 0.4);
}

/* Validation message */

.demo-form .wpcf7-not-valid-tip {
    display: block;

    margin-top: 5px;

    color: #FFC2C2;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

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

.demo-form .demo-form__submit {
    align-self: flex-start;

    width: auto;
    min-height: 48px;

    margin: 4px 0 0;
    padding: 12px 22px;

    border: 1px solid #ffffff;
    border-radius: 6px;

    background: #ffffff;
    color: var(--demo-navy);

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.demo-form .demo-form__submit:hover {
    background: #DDF5F7;
    border-color: #DDF5F7;

    color: var(--demo-navy);
}

.demo-form .demo-form__submit:focus {
    outline: none;
}

.demo-form .demo-form__submit:focus-visible {
    outline: 3px solid #75D3E0;
    outline-offset: 3px;
}

.demo-form .demo-form__submit:active {
    transform: translateY(1px);
}

/* CF7 disabled submit */

.demo-form .demo-form__submit:disabled {
    cursor: not-allowed;

    opacity: 0.65;
}

/* =========================================================
   FINE PRINT
========================================================= */

.demo-form__fineprint {
    margin: 0;

    color: #B9CADB;

    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   CF7 SPINNER
========================================================= */

.demo-card .wpcf7-spinner {
    margin: 0 0 0 10px;

    vertical-align: middle;

    background-color: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   CF7 RESPONSE MESSAGES
========================================================= */

.demo-hero .wpcf7-response-output {
    width: 100%;

    margin: 14px 0 0 !important;
    padding: 11px 13px !important;

    border: 0 !important;
    border-radius: 8px;

    box-sizing: border-box;

    font-size: 13px;
    line-height: 1.5;
}

/* Success */

.demo-hero form.sent .wpcf7-response-output {
    color: #146C43;

    background: rgba(28, 184, 122, 0.16);

    border: 1px solid rgba(28, 184, 122, 0.35) !important;
}

/* Validation / Error */

.demo-hero form.invalid .wpcf7-response-output,
.demo-hero form.failed .wpcf7-response-output,
.demo-hero form.unaccepted .wpcf7-response-output,
.demo-hero form.spam .wpcf7-response-output {
    color: #9B1C1C;

    background: rgba(220, 53, 69, 0.16);

    border: 1px solid rgba(255, 159, 159, 0.35) !important;
}

/* =========================================================
   AUTOFILL FIX
========================================================= */

.demo-form input:-webkit-autofill,
.demo-form input:-webkit-autofill:hover,
.demo-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #102A4B;

    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;

    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   REMOVE UNWANTED CF7 SPACING
========================================================= */

.demo-hero .wpcf7-form p {
    margin-top: 0;
}

.demo-hero .wpcf7-form br {
    display: none;
}

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

.demo-form input,
.demo-form select,
.demo-form textarea,
.demo-form button {
    font-family: inherit;
}

.demo-form select {
    appearance: auto;
    -webkit-appearance: auto;
}

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

@media (max-width: 900px) {

    .demo-hero {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .demo-hero__intro {
        max-width: 680px;
    }

    .demo-hero__intro h1 {
        max-width: 15ch;
    }

    .demo-card {
        width: min(100%, 620px);
    }
}

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

@media (max-width: 560px) {

    .demo-hero {
        min-height: auto;

        padding-block: 42px 64px;
    }

    .demo-hero__intro h1 {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
    }

    .demo-form__row {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .demo-card {
        width: 100%;

        padding: 24px 18px;

        border-radius: 18px;
    }

    .demo-form .demo-form__submit {
        width: 100%;
    }

    .demo-hero__points {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-card__head h2 {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }
}

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

@media (max-width: 380px) {

    .demo-card {
        padding: 22px 16px;
    }

    .demo-form input:not([type="submit"]),
    .demo-form select {
        min-height: 44px;

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