@import url("theme.1.css") layer(navigation);

@layer navigation {
    /* Keep the theme's global resets out of the original contact design. */
    #rt-content,
    #rt-content * {
        all: revert-layer;
    }

    #rt-content :is(h1, h2, h3, h4) {
        font-family: var(--font-heading, inherit) !important;
    }

    #rt-content h2 {
        color: var(--rt-heading-color, inherit) !important;
    }
}

:root {
    --rt-blue: var(--color-brand);
    --rt-blue-deep: var(--color-brand-deep);
    --rt-blue-light: var(--color-brand-light);
    --rt-yellow: var(--color-form-yellow);
    --rt-yellow-soft: var(--color-form-yellow-light);
    --rt-text: var(--color-form-text);
    --rt-muted: var(--color-form-muted);
    --rt-paper: var(--color-form-background);
    --rt-white: var(--color-white);
    --rt-line: rgba(70,70,70,.14);
    --rt-shadow: 0 22px 70px rgba(0, 54, 83, .16);
    --rt-radius-lg: 34px;
    --rt-radius-md: 22px;
    --rt-radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
    font-size: 100%;
    font-weight: normal;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rt-text);
    background: var(--rt-paper);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

:where(#rt-content) a {
    color: inherit;
    text-decoration: none;
}

.rt-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 126px 0 76px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .18), transparent 22%),
        radial-gradient(circle at 12% 88%, rgba(255, 197, 20, .15), transparent 18%),
        var(--rt-blue);
    color: var(--color-white);
    overflow: hidden;
}

.rt-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 190px;
    background: linear-gradient(to top, rgba(247, 247, 247, 1), rgba(247, 247, 247, 0));
    pointer-events: none;
}

.rt-grid {
    display: none;
}

.rt-shape {
    position: absolute;
    display: block;
    border-radius: 14px;
    background: rgba(255,255,255,.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
    animation: floatShape var(--duration, 10s) ease-in-out infinite;
}

.rt-shape.is-yellow { background: var(--rt-yellow); }
.rt-shape.s1 { width: 16px; height: 16px; left: 10%; top: 18%; --duration: 7s; }
.rt-shape.s2 { width: 66px; height: 66px; left: 7%; bottom: 15%; --duration: 11s; }
.rt-shape.s3 { width: 36px; height: 36px; left: 42%; top: 22%; --duration: 9s; }
.rt-shape.s4 { width: 21px; height: 21px; left: 67%; bottom: 23%; --duration: 8s; }
.rt-shape.s5 { width: 88px; height: 88px; right: 8%; top: 24%; --duration: 13s; }
.rt-shape.s6 { width: 48px; height: 48px; right: 18%; bottom: 16%; --duration: 9.5s; }
.rt-shape.s7 { width: 12px; height: 12px; right: 30%; top: 33%; --duration: 7.5s; }

@keyframes floatShape {
    0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
    45% { transform: translate3d(0,-24px,0) rotate(7deg); }
    70% { transform: translate3d(14px,10px,0) rotate(-4deg); }
}

.rt-hero-inner {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: clamp(44px, 7vw, 92px);
    align-items: center;
}

.rt-kicker {
    margin: 0 0 18px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    font-size: .9rem;
}

.rt-title {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2.8rem, 5.5vw, 5.1rem);
    line-height: 1.13;
    letter-spacing: -.045em;
    font-weight: 700;
}

.rt-title span {
    display: inline-block;
    color: var(--rt-yellow);
    font-style: italic;
    transform: rotate(-1deg);
    text-shadow: 0 18px 42px rgba(0, 60, 90, .16);
}

.rt-lead {
    max-width: 620px;
    margin: 30px 0 0;
    font-size: clamp(1.08rem, 1.5vw, 1.32rem);
    color: rgba(255,255,255,.92);
}

.rt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
    align-items: center;
}

.rt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: var(--color-white);
    color: var(--rt-text);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .82rem;
    box-shadow: 0 17px 35px rgba(0, 50, 72, .16);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.rt-button:hover,
.rt-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 25px 45px rgba(0, 50, 72, .22);
    background: var(--rt-yellow);
    outline: none;
}

.rt-button.is-ghost {
    background: rgba(255,255,255,.15);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,.36);
    box-shadow: none;
}

.rt-button.is-ghost:hover,
.rt-button.is-ghost:focus-visible {
    background: rgba(255,255,255,.25);
}

.rt-quick-card {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    border-radius: var(--rt-radius-lg);
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 30px 80px rgba(0, 68, 98, .2);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
}

.rt-quick-card::before {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    right: -22px;
    top: -22px;
    background: var(--rt-yellow);
    z-index: -1;
    animation: pulseSquare 4.6s ease-in-out infinite;
}

@keyframes pulseSquare {
    0%, 100% { transform: scale(.88); opacity: .9; }
    50% { transform: scale(1); opacity: 1; }
}

.rt-quick-card h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.13;
    letter-spacing: -.045em;
    font-weight: 600;
}

.rt-quick-card p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.88);
}

.rt-contact-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-contact-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
}

.rt-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    color: var(--rt-blue);
    font-weight: 900;
}

.rt-contact-list strong {
    display: block;
    line-height: 1.25;
}

.rt-contact-list small {
    display: block;
    color: rgba(255,255,255,.76);
}

.rt-scroll {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    width: 70px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--color-white);
    color: var(--rt-text);
    box-shadow: 0 20px 45px rgba(0,50,72,.18);
    transform: translateX(-50%);
}

.rt-scroll svg {
    width: 18px;
    animation: downPulse 1.7s ease-in-out infinite;
}

@keyframes downPulse {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(4px); }
}

.rt-main {
    position: relative;
    z-index: 5;
    padding: 88px 0 96px;
    background: var(--rt-paper);
}

.rt-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.rt-form-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(380px, 1.14fr);
    gap: clamp(38px, 6vw, 76px);
    align-items: start;
}

.rt-section-title {
    margin: 0 0 24px;
    font-size: clamp(2.1rem, 3.8vw, 3.45rem);
    line-height: 1.13;
    letter-spacing: -.045em;
    --rt-heading-color: var(--rt-blue);
    font-weight: 700;
}

.rt-section-title em {
    color: var(--rt-yellow);
    font-style: italic;
}

.rt-copy p {
    margin: 0 0 20px;
    font-size: 1.08rem;
}

.rt-note-box {
    position: relative;
    margin-top: 34px;
    padding: 28px 28px 26px 34px;
    background: var(--color-white);
    border-radius: 0 var(--rt-radius-md) var(--rt-radius-md) 0;
    box-shadow: 0 14px 45px rgba(0, 0, 0, .06);
}

.rt-note-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--rt-yellow);
}

.rt-note-box h3 {
    margin: 0 0 10px;
    color: var(--rt-blue);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 1.05rem;
}

.rt-note-box p {
    margin: 0;
    color: var(--rt-muted);
}

.rt-form-card {
    position: relative;
    scroll-margin-top: 20px;
    padding: clamp(24px, 4.3vw, 44px);
    border-radius: var(--rt-radius-lg);
    background: var(--color-white);
    box-shadow: var(--rt-shadow);
    overflow: hidden;
}

.rt-form-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--rt-yellow), var(--rt-yellow-soft), var(--rt-blue-light));
}

.rt-form-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    bottom: -70px;
    border-radius: 42px;
    background: color-mix(in srgb, var(--rt-blue) 12%, transparent);
    transform: rotate(8deg);
    pointer-events: none;
}

.rt-form-card h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.13;
    letter-spacing: -.045em;
    --rt-heading-color: var(--rt-text);
    font-weight: 600;
}

.rt-form-intro {
    margin: 0 0 26px;
    color: var(--rt-muted);
}

.rt-alert {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 700;
}

.rt-alert.is-success {
    background: #e8f6ed;
    border: 1px solid #a6d5b5;
    color: #205738;
}

.rt-alert.is-error {
    background: rgba(255, 197, 20, .22);
    border: 1px solid rgba(255, 197, 20, .68);
    color: #564000;
}

.rt-alert ul {
    margin: 0;
    padding-left: 18px;
}

.rt-form {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
}

.rt-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rt-field label,
.rt-check span:first-child {
    display: block;
    margin-bottom: 7px;
    font-weight: 900;
    color: var(--rt-text);
    font-size: .92rem;
}

.rt-field input,
.rt-field textarea {
    width: 100%;
    border: 1px solid rgba(70, 70, 70, .18);
    border-radius: 16px;
    background: #fbfbfb;
    color: var(--rt-text);
    font: inherit;
    padding: 14px 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rt-field textarea {
    min-height: 150px;
    resize: vertical;
}

.rt-field input:focus,
.rt-field textarea:focus {
    border-color: var(--rt-blue);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-blue) 12%, transparent);
    transform: translateY(-1px);
}

.rt-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: start;
    color: var(--rt-muted);
    font-size: .94rem;
}

.rt-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--rt-blue);
    margin-top: 3px;
}

.rt-check strong {
    color: var(--rt-text);
}

.rt-check a {
    color: var(--rt-blue-deep);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rt-spam-row {
    display: grid;
    grid-template-columns: minmax(170px, .75fr) 1fr;
    gap: 18px;
    align-items: end;
}

.rt-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
}

.rt-submit {
    min-height: 58px;
    padding-inline: 30px;
    background: var(--rt-blue);
    color: var(--color-white);
}

.rt-submit:hover,
.rt-submit:focus-visible {
    background: var(--rt-yellow);
    color: var(--rt-text);
}

.rt-mini {
    color: var(--rt-muted);
    font-size: .9rem;
    max-width: 320px;
}

.rt-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rt-process {
    padding: 0 0 106px;
    background: var(--rt-paper);
}

.rt-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rt-step {
    position: relative;
    min-height: 228px;
    padding: 30px;
    border-radius: 28px;
    background: var(--color-white);
    box-shadow: 0 15px 45px rgba(0,0,0,.055);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.rt-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(0, 70, 100, .1);
}

.rt-step::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    right: 24px;
    top: 24px;
    background: color-mix(in srgb, var(--rt-blue) 16%, transparent);
}

.rt-step:nth-child(2)::before { background: rgba(255, 197, 20, .75); }
.rt-step:nth-child(3)::before { background: rgba(113, 192, 223, .55); }

.rt-step small {
    display: block;
    margin-bottom: 26px;
    color: var(--rt-blue);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rt-step h3 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.rt-step p {
    margin: 0;
    color: var(--rt-muted);
}

.rt-footer-cta {
    position: relative;
    background: var(--rt-blue);
    color: var(--color-white);
    padding: 76px 0;
    overflow: hidden;
}

.rt-footer-cta::before,
.rt-footer-cta::after {
    content: "";
    position: absolute;
    border-radius: 28px;
    background: rgba(255,255,255,.28);
    animation: floatShape 10s ease-in-out infinite;
}

.rt-footer-cta::before {
    width: 82px;
    height: 82px;
    left: 8%;
    bottom: 18%;
}

.rt-footer-cta::after {
    width: 18px;
    height: 18px;
    right: 18%;
    top: 22%;
    background: var(--rt-yellow);
}

.rt-footer-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.rt-footer-inner h2 {
    margin: 0;
    font-size: clamp(2.1rem, 3.8vw, 3.45rem);
    line-height: 1.13;
    letter-spacing: -.045em;
    font-weight: 700;
}

.rt-footer-inner p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.84);
    max-width: 570px;
}

.rt-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

.rt-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .rt-hero-inner,
    .rt-form-grid {
        grid-template-columns: 1fr;
    }

    .rt-quick-card {
        max-width: 620px;
    }

    .rt-form-grid {
        gap: 34px;
    }

    .rt-steps {
        grid-template-columns: 1fr;
    }

    .rt-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .rt-hero {
        min-height: auto;
        padding-top: 72px;
    }

    .rt-hero-inner,
    .rt-section,
    .rt-footer-inner {
        width: min(100% - 32px, 720px);
    }

    .rt-title {
        font-size: clamp(2.6rem, 7.7vw, 4rem);
    }

    .rt-field-row,
    .rt-spam-row {
        grid-template-columns: 1fr;
    }

    .rt-form-card {
        border-radius: 24px;
    }

    .rt-main {
        padding-top: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
