/* =====================================
   Shani Contact Page
   Inspired by the supplied clean layout
===================================== */

.contact-page {
    --contact-red: #ed2939;
    --contact-red-deep: #a90828;
    --contact-red-soft: rgba(237, 41, 57, 0.08);

    --contact-dark: #19191f;
    --contact-text: #565661;
    --contact-muted: #8d8d98;

    --contact-border: rgba(24, 24, 31, 0.10);
    --contact-surface: #ffffff;
    --contact-soft: #fafafa;

    margin: 0;

    color: var(--contact-dark);
    background: #fff;
}

.shani-contact *,
.shani-contact *::before,
.shani-contact *::after {
    box-sizing: border-box;
}

.shani-contact {
    width: 100%;
    overflow-x: clip;
    background: #fff;
}

.shani-contact__container {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}



/* =====================================
   Red page hero
===================================== */

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

.contact-hero {
    position: relative;

    min-height: 340px;
    padding: 130px 0 85px;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;

    color: #fff;

    background:
        radial-gradient(
            circle at 72% 35%,
            rgba(255, 255, 255, 0.19),
            transparent 31%
        ),
        linear-gradient(
            125deg,
            var(--contact-red-deep) 0%,
            #d81531 42%,
            #f43e48 100%
        );
}

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

    position: absolute;
    inset: 0;
    z-index: -2;

    opacity: 0.17;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1px
        );

    background-size: 58px 58px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 34%,
            transparent
        );
}

.contact-hero__content {
    position: relative;
    z-index: 3;

    text-align: center;
}

.contact-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.28em;

    opacity: 0.76;
}

.contact-hero__label::before,
.contact-hero__label::after {
    content: "";

    width: 24px;
    height: 1px;

    background: currentColor;

    opacity: 0.66;
}

.contact-hero h1 {
    margin: 0;

    color: #fff;

    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
}

.contact-hero p {
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
    line-height: 1.9;
}

.contact-hero__background {
    position: absolute;
    top: 53%;
    left: 50%;
    z-index: -1;

    transform: translate(-50%, -50%);

    color: transparent;

    font-size: clamp(90px, 15vw, 190px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
    white-space: nowrap;

    -webkit-text-stroke:
        1px rgba(30, 12, 15, 0.19);

    opacity: 0.73;

    pointer-events: none;
}

.contact-hero__ring {
    position: absolute;
    z-index: -1;

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

    border-radius: 50%;

    pointer-events: none;
}

.contact-hero__ring--one {
    top: -150px;
    right: 8%;

    width: 305px;
    aspect-ratio: 1;
}

.contact-hero__ring--two {
    bottom: -76px;
    left: 14%;

    width: 165px;
    aspect-ratio: 1;
}

.contact-hero__curve {
    position: absolute;
    right: -4%;
    bottom: -1px;
    left: -4%;
    z-index: 5;

    height: 38px;

    background: #fff;

    clip-path:
        ellipse(55% 100% at 50% 100%);
}


/* =====================================
   Main section
===================================== */

.shani-contact__section {
    position: relative;

    min-height: 790px;
    padding: 82px 0 118px;
padding-bottom: 200px;
    overflow: hidden;
    isolation: isolate;

    direction: rtl;

    background:
        radial-gradient(
            circle at 82% 16%,
            rgba(237, 41, 57, 0.035),
            transparent 19%
        ),
        #fff;
}


.shani-contact__background-word {
    position: absolute;
    right: -0.05em;
    bottom: -0.16em;
    z-index: -1;

    color: transparent;

    font-size: clamp(120px, 20vw, 300px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
    white-space: nowrap;

    -webkit-text-stroke:
        1px rgba(237, 41, 57, 0.04);

    pointer-events: none;
}

.shani-contact__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(470px, 0.92fr);

    gap: clamp(60px, 7vw, 110px);
    align-items: center;
}


/* =====================================
   Introduction
===================================== */

.shani-contact__intro {
    min-width: 0;
}

.shani-contact__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 29px;
    padding: 0 12px;

    border-radius: 999px;

    color: var(--contact-red);
    background: var(--contact-red-soft);

    font-size: 10px;
    font-weight: 850;
}

.shani-contact__badge svg {
    width: 13px;
    height: 13px;
}

.shani-contact__heading {
    margin-top: 24px;
}

.shani-contact__heading h1 {
    max-width: 650px;
    margin: 0;
    font-size: 30px;
    font-weight: 850;
    line-height: 40px;
    letter-spacing: -0.045em;
}

.shani-contact__heading h1 span,
.shani-contact__heading h1 strong {
    display: block;
}

.shani-contact__heading h1 span {
    color: var(--contact-red);
}

.shani-contact__heading h1 strong {
    color: var(--contact-dark);
    font-weight: 850;
}

.shani-contact__heading p {
    max-width: 610px;
    margin: 25px 0 0;

    color: var(--contact-text);

    font-size: 16px;
    line-height: 2;
}


/* =====================================
   Contact detail blocks
===================================== */

.shani-contact__details {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    max-width: 650px;
    margin: 52px 0 0;

    font-style: normal;
}

.shani-contact__detail {
    position: relative;

    display: grid;
    grid-template-columns:
        34px minmax(0, 1fr);

    gap: 13px;
    align-items: start;

    min-height: 116px;
    padding: 21px 20px;

    border:
        1px solid var(--contact-border);

    border-radius: 16px;

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

    box-shadow:
        0 10px 35px rgba(30, 18, 21, 0.035);

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

.shani-contact__detail:hover {
    border-color:
        rgba(237, 41, 57, 0.28);

    box-shadow:
        0 15px 40px rgba(30, 18, 21, 0.065);

    transform: translateY(-3px);
}

.shani-contact__detail-icon {
    display: grid;
    place-items: center;

    width: 32px;
    aspect-ratio: 1;

    color: var(--contact-red);
}

.shani-contact__detail-icon svg {
    width: 19px;
    height: 19px;
}

.shani-contact__detail h2 {
    margin: 0 0 8px;

    color: var(--contact-dark);

    font-size: 15px;
    font-weight: 850;
    line-height: 1.55;
}

.shani-contact__detail p,
.shani-contact__detail a,
.shani-contact__detail small {
    display: block;

    margin: 0;

    color: #656570;

    font-size: 13px;
    line-height: 1.85;

    text-decoration: none;
}

.shani-contact__detail a {
    width: fit-content;

    color: var(--contact-dark);
    font-weight: 700;

    transition: color 0.25s ease;
}

.shani-contact__detail a:hover,
.shani-contact__detail a:focus-visible {
    color: var(--contact-red);
}

.shani-contact__detail small {
    margin-top: 3px;

    color: var(--contact-muted);
    font-size: 11px;
}

.shani-contact__map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 25px;
    padding-bottom: 5px;

    border-bottom:
        1px solid rgba(237, 41, 57, 0.35);

    color: var(--contact-red);

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        gap 0.25s ease,
        border-color 0.25s ease;
}

.shani-contact__map-link:hover,
.shani-contact__map-link:focus-visible {
    gap: 15px;
    border-color: var(--contact-red);
}

.shani-contact__map-link i {
    font-size: 16px;
    font-style: normal;
}


/* =====================================
   Form card
===================================== */

.shani-contact__form-card {
    position: relative;

    min-width: 0;
    overflow: hidden;

    padding: 48px 38px 34px;

    border:
        1px solid rgba(237, 41, 57, 0.36);

    border-radius:
        22px 22px 22px 22px;

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

    box-shadow:
        0 24px 70px rgba(35, 17, 20, 0.10),
        0 3px 12px rgba(35, 17, 20, 0.035);
}

.shani-contact__form-accent {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 18px;

    background:
        linear-gradient(
            90deg,
            var(--contact-red-deep),
            var(--contact-red),
            #fa686f
        );
}

.shani-contact__form-accent::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;

    height: 16px;

    border-radius: 50% 50% 0 0 / 100% 100% 0 0;

    background: #fff;
}

.shani-contact__form-heading {
    margin-bottom: 28px;
    padding-top: 2px;
}

.shani-contact__form-heading > span {
    display: block;

    margin-bottom: 8px;

    color: var(--contact-red);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.20em;

    direction: ltr;
    text-align: left;
}

.shani-contact__form-heading h2 {
    margin: 0;

    color: var(--contact-dark);
display: none;
    font-size: clamp(24px, 2.25vw, 22px);
    font-weight: 850;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.shani-contact__form-heading p {
    margin: 7px 0 0;
display: none;
    color: var(--contact-muted);

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


/* =====================================
   Form
===================================== */

.shani-form__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px 14px;
}

.shani-form__field {
    display: block;
    min-width: 0;
}

.shani-form__field--full {
    grid-column: 1 / -1;
}

.shani-form__field > span:first-child {
    display: block;

    margin-bottom: 8px;

    color: var(--contact-dark);

    font-size: 12px;
    font-weight: 750;
}

.shani-form__field input,
.shani-form__field select,
.shani-form__field textarea {
    display: block;

    width: 100%;

    border:
        1px solid rgba(24, 24, 31, 0.10);

    border-radius: 9px;
    outline: none;

    color: var(--contact-dark);
    background: #fff;

    font: inherit;
    font-size: 12px;

    box-shadow:
        inset 0 1px 2px rgba(30, 18, 21, 0.025);

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

.shani-form__field input,
.shani-form__field select {
    height: 50px;
    padding: 0 14px;
}

.shani-form__field textarea {
    min-height: 152px;
    padding: 13px 14px;

    line-height: 1.9;

    resize: vertical;
}

.shani-form__field input::placeholder,
.shani-form__field textarea::placeholder {
    color: #b0b0b8;

    opacity: 1;
}

.shani-form__field input:focus,
.shani-form__field select:focus,
.shani-form__field textarea:focus {
    border-color:
        rgba(237, 41, 57, 0.58);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(237, 41, 57, 0.07);
}

.shani-form__select {
    position: relative;

    display: block;
}

.shani-form__select select {
    appearance: none;

    padding-left: 40px;

    cursor: pointer;
}

.shani-form__select svg {
    position: absolute;
    top: 50%;
    left: 14px;

    width: 16px;
    height: 16px;

    color: var(--contact-muted);

    transform: translateY(-50%);

    pointer-events: none;
}

.shani-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    width: 100%;
    height: 50px;

    margin-top: 25px;
    padding: 0 20px;

    border: 0;
    border-radius: 999px;

    color: #fff;

    background:
        linear-gradient(
            180deg,
            #f5525a,
            var(--contact-red) 50%,
            #ca0d2e
        );

    box-shadow:
        0 12px 26px rgba(237, 41, 57, 0.21),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);

    font: inherit;
    font-size: 12px;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.shani-form__submit:hover,
.shani-form__submit:focus-visible {
    box-shadow:
        0 15px 32px rgba(237, 41, 57, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);

    filter: saturate(1.08);

    transform: translateY(-2px);
}

.shani-form__submit i {
    font-size: 16px;
    font-style: normal;
    line-height: 1;

    transition: transform 0.25s ease;
}

.shani-form__submit:hover i {
    transform: translateX(-4px);
}

.shani-form__note {
    margin: 13px 0 0;

    color: var(--contact-muted);

    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.shani-form__status {
    margin: 14px 0 0;
    padding: 10px 12px;

    border:
        1px solid rgba(237, 41, 57, 0.15);

    border-radius: 9px;

    color: #7a2432;
    background:
        rgba(237, 41, 57, 0.05);

    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}


/* =====================================
   Medium screens
===================================== */

@media (max-width: 1050px) {

    .shani-contact__section {
        padding-top: 135px;
    }

    .shani-contact__layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(410px, 0.9fr);

        gap: 50px;
    }

    .shani-contact__heading h1 {
        font-size: 50px;
    }

    .shani-contact__details {
        gap: 12px;
    }

    .shani-contact__detail {
        min-height: 124px;
        padding: 18px 16px;
    }

    .shani-contact__form-card {
        padding-right: 28px;
        padding-left: 28px;
    }

}


/* =====================================
   Tablet
===================================== */

@media (max-width: 860px) {

    .shani-contact__section {
        padding: 125px 0 90px;
    }

    .shani-contact__layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .shani-contact__intro {
        max-width: 700px;
        margin-inline: auto;

        text-align: center;
    }

    .shani-contact__badge {
        margin-inline: auto;
    }

    .shani-contact__heading h1,
    .shani-contact__heading p {
        margin-right: auto;
        margin-left: auto;
    }

    .shani-contact__details {
        margin-right: auto;
        margin-left: auto;

        text-align: right;
    }

    .shani-contact__map-link {
        margin-right: auto;
        margin-left: auto;
    }

    .shani-contact__form-card {
        width: min(100%, 620px);
        margin-inline: auto;
    }

}


/* =====================================
   Mobile
===================================== */

@media (max-width: 620px) {

    .shani-contact__container {
        width: min(100% - 30px, 1240px);
    }

    .shani-contact__section {
        padding: 108px 0 72px;
    }

    .shani-contact__background-word {
        font-size: 105px;
    }

    .shani-contact__heading {
        margin-top: 19px;
    }

    .shani-contact__heading h1 {
        font-size: 38px;
        line-height: 1.32;
    }

    .shani-contact__heading p {
        margin-top: 18px;

        font-size: 14px;
    }

    .shani-contact__details {
        grid-template-columns: 1fr;

        margin-top: 37px;
    }

    .shani-contact__detail {
        min-height: auto;
    }

    .shani-contact__form-card {
        padding:
            44px 20px 27px;

        border-radius: 18px;
    }

    .shani-contact__form-heading h2 {
        font-size: 25px;
    }

    .shani-form__grid {
        grid-template-columns: 1fr;
    }

    .shani-form__field--full {
        grid-column: auto;
    }

}


/* =====================================
   Small mobile
===================================== */

@media (max-width: 390px) {

    .shani-contact__heading h1 {
        font-size: 34px;
    }

    .shani-contact__detail {
        grid-template-columns:
            30px minmax(0, 1fr);

        padding: 17px 14px;
    }

    .shani-contact__form-card {
        padding-right: 16px;
        padding-left: 16px;
    }

}



@media (max-width: 900px) {

    .contact-hero {
        min-height: 300px;
        padding-top: 115px;
        padding-bottom: 70px;
    }

}

@media (max-width: 620px) {

    .contact-container {
        width: min(100% - 32px, 1180px);
    }

    .contact-hero {
        min-height: 265px;
        padding-top: 105px;
        padding-bottom: 62px;
    }

    .contact-hero h1 {
        font-size: 38px;
    }

    .contact-hero__background {
        font-size: 84px;
        opacity: 0.52;
    }

    .contact-hero__curve {
        height: 24px;
    }

    .shani-contact__section {
        padding-top: 68px;
    }

}

@media (max-width: 420px) {

    .contact-hero {
        min-height: 245px;
    }

    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-hero p {
        font-size: 14px;
    }

    .contact-hero__background {
        font-size: 68px;
    }

}


/* =====================================
   Accessibility
===================================== */

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

    .shani-contact *,
    .shani-contact *::before,
    .shani-contact *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

}


/* Shani contact popup v1.0.11 */
.shani-popup-open {
    overflow: hidden;
}

.shani-form-popup[hidden] {
    display: none !important;
}

.shani-form-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.shani-form-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.shani-form-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 13, 13, .34);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
}

.shani-form-popup__card {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 28px 30px 31px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 26px;
    background: rgba(255, 252, 249, .93);
    box-shadow: 0 28px 90px rgba(28, 12, 12, .22);
    color: #171313;
    transform: translateY(14px) scale(.97);
    transition: transform .28s cubic-bezier(.22,1,.36,1);
    outline: none;
}

.shani-form-popup.is-visible .shani-form-popup__card {
    transform: translateY(0) scale(1);
}

.shani-form-popup__card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    inset: -92px auto auto -74px;
    border: 1px solid rgba(239, 51, 64, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(239, 51, 64, .035), 0 0 0 58px rgba(239, 51, 64, .02);
    pointer-events: none;
}

.shani-form-popup__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.shani-form-popup.is-success .shani-form-popup__icon {
    color: #fff;
    background: #12845b;
    box-shadow: 0 10px 26px rgba(18,132,91,.20);
}

.shani-form-popup.is-error .shani-form-popup__icon {
    color: #fff;
    background: #ef3340;
    box-shadow: 0 10px 26px rgba(239,51,64,.22);
}

.shani-form-popup__copy {
    min-width: 0;
    padding-left: 18px;
}

.shani-form-popup__copy strong {
    display: block;
    margin-bottom: 7px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.65;
}

.shani-form-popup__copy p {
    margin: 0;
    color: #665d5a;
    font-size: 14px;
    line-height: 1.95;
}

.shani-form-popup__close {
    position: absolute;
    top: 12px;
    left: 13px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8a817e;
    font: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.shani-form-popup__close:hover,
.shani-form-popup__close:focus-visible {
    background: rgba(0,0,0,.05);
    color: #171313;
    outline: none;
}

.shani-form-popup__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    transform-origin: right center;
}

.shani-form-popup.is-success .shani-form-popup__progress {
    background: #12845b;
}

.shani-form-popup.is-error .shani-form-popup__progress {
    background: #ef3340;
}

@keyframes shani-popup-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.shani-form input.is-invalid,
.shani-form textarea.is-invalid,
.shani-form select.is-invalid {
    border-color: #ef3340 !important;
    box-shadow: 0 0 0 3px rgba(239,51,64,.10) !important;
}

@media (max-width: 620px) {
    .shani-form-popup {
        padding: 18px;
    }

    .shani-form-popup__card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        padding: 25px 20px 28px;
        border-radius: 22px;
    }

    .shani-form-popup__icon {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .shani-form-popup__copy {
        padding-left: 22px;
    }

    .shani-form-popup__copy strong {
        font-size: 17px;
    }

    .shani-form-popup__copy p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shani-form-popup,
    .shani-form-popup__card {
        transition: none !important;
    }

    .shani-form-popup__progress {
        animation: none !important;
    }
}
