/* =========================================================
   HB GROUP
   CONTACT PAGE
========================================================= */

.contact-page {
    background: #fff;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 82px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(38, 140, 255, .035), transparent 35%),
        #07090c;
}

.contact-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
    pointer-events: none;
}

.contact-hero__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(35px);
    pointer-events: none;
}

.contact-hero__glow--blue {
    left: -290px;
    top: -230px;
    background: radial-gradient(circle, rgba(38, 140, 255, .20), transparent 68%);
}

.contact-hero__glow--red {
    right: -300px;
    bottom: -360px;
    background: radial-gradient(circle, rgba(255, 56, 56, .11), transparent 68%);
}

.contact-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 70px;
    align-items: end;
}

.contact-hero__copy {
    max-width: 780px;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--hb-blue-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-kicker span {
    width: 30px;
    height: 1px;
    background: var(--hb-blue);
}

.contact-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 5.2vw, 78px);
    font-weight: 880;
    line-height: .98;
    letter-spacing: -.055em;
}

.contact-hero__copy p {
    max-width: 650px;
    margin: 23px 0 0;
    color: #9aa5b3;
    font-size: 14px;
    line-height: 1.8;
}

.contact-hero__quick {
    width: 340px;
    display: grid;
    gap: 9px;
}

.contact-hero__quick a {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
    transition: background .25s ease, border-color .25s ease;
}

.contact-hero__quick a:hover {
    background: rgba(38, 140, 255, .08);
    border-color: rgba(85, 168, 255, .24);
}

.contact-hero__quick small {
    color: #768294;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-hero__quick strong {
    margin-top: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.contact-hero__quick span {
    grid-column: 2;
    grid-row: 1 / 3;
    color: var(--hb-blue-light);
    font-size: 18px;
}


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

.contact-main {
    padding: 92px 0 100px;
    background: #f4f6f8;
    border-bottom: 1px solid #e5e9ed;
}

.contact-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 34px;
    align-items: start;
}

.contact-form-wrap {
    padding: 43px;
    border: 1px solid #dfe4e9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(12, 20, 30, .055);
}

.contact-form-head {
    max-width: 680px;
    margin-bottom: 30px;
}

.contact-form-head__eyebrow,
.contact-aside__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--hb-blue-dark);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.contact-form-head h2 {
    margin: 0;
    color: #101720;
    font-size: clamp(31px, 3.4vw, 45px);
    font-weight: 870;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.contact-form-head p {
    max-width: 620px;
    margin: 14px 0 0;
    color: #6f7a88;
    font-size: 12px;
    line-height: 1.75;
}

.contact-alert {
    margin-bottom: 24px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 56, 56, .18);
    border-left: 3px solid var(--hb-red);
    border-radius: 7px;
    background: #fff5f5;
    color: #6e2929;
    font-size: 11px;
    line-height: 1.6;
}

.contact-alert strong {
    display: block;
    margin-bottom: 6px;
    color: #9e2525;
    font-size: 12px;
}

.contact-alert ul {
    margin: 0;
    padding-left: 18px;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: #26313d;
    font-size: 10px;
    font-weight: 800;
}

.contact-field label span {
    color: var(--hb-blue);
}

.contact-field label small {
    margin-left: auto;
    color: #9aa4af;
    font-size: 8px;
    font-weight: 650;
    text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border: 1px solid #d8dee5;
    border-radius: 7px;
    outline: 0;
    background: #fbfcfd;
    color: #17212b;
    font-size: 12px;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.contact-field input,
.contact-field select {
    height: 50px;
    padding: 0 14px;
}

.contact-field textarea {
    min-height: 160px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.65;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: rgba(38, 140, 255, .56);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(38, 140, 255, .08);
}

.contact-field textarea::placeholder {
    color: #9aa4af;
}

.contact-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 22px;
    color: #6e7986;
    font-size: 10px;
    line-height: 1.6;
}

.contact-consent input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--hb-blue);
}

.contact-consent a {
    color: var(--hb-blue-dark);
    font-weight: 750;
}

.contact-submit {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.contact-submit__button {
    min-width: 175px;
}

.contact-submit__button svg {
    width: 16px;
    height: 16px;
    margin-left: 9px;
}

.contact-submit p {
    max-width: 360px;
    margin: 0;
    color: #929ca8;
    font-size: 9px;
    line-height: 1.55;
}

.contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   SUCCESS
========================================================= */

.contact-success {
    min-height: 430px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-content: center;
    padding: 25px 10px;
}

.contact-success__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(54, 227, 151, .12);
    color: #188a58;
    font-size: 22px;
    font-weight: 900;
}

.contact-success > div > span {
    display: block;
    margin-bottom: 8px;
    color: #188a58;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-success h2 {
    margin: 0;
    color: #111821;
    font-size: clamp(30px, 3.5vw, 45px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.contact-success p {
    max-width: 600px;
    margin: 15px 0 0;
    color: #687482;
    font-size: 12px;
    line-height: 1.72;
}

.contact-success__note {
    padding: 12px 14px;
    border-left: 2px solid var(--hb-blue);
    background: #f5f9fd;
}

.contact-success__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
}

.contact-success__actions > a:last-child {
    color: #202b36;
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   ASIDE
========================================================= */

.contact-aside {
    display: grid;
    gap: 13px;
}

.contact-aside__card {
    padding: 28px;
    border: 1px solid #dfe4e9;
    border-radius: 11px;
    background: #fff;
}

.contact-aside__card--dark {
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(38, 140, 255, .16), transparent 35%),
        #0b0d11;
    border-color: rgba(255, 255, 255, .06);
}

.contact-aside__card--dark .contact-aside__eyebrow {
    color: var(--hb-blue-light);
}

.contact-aside h2,
.contact-aside h3 {
    margin: 0;
    font-weight: 850;
    letter-spacing: -.03em;
}

.contact-aside h2 {
    color: #fff;
    font-size: 28px;
}

.contact-aside h3 {
    color: #141c25;
    font-size: 21px;
}

.contact-aside__card p {
    margin: 12px 0 0;
    color: #727d8a;
    font-size: 11px;
    line-height: 1.72;
}

.contact-aside__card--dark p {
    color: #8e99a7;
}

.contact-aside__phone {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    margin-top: 23px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.contact-aside__phone small {
    color: #788494;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-aside__phone strong {
    margin-top: 3px;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
}

.contact-aside__phone span {
    grid-column: 2;
    grid-row: 1 / 3;
    color: var(--hb-blue-light);
    font-size: 18px;
}

.contact-aside__email {
    display: block;
    margin-top: 16px;
    color: var(--hb-blue-light);
    font-size: 11px;
    font-weight: 700;
}

.contact-aside__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #17212b;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contact-aside__link span {
    color: var(--hb-blue);
    font-size: 15px;
}

.contact-aside__card--emergency {
    border-color: rgba(255, 56, 56, .17);
    background: linear-gradient(145deg, #fff, #fff8f8);
}

.contact-aside__card--emergency .contact-aside__eyebrow {
    color: var(--hb-red-dark);
}


/* =========================================================
   PROCESS
========================================================= */

.contact-process {
    padding: 80px 0;
    color: #fff;
    background: #080a0d;
}

.contact-process__head {
    max-width: 700px;
    margin-bottom: 36px;
}

.contact-process__head > span {
    display: block;
    margin-bottom: 10px;
    color: var(--hb-blue-light);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.contact-process__head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3.6vw, 48px);
    font-weight: 860;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.contact-process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.contact-process__steps article {
    min-height: 195px;
    padding: 25px 27px;
    border-right: 1px solid rgba(255, 255, 255, .09);
}

.contact-process__steps article:first-child {
    border-left: 1px solid rgba(255, 255, 255, .09);
}

.contact-process__steps article > span {
    display: block;
    margin-bottom: 35px;
    color: var(--hb-blue-light);
    font-size: 9px;
    font-weight: 850;
}

.contact-process__steps h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 820;
}

.contact-process__steps p {
    margin: 0;
    color: #7c8797;
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .contact-main__grid {
        grid-template-columns: 1fr;
    }

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

    .contact-aside__card {
        min-width: 0;
    }
}


@media (max-width: 760px) {

    .contact-hero {
        padding: 55px 0 52px;
    }

    .contact-hero__inner {
        grid-template-columns: 1fr;
        gap: 29px;
    }

    .contact-hero h1 {
        font-size: clamp(39px, 12vw, 54px);
    }

    .contact-hero__copy p {
        margin-top: 16px;
        font-size: 11px;
        line-height: 1.7;
    }

    .contact-hero__quick {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .contact-hero__quick a {
        min-width: 0;
        padding: 14px;
    }

    .contact-hero__quick strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
    }

    .contact-main {
        padding: 50px 0 56px;
    }

    .contact-form-wrap {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .contact-form-head {
        margin-bottom: 24px;
    }

    .contact-form-head h2 {
        font-size: 31px;
    }

    .contact-form-head p {
        font-size: 10px;
        line-height: 1.65;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-field--full {
        grid-column: auto;
    }

    .contact-field input,
    .contact-field select {
        height: 48px;
    }

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

    .contact-submit {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .contact-submit__button {
        width: 100%;
    }

    .contact-submit p {
        text-align: center;
    }

    .contact-aside {
        width: calc(100% + 18px);
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 1px 18px 8px 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .contact-aside::-webkit-scrollbar {
        display: none;
    }

    .contact-aside__card {
        min-width: min(78vw, 300px);
        flex: 0 0 min(78vw, 300px);
        padding: 23px;
        scroll-snap-align: start;
    }

    .contact-process {
        padding: 54px 0;
    }

    .contact-process__head {
        margin-bottom: 23px;
    }

    .contact-process__steps {
        display: block;
        border-bottom: 0;
    }

    .contact-process__steps article,
    .contact-process__steps article:first-child {
        min-height: 0;
        display: grid;
        grid-template-columns: 35px 1fr;
        gap: 13px;
        padding: 19px 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .contact-process__steps article > span {
        margin: 4px 0 0;
    }

    .contact-process__steps h3,
    .contact-process__steps p {
        grid-column: 2;
    }

    .contact-process__steps h3 {
        margin-top: -19px;
    }

    .contact-success {
        min-height: 360px;
        grid-template-columns: 1fr;
    }

    .contact-success__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-success__actions .btn {
        width: 100%;
    }
}


@media (max-width: 440px) {

    .contact-hero__quick {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   OPTIONAL FORM / PRIVACY NOTE
========================================================= */

.contact-privacy-note {
    margin-top: 21px;
    color: #75808e;
    font-size: 10px;
    line-height: 1.65;
}

.contact-privacy-note a {
    color: var(--hb-blue-dark);
    font-weight: 800;
}

.contact-field label small {
    margin-left: auto;
    color: #9aa4af;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}


/* =========================================================
   CONTACT SUBMIT / SUCCESS ANIMATION
========================================================= */

.contact-submit__button {
    position: relative;
    overflow: hidden;
}

.contact-submit__button.is-sending {
    pointer-events: none;
    opacity: .9;
}

.contact-submit__button.is-sending .contact-submit__button-text {
    opacity: .7;
}

.contact-submit__button.is-sending::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contactButtonSpin .7s linear infinite;
}

@keyframes contactButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

.contact-success {
    position: relative;
    overflow: hidden;
}

.contact-success::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -140px;
    top: -140px;
    border: 1px solid rgba(38, 140, 255, .10);
    border-radius: 50%;
}

.contact-success__icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(54, 227, 151, .12);
    color: #188a58;
    font-size: 22px;
    font-weight: 900;
    transform-origin: center;
}

.contact-success__icon::before,
.contact-success__icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(54, 227, 151, .2);
    border-radius: 50%;
    opacity: 0;
}

.js .contact-success {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
}

.js .contact-success.is-animated-in {
    animation: contactSuccessIn .7s cubic-bezier(.2, .75, .2, 1) forwards;
}

.js .contact-success.is-animated-in .contact-success__icon {
    animation: contactSuccessTick .62s .18s cubic-bezier(.2, .9, .25, 1.2) both;
}

.js .contact-success.is-animated-in .contact-success__icon::before {
    animation: contactSuccessRing 1s .22s ease-out both;
}

.js .contact-success.is-animated-in .contact-success__icon::after {
    animation: contactSuccessRing 1s .42s ease-out both;
}

@keyframes contactSuccessIn {
    from {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes contactSuccessTick {
    0% {
        transform: scale(.45) rotate(-12deg);
        opacity: 0;
    }
    65% {
        transform: scale(1.14) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes contactSuccessRing {
    0% {
        transform: scale(.72);
        opacity: .7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

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

    .contact-submit__button.is-sending::after,
    .js .contact-success.is-animated-in,
    .js .contact-success.is-animated-in .contact-success__icon,
    .js .contact-success.is-animated-in .contact-success__icon::before,
    .js .contact-success.is-animated-in .contact-success__icon::after {
        animation: none !important;
    }

    .js .contact-success {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   CONTACT PHOTO UPLOAD
========================================================= */

.contact-photo-field {
    margin-top: 2px;
}

.contact-photo-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 10px;
}

.contact-photo-heading > div {
    min-width: 0;
}

.contact-photo-heading label {
    display: block;
    margin: 0;
    color: #26313d;
    font-size: 10px;
    font-weight: 800;
}

.contact-photo-heading p {
    max-width: 690px;
    margin: 6px 0 0;
    color: #7e8996;
    font-size: 10px;
    line-height: 1.65;
}

.contact-photo-heading > small {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #9aa4af;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.contact-photo-upload {
    min-width: 0;
}

.contact-photo-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.contact-photo-dropzone {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 18px !important;
    min-height: 142px;
    margin: 0 !important;
    padding: 24px !important;
    border: 1.5px dashed #cbd3dc;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.contact-photo-dropzone:hover,
.contact-photo-dropzone.is-dragover {
    border-color: rgba(38, 140, 255, .62);
    background: #f4f9ff;
    box-shadow: 0 0 0 4px rgba(38, 140, 255, .06);
}

.contact-photo-dropzone.is-dragover {
    transform: translateY(-1px);
}

.contact-photo-dropzone__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0b0d11;
    color: var(--hb-blue-light);
}

.contact-photo-dropzone__icon svg {
    width: 25px;
    height: 25px;
}

.contact-photo-dropzone__copy {
    display: block;
    min-width: 0;
}

.contact-photo-dropzone__copy strong {
    display: block;
    color: #141c25;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.contact-photo-dropzone__copy > span {
    display: block;
    margin-top: 6px;
    color: #8a96a4;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.55;
}

.contact-photo-dropzone__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d6dde5;
    border-radius: 6px;
    background: #fff;
    color: #202b36 !important;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.contact-photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.contact-photo-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef1f4;
    color: #758191;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .02em;
}

.contact-photo-status {
    display: none;
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
}

.contact-photo-status.is-visible {
    display: block;
}

.contact-photo-status.is-info {
    background: #edf6ff;
    color: #126bd1;
}

.contact-photo-status.is-error {
    background: #fff2f2;
    color: #a42929;
}

.contact-photo-previews {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.contact-photo-preview {
    position: relative;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border: 1px solid #dde3e9;
    border-radius: 8px;
    background: #eef1f4;
}

.contact-photo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-photo-preview__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 10, 13, .88);
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.contact-photo-preview__remove:hover {
    background: #000;
}

.contact-photo-preview__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding: 22px 7px 7px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .76));
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 760px) {

    .contact-photo-heading {
        gap: 14px;
    }

    .contact-photo-dropzone {
        grid-template-columns: auto minmax(0, 1fr) !important;
        min-height: 126px;
        padding: 18px !important;
    }

    .contact-photo-dropzone__icon {
        width: 50px;
        height: 50px;
    }

    .contact-photo-dropzone__action {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 2px;
    }

    .contact-photo-previews {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {

    .contact-photo-dropzone {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .contact-photo-dropzone__icon {
        margin: 0 auto;
    }

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