/* ==========================================================
   DIGBANG — CONTACT PAGE
========================================================== */

.db-contact-page {
    width: 100%;
    direction: rtl;
}
/* ==========================================================
   CONTACT — HERO
========================================================== */

.db-contact-hero {
    position: relative;

    width: calc(100% - 120px);
    max-width: 1320px;
    height: 590px;

    margin: 32px auto 0;

    overflow: hidden;

    border-radius: 24px;

    direction: rtl;
    box-sizing: border-box;
}

.db-contact-hero,
.db-contact-hero * {
    box-sizing: border-box;
}

.db-contact-hero__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;
}

.db-contact-hero__content {
    position: absolute;

    top: 201px;
    right: 72px;
    z-index: 2;

    text-align: right;
}

.db-contact-hero__title {
    margin: 0;

    color: #3D3631;

    font-family: "Vazirmatn", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.35;

    text-align: right;
}

.db-contact-hero__description {
    margin: 26px 0 0;

    color: #3D3631;

    font-family: "Vazirmatn", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.65;

    text-align: right;
}

/* Tablet */

@media (max-width: 1399px) {

    .db-contact-hero {
        width: calc(100% - 64px);
    }
}

/* ==========================================================
   CONTACT HERO — MOBILE
========================================================== */

@media (max-width: 767px) {

    .db-contact-hero {
        width: calc(100% - 32px);
        max-width: none;

        height: auto;
        aspect-ratio: 1320 / 590;

        margin: 20px auto 0;

        border-radius: 16px;
    }

    .db-contact-hero__image {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;

        border-radius: inherit;
    }

    .db-contact-hero__content {
        top: 34%;
        right: 5.45%;
        bottom: auto;
        left: auto;

        width: 38%;

        text-align: right;
    }

    .db-contact-hero__title {
        font-size: 16px;
        line-height: 1.35;
    }

    .db-contact-hero__description {
        margin-top: 7px;

        font-size: 8px;
        line-height: 1.65;
    }

}

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

.db-contact-info {
    width: calc(100% - 120px);
    max-width: 1320px;

    margin: 88px auto 0;

    direction: rtl;
    box-sizing: border-box;
}

.db-contact-info,
.db-contact-info * {
    box-sizing: border-box;
}

.db-contact-info__items {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 44px;

    width: 100%;
}

.db-contact-info__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    text-align: center;
}

.db-contact-info__heading {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.db-contact-info__icon {
    display: block;
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    object-fit: contain;
}

.db-contact-info__title {
    margin: 0;
    padding: 0;

    color: #665A51;

    font-family: "Vazirmatn", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;

    text-align: center;
}

.db-contact-info__value {
    margin: 32px 0 0;
    padding: 0;

    color: #3D3631;

    font-family: "Vazirmatn", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;

    text-align: center;
    text-decoration: none;
}

a.db-contact-info__value:hover,
a.db-contact-info__value:focus-visible {
    color: #CC5200;
}

/* Tablet */

@media (max-width: 1023px) {

    .db-contact-info {
        width: calc(100% - 64px);
    }

    .db-contact-info__items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 48px 32px;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .db-contact-info {
        width: calc(100% - 32px);

        margin-top: 56px;
    }

 .db-contact-info__items {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 32px 16px;
}

    .db-contact-info__value {
        margin-top: 20px;
    }
    
    .db-contact-info__icon {
    width: 30px;
    height: 30px;

    flex-basis: 30px;
}

.db-contact-info__title {
    font-size: 16px;
}

.db-contact-info__value {
    margin-top: 12px;

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

}

/* ==========================================================
   CONTACT — FORM AND MAP
========================================================== */

.db-contact-form-map {
    width: 100%;
    min-height: 701px;

    margin-top: 88px;
    padding: 56px 60px;

    background: #FDF6F6;

    direction: rtl;
    box-sizing: border-box;
}

.db-contact-form-map,
.db-contact-form-map * {
    box-sizing: border-box;
}

.db-contact-form-map__inner {
    display: grid;
    grid-template-columns: 672px 578px;
    column-gap: 70px;

    width: 1320px;
    margin-inline: auto;
}

.db-contact-form-map__form-column,
.db-contact-form-map__map-column {
    min-width: 0;
}

.db-contact-form-map__title {
    margin: 0 0 56px;
    padding: 0;

    color: #8E7D71;

    font-family: "Vazirmatn", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;

    text-align: right;
}

/* فرم */

.db-contact-form {
    display: flex;
    flex-direction: column;

    width: 672px;
}
.db-contact-form input.db-contact-form__field,
.db-contact-form textarea.db-contact-form__field {
    display: block;

    width: 672px;

    margin: 0 0 25.36px;
    padding-inline: 20px;

    color: #3D3631 !important;
    background: #FFFFFF !important;

    border: 1.58px solid #FFE0CC !important;
    border-radius: 12.68px !important;

    box-shadow: none !important;
    outline: none !important;

    font-family: "Vazirmatn", sans-serif !important;
    font-size: 19.02px !important;
    font-weight: 400 !important;

    text-align: right !important;
    direction: rtl !important;

    appearance: none;
}

.db-contact-form input.db-contact-form__field {
    height: 57.06px;
    padding-block: 0;

    line-height: normal !important;
}

.db-contact-form textarea.db-contact-form__field {
    height: 190.19px;
    margin-bottom: 0;
    padding-block: 16px;

    line-height: 1.8 !important;

    resize: none !important;
}

.db-contact-form input.db-contact-form__field::placeholder,
.db-contact-form textarea.db-contact-form__field::placeholder {
    color: #8E7D71 !important;
    opacity: 1 !important;

    font-family: "Vazirmatn", sans-serif !important;
    font-size: 19.02px !important;
    font-weight: 400 !important;

    text-align: right !important;
    direction: rtl !important;
}

.db-contact-form input.db-contact-form__field:focus,
.db-contact-form textarea.db-contact-form__field:focus {
    border-color: #FFE0CC !important;
    box-shadow: none !important;
    outline: none !important;
}

.db-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;

    width: 144px;
    height: 40px;

    margin-top: 24px;
    padding: 0;

    color: #FFFFFF;
    background: #FF6600;

    border: 0;
    border-radius: 5.23px;

    font-family: "Vazirmatn", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

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

.db-contact-form__submit:hover {
    background: #CC5200;
    transform: translateY(-1px);
}

.db-contact-form__submit:focus-visible {
    outline: 3px solid rgba(255, 102, 0, 0.28);
    outline-offset: 4px;
}

.db-contact-form__honeypot {
    position: absolute !important;

    width: 1px;
    height: 1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.db-contact-form__notice {
    width: 672px;

    margin: -32px 0 24px;
    padding: 12px 16px;

    border-radius: 10px;

    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.db-contact-form__notice--success {
    color: #246B3B;
    background: #EAF7ED;
}

.db-contact-form__notice--error {
    color: #9B2C2C;
    background: #FFF0F0;
}

/* نقشه */

.db-contact-map {
    width: 578px;
    height: 485px;

    overflow: hidden;

    background: #FFFFFF;

    border: 2px solid #FFE0CC;
    border-radius: 24px;
}

.db-contact-map__iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.db-contact-map__missing {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 32px;

    color: #8E7D71;

    font-family: "Vazirmatn", sans-serif;
    font-size: 16px;

    text-align: center;
}

/* Tablet */

@media (max-width: 1399px) {

    .db-contact-form-map {
        padding-inline: 32px;
    }

    .db-contact-form-map__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

        width: 100%;

        column-gap: 40px;
    }

    .db-contact-form,
    .db-contact-form input.db-contact-form__field,
    .db-contact-form textarea.db-contact-form__field,
    .db-contact-form__notice,
    .db-contact-map {
        width: 100%;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .db-contact-form-map {
        min-height: auto;

        margin-top: 56px;
        padding: 40px 16px;
    }

    .db-contact-form-map__map-column {
    display: none !important;
}

    .db-contact-form-map__inner {
    display: block;

    width: 100%;
}

    .db-contact-form-map__title {
        margin-bottom: 32px;

        font-size: 26px;
    }

    .db-contact-form input.db-contact-form__field {
        height: 52px;
        margin-bottom: 18px;

        font-size: 16px !important;
    }

    .db-contact-form textarea.db-contact-form__field {
        height: 170px;

        font-size: 16px !important;
    }

    .db-contact-form input.db-contact-form__field::placeholder,
    .db-contact-form textarea.db-contact-form__field::placeholder {
        font-size: 16px !important;
    }

    .db-contact-form__submit {
        width: 140px;
        height: 42px;

        font-size: 16px;
    }

    .db-contact-map {
        height: 360px;

        border-radius: 16px;
    }
}

/* ==========================================================
   CONTACT — SOCIAL NETWORKS
========================================================== */

.db-contact-social {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: calc(100% - 120px);
    max-width: 1320px;
    height: 112px;

    margin: 88px auto 0;

    direction: rtl;
}

.db-contact-social__heading {
    display: flex;
    align-items: center;
}

.db-contact-social__title {
    margin: 0;

    color: #8E7D71;

    font-family: "Vazirmatn", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;

    white-space: nowrap;
}

.db-contact-social__arrow {
    display: block;
    flex: 0 0 112px;

    width: 112px;
    height: 112px;

    margin-right: 12px;

    object-fit: contain;
}

.db-contact-social__buttons {
    display: flex;
    align-items: center;

    gap: 24px;

    margin-right: 282px;
}

.db-contact-social__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 64px;
    padding: 12px 24px;

    color: #3D3631;
    background: transparent;

    border: 2px solid #FF6600;
    border-radius: 8px;

    font-family: "Vazirmatn", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.db-contact-social__button-icon {
    display: block;
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    margin-left: 12px;

    object-fit: contain;
}

.db-contact-social__button:hover,
.db-contact-social__button:focus-visible {
    color: #FFFFFF;
    background: #FF6600;
}

.db-contact-social__button:focus-visible {
    outline: 3px solid rgba(255, 102, 0, 0.24);
    outline-offset: 4px;
}


/* Tablet */

@media (max-width: 1399px) {

    .db-contact-social {
        width: calc(100% - 64px);
    }

    .db-contact-social__buttons {
        margin-right: auto;
    }
}


/* ==========================================================
   CONTACT SOCIAL — MOBILE
========================================================== */

@media (max-width: 767px) {

    .db-contact-social {
        display: block;

        width: calc(100% - 32px);
        height: auto;

        margin: 56px auto 0;
    }


    .db-contact-social__heading {
        display: block;
    }


    .db-contact-social__title {
        margin: 0;

        font-size: 22px;
        line-height: 1.5;

        text-align: right;

        white-space: normal;
    }


    /* فلش حذف */

    .db-contact-social__arrow {
        display: none;
    }


    /* دکمه‌ها کنار هم */

    .db-contact-social__buttons {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;

        margin: 24px 0 0;

        gap: 12px;
    }


    .db-contact-social__button {
        width: 100%;
        min-height: 44px;

        padding: 8px 10px;

        border-width: 1px;
        border-radius: 6px;

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

        white-space: nowrap;
    }


    .db-contact-social__button-icon {
        width: 24px;
        height: 24px;

        flex-basis: 24px;

        margin-left: 6px;
    }

}

/* ==========================================================
   CONTACT — BREADCRUMB POSITION
========================================================== */

.db-contact-page > .db-breadcrumb {
    width: calc(100% - 120px);
    max-width: 1320px;

    margin: 32px auto 0;
}


@media (max-width: 767px) {

    .db-contact-page > .db-breadcrumb {
        width: calc(100% - 32px);
        max-width: none;

        margin: 16px auto 0;
    }

}