
/* =========================================
   RYTEHAND CONTACT PAGE
========================================= */

.rh-contact-page {
    --contact-primary: #2476a5;
    --contact-primary-dark: #174c70;
    --contact-heading: #173b56;
    --contact-text: #607487;
    --contact-light: #edf7fc;
    --contact-border: #e2edf4;

    overflow: hidden;
    background: #ffffff;
    color: var(--contact-heading);
}

.rh-contact-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}


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

.rh-contact-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 0 95px;
    background:
        radial-gradient(circle at 85% 20%, rgba(91,196,230,.18), transparent 32%),
        linear-gradient(120deg, #f1f9fd 0%, #ffffff 55%, #eaf6fc 100%);
}

.rh-contact-hero .rh-contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.rh-contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.rh-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    margin-bottom: 24px;
    border: 1px solid #d5eaf5;
    border-radius: 50px;
    background: rgba(255,255,255,.85);
    color: var(--contact-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.rh-contact-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5bc44e;
    box-shadow: 0 0 0 4px rgba(91,196,78,.13);
}

.rh-contact-hero h1 {
    margin: 0 0 22px;
    color: var(--contact-heading);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(40px, 5.3vw, 66px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

.rh-contact-hero h1 span {
    display: block;
    color: var(--contact-primary);
}

.rh-contact-hero-content > p {
    max-width: 610px;
    margin: 0;
    color: var(--contact-text);
    font-size: 16px;
    line-height: 1.9;
}


/* Hero illustration */

.rh-contact-hero-visual {
    position: relative;
    flex: 0 0 285px;
    width: 285px;
    height: 285px;
    display: grid;
    place-items: center;
}

.rh-contact-visual-orbit {
    position: absolute;
    border: 1px solid rgba(36,118,165,.18);
    border-radius: 50%;
}

.rh-contact-visual-orbit.orbit-one {
    inset: 10px;
    transform: rotate(-20deg) scaleY(.78);
}

.rh-contact-visual-orbit.orbit-two {
    inset: 32px -4px;
    transform: rotate(42deg) scaleY(.78);
}

.rh-contact-visual-center {
    position: relative;
    z-index: 1;
    display: grid;
    width: 165px;
    height: 165px;
    place-items: center;
    border: 1px solid rgba(36,118,165,.15);
    border-radius: 42px;
    background: linear-gradient(145deg, #ffffff, #dceffa);
    color: var(--contact-primary);
    box-shadow:
        0 25px 65px rgba(36,118,165,.14),
        inset 0 0 0 10px rgba(255,255,255,.45);
    transform: rotate(-7deg);
}

.rh-contact-visual-center svg {
    width: 82px;
    height: 82px;
    transform: rotate(7deg);
}

.rh-contact-visual-dot {
    position: absolute;
    z-index: 2;
    display: block;
    border-radius: 50%;
}

.rh-contact-visual-dot.visual-dot-one {
    top: 25px;
    right: 42px;
    width: 17px;
    height: 17px;
    background: #5bc44e;
}

.rh-contact-visual-dot.visual-dot-two {
    bottom: 37px;
    left: 18px;
    width: 13px;
    height: 13px;
    background: #f47b23;
}

.rh-contact-visual-dot.visual-dot-three {
    top: 95px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--contact-primary);
}

.rh-contact-hero-shape {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(36,118,165,.08);
    border-radius: 50%;
    pointer-events: none;
}

.rh-contact-shape-one {
    top: -270px;
    right: 10%;
    width: 460px;
    height: 460px;
}

.rh-contact-shape-two {
    bottom: -400px;
    left: -150px;
    width: 500px;
    height: 500px;
}


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

.rh-contact-main-section {
    padding: 100px 0 110px;
    background: #ffffff;
}

.rh-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 65px;
}


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

.rh-contact-information {
    padding-top: 12px;
}

.rh-contact-section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--contact-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.rh-contact-information h2 {
    margin: 0 0 17px;
    color: var(--contact-heading);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 3.3vw, 40px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
}

.rh-contact-information h2 span {
    display: block;
    color: var(--contact-primary);
}

.rh-contact-intro {
    max-width: 430px;
    margin: 0 0 32px;
    color: var(--contact-text);
    font-size: 14px;
    line-height: 1.85;
}

.rh-contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 19px 0;
    border-bottom: 1px solid var(--contact-border);
}

.rh-contact-info-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #dcecf5;
    border-radius: 13px;
    background: #edf7fc;
    color: var(--contact-primary);
}

.rh-contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.rh-contact-info-content {
    min-width: 0;
    padding-top: 3px;
}

.rh-contact-info-content > span {
    display: block;
    margin-bottom: 6px;
    color: #8a9aa8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.rh-contact-info-content > a {
    color: var(--contact-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .25s ease;
}

.rh-contact-info-content > a:hover {
    color: var(--contact-primary);
}

.rh-contact-info-content > p {
    margin: 0;
    color: var(--contact-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.rh-contact-business-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px 0;
}

.rh-contact-business-details > span {
    color: #8a9aa8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.rh-contact-business-details > strong {
    color: var(--contact-heading);
    font-size: 14px;
}

.rh-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 19px;
    margin-top: 10px;
    border: 1px solid #dcecf5;
    border-radius: 13px;
    background: #f3f9fd;
}

.rh-contact-note-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--contact-primary);
}

.rh-contact-note-icon svg {
    width: 100%;
    height: 100%;
}

.rh-contact-note p {
    margin: 0;
    color: var(--contact-text);
    font-size: 12px;
    line-height: 1.75;
}


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

.rh-contact-form-wrapper {
    min-width: 0;
    padding: 38px;
    border: 1px solid var(--contact-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(26,67,94,.075);
}

.rh-contact-form-heading {
    margin-bottom: 28px;
}

.rh-contact-form-heading h2 {
    margin: 0 0 10px;
    color: var(--contact-heading);
    font-family: 'Manrope', sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.7px;
}

.rh-contact-form-heading p {
    margin: 0;
    color: var(--contact-text);
    font-size: 13px;
    line-height: 1.7;
}


/* Form fields */

.rh-contact-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.rh-contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.rh-contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
}

.rh-contact-field label {
    color: var(--contact-heading);
    font-size: 12px;
    font-weight: 700;
}

.rh-contact-field label > span:not(.rh-contact-optional) {
    color: #e46c50;
}

.rh-contact-optional {
    color: #91a1ae;
    font-size: 11px;
    font-weight: 500;
}

.rh-contact-field input,
.rh-contact-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #dce7ef;
    border-radius: 9px;
    outline: none;
    background: #fbfdff;
    color: var(--contact-heading);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: none;
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.rh-contact-field input {
    min-height: 49px;
}

.rh-contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.rh-contact-field input::placeholder,
.rh-contact-field textarea::placeholder {
    color: #a0afbb;
    opacity: 1;
}

.rh-contact-field input:focus,
.rh-contact-field textarea:focus {
    border-color: var(--contact-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(36,118,165,.10);
}

.rh-contact-field input:focus-visible,
.rh-contact-field textarea:focus-visible {
    outline: none;
}


/* Submit button */

.rh-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--contact-primary);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.rh-contact-submit:hover {
    transform: translateY(-2px);
    background: var(--contact-primary-dark);
    box-shadow: 0 9px 22px rgba(36,118,165,.20);
}

.rh-contact-submit svg {
    width: 19px;
    height: 19px;
    transition: transform .25s ease;
}

.rh-contact-submit:hover svg {
    transform: translateX(4px);
}

.rh-contact-form-disclaimer {
    margin: -7px 0 0;
    color: #91a1ae;
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
}


/* =========================================
   FORM RESPONSE MESSAGES
========================================= */

.rh-contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    margin-bottom: 24px;
    border: 1px solid;
    border-radius: 11px;
}

.rh-contact-alert-icon {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.rh-contact-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.rh-contact-alert p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
}

.rh-contact-success {
    border-color: #b9e5c6;
    background: #f0fbf3;
    color: #23733d;
}

.rh-contact-success .rh-contact-alert-icon {
    background: #d7f3df;
}

.rh-contact-error {
    border-color: #f0c9c3;
    background: #fff6f4;
    color: #a74435;
}

.rh-contact-error .rh-contact-alert-icon {
    background: #fce2dd;
}


/* =========================================
   BOTTOM CTA
========================================= */

.rh-contact-bottom-cta {
    position: relative;
    overflow: hidden;
    padding: 85px 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(91,196,230,.2), transparent 35%),
        linear-gradient(120deg, #edf7fc, #f8fbfd);
}

.rh-contact-cta-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.rh-contact-cta-content > span {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--contact-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.rh-contact-cta-content h2 {
    margin: 0 0 16px;
    color: var(--contact-heading);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(29px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
}

.rh-contact-cta-content p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--contact-text);
    font-size: 14px;
    line-height: 1.8;
}

.rh-contact-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 23px;
    border-radius: 9px;
    background: var(--contact-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: .25s ease;
}

.rh-contact-cta-button:hover {
    gap: 17px;
    background: var(--contact-primary-dark);
    color: #ffffff;
}


/* =========================================
   RESPONSIVE: TABLET
========================================= */

@media (max-width: 1024px) {

    .rh-contact-hero {
        padding: 85px 0;
    }

    .rh-contact-hero-visual {
        flex-basis: 235px;
        width: 235px;
        height: 235px;
    }

    .rh-contact-visual-center {
        width: 140px;
        height: 140px;
    }

    .rh-contact-layout {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 35px;
    }

    .rh-contact-form-wrapper {
        padding: 30px;
    }

}


/* =========================================
   RESPONSIVE: SMALL TABLET
========================================= */

@media (max-width: 767px) {

    .rh-contact-container {
        width: min(100% - 36px, 620px);
    }

    .rh-contact-hero {
        padding: 70px 0 60px;
    }

    .rh-contact-hero .rh-contact-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }

    .rh-contact-hero h1 {
        font-size: clamp(38px, 8vw, 50px);
        letter-spacing: -1.5px;
    }

    .rh-contact-hero-content > p {
        font-size: 15px;
    }

    .rh-contact-hero-visual {
        align-self: center;
        flex-basis: auto;
        width: 190px;
        height: 190px;
    }

    .rh-contact-visual-center {
        width: 125px;
        height: 125px;
        border-radius: 32px;
    }

    .rh-contact-visual-center svg {
        width: 65px;
        height: 65px;
    }

    .rh-contact-main-section {
        padding: 70px 0 75px;
    }

    .rh-contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .rh-contact-information h2 {
        font-size: 34px;
    }

    .rh-contact-intro {
        max-width: 560px;
    }

    .rh-contact-form-wrapper {
        padding: 30px;
    }

    .rh-contact-bottom-cta {
        padding: 70px 0;
    }

}


/* =========================================
   RESPONSIVE: MOBILE
========================================= */

@media (max-width: 480px) {

    .rh-contact-container {
        width: calc(100% - 30px);
    }

    .rh-contact-hero {
        padding: 58px 0 48px;
    }

    .rh-contact-eyebrow {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .rh-contact-hero h1 {
        font-size: 36px;
        line-height: 1.17;
    }

    .rh-contact-hero-content > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .rh-contact-main-section {
        padding: 58px 0 65px;
    }

    .rh-contact-information h2 {
        font-size: 30px;
    }

    .rh-contact-form-wrapper {
        padding: 23px 19px;
        border-radius: 15px;
    }

    .rh-contact-form-heading h2 {
        font-size: 23px;
    }

    .rh-contact-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rh-contact-form {
        gap: 19px;
    }

    .rh-contact-field input {
        min-height: 47px;
    }

    .rh-contact-field textarea {
        min-height: 135px;
    }

    .rh-contact-submit {
        min-height: 51px;
    }

    .rh-contact-bottom-cta {
        padding: 60px 0;
    }

    .rh-contact-cta-content h2 {
        font-size: 29px;
    }

}