.page-representatives #main-content {
    overflow: clip;
}

.representatives-page {
    overflow: clip;
    background: #fff;
}

.representatives-intro {
    width: 100%;
    height: 236px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.representatives-breadcrumb {
    padding: 0;
    color: #90a1b9;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: -.3px;
}

.representatives-breadcrumb ol {
    justify-content: center;
    gap: 10px;
}

.representatives-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.representatives-breadcrumb li + li::before {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin: 0;
    content: "";
    background: url("../representatives/breadcrumb-arrow.svg") center / 7.125px 4.021px no-repeat;
    transform: rotate(90deg);
}

.representatives-breadcrumb a:hover {
    color: #5fa8ab;
}

.representatives-intro h1 {
    margin: 0;
    color: #1d293d;
    font-size: 36px;
    line-height: 56px;
    font-weight: 950;
    letter-spacing: -1.08px;
}

.representatives-intro__description {
    width: min(1200px, 100%);
    min-height: 56px;
    margin: 0;
    color: #45556c;
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -.42px;
}

.representatives-directory {
    position: relative;
    min-height: 1772px;
    background: #fff;
}

.representatives-directory::before {
    position: absolute;
    inset-block-start: 44px;
    inset-inline: 0;
    height: 278px;
    content: "";
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    pointer-events: none;
}

.representatives-directory__inner {
    position: relative;
    z-index: 1;
    padding-block-end: 32px;
}

.representatives-filter-form {
    width: 100%;
    height: 96px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 200px;
    gap: 16px;
    padding: 20px;
    overflow: hidden;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 -12px 80px #f1f5f9;
    direction: rtl;
}

.representatives-filter {
    min-width: 0;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    background: #f8fafc;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.representatives-filter:focus-within {
    border-color: rgba(95, 168, 171, .68);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95, 168, 171, .12);
}

.representatives-filter input,
.representatives-filter select {
    min-width: 0;
    height: 32px;
    flex: 1 1 auto;
    padding: 0;
    border: 0;
    outline: 0;
    appearance: none;
    color: #45556c;
    background: transparent;
    font-family: "Yekan Bakh FaNum", sans-serif;
    font-size: 16px;
    line-height: 30px;
    font-weight: 400;
    letter-spacing: -.48px;
    text-align: right;
}

.representatives-filter select {
    cursor: pointer;
    font-weight: 600;
    line-height: 32px;
}

.representatives-filter input::placeholder {
    color: #45556c;
    opacity: 1;
}

.representatives-filter input::-webkit-search-cancel-button {
    display: none;
}

.representatives-filter > img {
    width: 24px;
    height: 24px;
    order: -1;
    flex: 0 0 24px;
    object-fit: contain;
}

.representatives-filter-form__submit {
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: #5fa8ab;
    box-shadow: 0 12px 32px rgba(95, 168, 171, .32);
    font-size: 16px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -.48px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.representatives-filter-form__submit img {
    width: 20px;
    height: 20px;
    order: -1;
    flex: 0 0 20px;
}

.representatives-filter-form__submit:hover {
    color: #fff;
    background: #518f92;
}

.representatives-filter-form__submit:disabled {
    cursor: wait;
    opacity: .72;
    box-shadow: none;
}

.representatives-filter-form__submit.is-loading img {
    animation: representatives-search-pulse .72s ease-in-out infinite alternate;
}

.representatives-results {
    margin-block-start: 28px;
}

.representatives-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.representative-card {
    position: relative;
    min-width: 0;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 28px 28px;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 12px 80px #f1f5f9;
}

.representative-card::before {
    position: absolute;
    z-index: 0;
    inset-block-start: 0;
    inset-inline: 0;
    height: 74px;
    content: "";
    background: radial-gradient(ellipse 191px 74px at 50% 0, #f8fafc 0%, #fff 100%);
    pointer-events: none;
}

.representative-card > * {
    position: relative;
    z-index: 1;
}

.representative-card__logo {
    width: 84px;
    height: 84px;
    display: flex;
    flex: 0 0 84px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 999px;
    background: #5fa8ab;
}

.representative-card__logo-inner {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3.5px solid #fff;
    border-radius: 999px;
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 41.379%);
}

.representative-card__logo-crop {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.representative-card__logo-crop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.representative-card__logo-placeholder {
    color: #37898e;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.representative-card__heading {
    width: 100%;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.representative-card__name {
    max-width: 100%;
    margin: 0;
    color: #000;
    font-size: 20px;
    line-height: 32px;
    font-weight: 800;
    letter-spacing: -.66px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.representative-card__activity {
    max-width: 100%;
    margin: 0;
    color: #62748e;
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -.42px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.representative-card__details {
    width: 100%;
    min-height: 260px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 20px;
}

.representative-card__detail {
    width: 100%;
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    color: #314158;
    background: #fff;
}

.representative-card__detail--address {
    height: auto;
}

.representative-card__detail > img {
    width: 28px;
    height: 28px;
    order: -1;
    flex: 0 0 28px;
    object-fit: contain;
}

.representative-card__detail > div,
.representative-card__detail > span {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
}

.representative-card__detail > div > span,
.representative-card__detail small {
    margin: 0 0 -6px;
    color: #62748e;
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: -.36px;
}

.representative-card__detail address,
.representative-card__detail bdi {
    max-width: 100%;
    margin: 0;
    color: #314158;
    font-size: 16px;
    line-height: 30px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -.48px;
}

.representative-card__detail address {
    overflow-wrap: anywhere;
    white-space: normal;
}

.representative-card__detail bdi {
    white-space: nowrap;
}

.representative-card__detail--phone:hover {
    border-color: rgba(95, 168, 171, .34);
    color: #314158;
    box-shadow: 0 8px 28px rgba(95, 168, 171, .08);
}

.representative-card__contact {
    width: 100%;
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 20px;
    overflow: hidden;
    border-radius: 18px;
    color: #5fa8ab;
    background: #edf5f6;
    font-size: 16px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -.48px;
    margin-block-start: auto;
}

.representative-card__contact i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.representative-card__contact img {
    width: 18px;
    height: 18px;
    transform: rotate(-90deg) scaleX(-1);
}

.representative-card__contact:hover {
    color: #4d8f92;
    background: #e1f0f1;
}

.representatives-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 12px 80px #f1f5f9;
    text-align: center;
}

.representatives-empty h2 {
    margin: 0 0 8px;
    color: #1d293d;
    font-size: 24px;
    line-height: 40px;
    font-weight: 800;
}

.representatives-empty p {
    margin: 0;
    color: #62748e;
    font-size: 14px;
    line-height: 28px;
}

.representatives-empty a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-block-start: 20px;
    padding: 8px 18px;
    border-radius: 14px;
    color: #fff;
    background: #5fa8ab;
    font-weight: 600;
}

@keyframes representatives-search-pulse {
    from { opacity: .45; }
    to { opacity: 1; }
}

@media (max-width: 1199px) {
    .representatives-directory {
        min-height: 0;
    }

    .representatives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

}

@media (max-width: 991px) {
    .representatives-intro {
        height: auto;
        min-height: 220px;
        padding: 32px 24px;
    }

    .representatives-intro h1 {
        font-size: 30px;
        line-height: 48px;
        letter-spacing: -.9px;
    }

    .representatives-intro__description {
        min-height: 0;
    }

    .representatives-filter-form {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 30px;
    }

    .representatives-results {
        margin-block-start: 24px;
    }
}

@media (max-width: 767px) {
    .representatives-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .representatives-intro {
        min-height: 214px;
        gap: 8px;
        padding: 28px 16px 32px;
    }

    .representatives-intro h1 {
        font-size: 28px;
        line-height: 44px;
        letter-spacing: -.84px;
    }

    .representatives-intro__description {
        font-size: 13px;
        line-height: 26px;
        letter-spacing: -.39px;
    }

    .representatives-directory__inner {
        width: calc(100% - 32px);
        padding-block-end: 32px;
    }

    .representatives-directory::before {
        inset-block-start: 36px;
        height: 238px;
    }

    .representatives-filter-form {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 28px;
    }

    .representatives-filter-form__submit {
        width: 100%;
    }

    .representative-card {
        min-height: 520px;
        padding-inline: 20px;
    }
}

@media (max-width: 359px) {
    .representatives-intro h1 {
        font-size: 25px;
        line-height: 40px;
    }

    .representative-card {
        padding-inline: 16px;
    }

    .representative-card__detail {
        height: auto;
        min-height: 80px;
        gap: 12px;
        padding-inline: 16px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .representatives-filter,
    .representatives-filter-form__submit {
        transition: none;
    }

    .representatives-filter-form__submit.is-loading img {
        animation: none;
    }
}
