/* =========================================================
   Shenasnapet — Public Pet Profile
   Mobile-first UI v2.1
   ========================================================= */

.shenasnapet-public-profile,
.shenasnapet-public-profile-error {
    --sp-orange: #F28C28;
    --sp-orange-dark: #D86F0C;
    --sp-orange-soft: #FFF3E7;
    --sp-ink: #20232A;
    --sp-muted: #74777E;
    --sp-muted-2: #92959A;
    --sp-surface: #FFFFFF;
    --sp-line: #E9E1D9;
    --sp-danger: #D9573F;
    --sp-danger-soft: #FFF1EE;
    --sp-shadow: 0 12px 34px rgba(67, 48, 31, 0.08);

    /* Soft behavior palette inspired by the supplied reference backgrounds. */
    --sp-behavior-neutral: #F7EFE8;
    --sp-behavior-red: #ffdfdb;
    --sp-behavior-orange: #ffcb99;
    --sp-behavior-yellow: #fee9a7;
    --sp-behavior-green: #d8fdc8;
    --sp-behavior-blue: #DFF0E9;

    --sp-content-direction: rtl;

    box-sizing: border-box;
    font-family: inherit;
    color: var(--sp-ink);
    direction: var(--sp-content-direction);
}

html[dir="ltr"] .shenasnapet-public-profile,
html[dir="ltr"] .shenasnapet-public-profile-error {
    --sp-content-direction: ltr;
}

html[dir="rtl"] .shenasnapet-public-profile,
html[dir="rtl"] .shenasnapet-public-profile-error {
    --sp-content-direction: rtl;
}

.shenasnapet-public-profile *,
.shenasnapet-public-profile *::before,
.shenasnapet-public-profile *::after,
.shenasnapet-public-profile-error *,
.shenasnapet-public-profile-error *::before,
.shenasnapet-public-profile-error *::after {
    box-sizing: border-box;
}

.shenasnapet-public-profile {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 0 30px;
}

/* =========================================================
   Shared SVG icon system
   ========================================================= */

.shenasnapet-ui-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.shenasnapet-ui-icon--danger {
    -webkit-mask-image: url('../icons/public-profile/danger.svg');
    mask-image: url('../icons/public-profile/danger.svg');
}

.shenasnapet-ui-icon--call {
    -webkit-mask-image: url('../icons/public-profile/call.svg');
    mask-image: url('../icons/public-profile/call.svg');
}

.shenasnapet-ui-icon--calendar {
    -webkit-mask-image: url('../icons/public-profile/calendar.svg');
    mask-image: url('../icons/public-profile/calendar.svg');
}

.shenasnapet-ui-icon--location {
    -webkit-mask-image: url('../icons/public-profile/location.svg');
    mask-image: url('../icons/public-profile/location.svg');
}

.shenasnapet-ui-icon--time {
    -webkit-mask-image: url('../icons/public-profile/time.svg');
    mask-image: url('../icons/public-profile/time.svg');
}

.shenasnapet-ui-icon--heart {
    -webkit-mask-image: url('../icons/public-profile/heart.svg');
    mask-image: url('../icons/public-profile/heart.svg');
}

.shenasnapet-ui-icon--message {
    -webkit-mask-image: url('../icons/public-profile/message.svg');
    mask-image: url('../icons/public-profile/message.svg');
}

.shenasnapet-ui-icon--info {
    -webkit-mask-image: url('../icons/public-profile/info.svg');
    mask-image: url('../icons/public-profile/info.svg');
}

.shenasnapet-ui-icon--scan {
    -webkit-mask-image: url('../icons/public-profile/scan.svg');
    mask-image: url('../icons/public-profile/scan.svg');
}

.shenasnapet-ui-icon--male {
    -webkit-mask-image: url('../icons/public-profile/male.svg');
    mask-image: url('../icons/public-profile/male.svg');
}

.shenasnapet-ui-icon--female {
    -webkit-mask-image: url('../icons/public-profile/female.svg');
    mask-image: url('../icons/public-profile/female.svg');
}

/* =========================================================
   Profile layout — mobile order:
   1) lost alert, 2) gallery, 3) pet profile
   ========================================================= */

.shenasnapet-profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.shenasnapet-profile-card.no-gallery {
    max-width: 720px;
    margin-inline: auto;
}

/* =========================================================
   Gallery
   ========================================================= */

.shenasnapet-profile-gallery {
    position: relative;
    width: 100%;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 28px;
    background: #FFFFFF;
    box-shadow: var(--sp-shadow);
    direction: ltr;
}

.shenasnapet-profile-main-image {
    width: 100%;
    min-width: 0;
}

.shenasnapet-profile-slide {
    display: none;
    width: 100%;
    aspect-ratio: 1 / 1.06;
    overflow: hidden;
    border-radius: 22px;
    background: #EEF0F2;
}

.shenasnapet-profile-slide.is-active {
    display: block;
}

.shenasnapet-profile-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.shenasnapet-profile-mobile-arrows {
    position: absolute;
    inset: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
    pointer-events: none;
}

.shenasnapet-profile-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(32, 35, 42, 0.44);
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 160ms ease, background 160ms ease;
}

.shenasnapet-profile-arrow:active {
    transform: scale(0.94);
}

.shenasnapet-profile-thumbnails,
.shenasnapet-profile-thumbnail-extra {
    display: none;
}

.shenasnapet-profile-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 35, 42, 0.58);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
}

/* =========================================================
   Profile content + behavior background
   ========================================================= */

.shenasnapet-profile-content {
    width: 100%;
    padding: 20px 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    background: var(--sp-behavior-neutral);
    box-shadow: var(--sp-shadow);
}

.shenasnapet-profile-content--red {
    background: var(--sp-behavior-red);
}

.shenasnapet-profile-content--orange {
    background: var(--sp-behavior-orange);
}

.shenasnapet-profile-content--yellow {
    background: var(--sp-behavior-yellow);
}

.shenasnapet-profile-content--green {
    background: var(--sp-behavior-green);
}

.shenasnapet-profile-content--blue {
    background: var(--sp-behavior-blue);
}

.shenasnapet-profile-content--neutral {
    background: var(--sp-behavior-neutral);
}

.shenasnapet-profile-header {
    margin: 0 0 18px;
    text-align: center;
}

.shenasnapet-profile-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-bottom: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: #676B72;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.shenasnapet-profile-header h1 {
    margin: 0;
    color: var(--sp-ink);
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.shenasnapet-profile-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 16px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: #757981;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.shenasnapet-profile-breed {
    margin-top: 6px;
    color: #5D6168;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 600;
    text-align: center;
}

.shenasnapet-profile-behavior-summary {
    width: 100%;
    margin-top: 12px;
    padding: 0 6px;
    text-align: center;
}

.shenasnapet-profile-behavior-summary-text {
    display: block;
    color: #4F535A;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 600;
    text-align: center;
}

/* =========================================================
   Feature cards — always weight / gender / sterilized
   ========================================================= */

.shenasnapet-profile-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
}

.shenasnapet-profile-feature {
    display: grid;
    grid-template-rows: 24px minmax(28px, auto);
    align-items: center;
    justify-items: center;
    min-width: 0;
    min-height: 82px;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.80);
    text-align: center;
}

.shenasnapet-profile-feature .feature-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin: 0;
    color: var(--sp-muted-2);
    font-size: 10px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}

.shenasnapet-profile-feature .feature-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    overflow: hidden;
    color: var(--sp-ink);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 750;
    overflow-wrap: anywhere;
    text-align: center;
}

.shenasnapet-profile-gender-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 24px;
    color: #656A72;
}

.shenasnapet-profile-gender-icon .shenasnapet-ui-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.shenasnapet-profile-gender-icon-placeholder {
    display: block;
    width: 22px;
    height: 22px;
}

/* =========================================================
   Temperament
   ========================================================= */

.shenasnapet-profile-temperament {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 6px;
    width: 100%;
    margin-top: 18px;
    padding: 14px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.shenasnapet-profile-temperament::before {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: #6D7178;
    -webkit-mask-image: url('../icons/public-profile/heart.svg');
    mask-image: url('../icons/public-profile/heart.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.shenasnapet-profile-temperament .temperament-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #54585F;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
}

.shenasnapet-profile-temperament-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 7px;
    flex: 0 0 100%;
    width: 100%;
    padding: 8px;
}

.shenasnapet-profile-temperament-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(244, 244, 244, 0.94);
    color: #62666D;
    font-size: 10.5px;
    line-height: 1.45;
    font-weight: 600;
    text-align: center;
}

/* =========================================================
   Primary action
   ========================================================= */

.shenasnapet-profile-actions {
    width: 100%;
    margin-top: 18px;
    padding: 0 6px;
}

.shenasnapet-contact-owner,
.shenasnapet-lost-call,
.shenasnapet-contact-submit {
    font-family: inherit;
}

.shenasnapet-contact-owner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
    border: 0;
    border-radius: 18px;
    background: var(--sp-orange);
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(242, 140, 40, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.shenasnapet-contact-owner .shenasnapet-ui-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
}

.shenasnapet-contact-owner:active {
    transform: scale(0.985);
}

.shenasnapet-contact-owner:focus-visible,
.shenasnapet-lost-call:focus-visible,
.shenasnapet-profile-arrow:focus-visible,
.shenasnapet-profile-thumbnail:focus-visible,
.shenasnapet-contact-submit:focus-visible {
    outline: 3px solid rgba(242, 140, 40, 0.26);
    outline-offset: 3px;
}

.shenasnapet-profile-action-note {
    max-width: 360px;
    margin: 7px auto 0;
    padding: 0 4px;
    color: #7E8288;
    font-size: 9px;
    line-height: 1.75;
    font-weight: 500;
    text-align: center;
}

/* =========================================================
   About
   ========================================================= */

.shenasnapet-profile-about {
    width: 100%;
    margin-top: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.shenasnapet-profile-about h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    color: #62666D;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
}

.shenasnapet-profile-about h2 .shenasnapet-ui-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    color: #70747B;
}

.shenasnapet-profile-about p {
    margin: 0;
    color: #44484F;
    font-size: 13px;
    line-height: 2;
    font-weight: 700;
    overflow-wrap: break-word;
}

/* =========================================================
   Lost pet alert
   ========================================================= */

.shenasnapet-profile-lost {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid #F1B09F;
    border-radius: 24px;
    background: var(--sp-danger-soft);
    box-shadow: 0 8px 24px rgba(190, 72, 48, 0.06);
}

.shenasnapet-profile-lost-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.shenasnapet-profile-lost-heading > .shenasnapet-ui-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    color: var(--sp-danger);
}

.shenasnapet-profile-lost-kicker {
    display: block;
    margin-bottom: 1px;
    color: #B86451;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.shenasnapet-profile-lost h2 {
    margin: 0;
    color: #A33F2C;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 800;
}

.shenasnapet-profile-lost-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.shenasnapet-lost-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(217, 87, 63, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
}

.shenasnapet-lost-item > .shenasnapet-ui-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    margin-top: 2px;
    color: #C86E5C;
}

.shenasnapet-lost-item > div {
    min-width: 0;
}

.shenasnapet-lost-item .lost-label,
.shenasnapet-lost-item .lost-value {
    display: block;
}

.shenasnapet-lost-item .lost-label {
    margin-bottom: 1px;
    color: #A77C73;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 600;
}

.shenasnapet-lost-item .lost-value {
    color: #5D3B34;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.shenasnapet-lost-description {
    margin-top: 9px;
    padding: 12px 13px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    color: #6B514B;
    font-size: 12px;
    line-height: 1.9;
}

.shenasnapet-lost-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    margin-top: 11px;
    padding: 12px 16px;
    border-radius: 17px;
    background: var(--sp-danger);
    color: #FFFFFF !important;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(217, 87, 63, 0.14);
}

.shenasnapet-lost-call .shenasnapet-ui-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

/* =========================================================
   Responsive profile layout
   ========================================================= */

@media (max-width: 369px) {
    .shenasnapet-profile-card {
        gap: 16px;
    }

    .shenasnapet-profile-gallery {
        padding: 10px;
        border-radius: 24px;
    }

    .shenasnapet-profile-slide {
        border-radius: 19px;
    }

    .shenasnapet-profile-content {
        padding: 18px 12px 16px;
        border-radius: 24px;
    }

    .shenasnapet-profile-header h1 {
        font-size: 27px;
    }

    .shenasnapet-profile-features {
        gap: 6px;
    }

    .shenasnapet-profile-feature {
        padding-inline: 4px;
    }

    .shenasnapet-profile-feature .feature-value {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .shenasnapet-public-profile {
        padding-top: 28px;
        padding-bottom: 44px;
    }

    .shenasnapet-profile-content {
        padding: 24px 22px 22px;
    }

    .shenasnapet-profile-header h1 {
        font-size: 36px;
    }

    .shenasnapet-profile-lost-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .shenasnapet-profile-card.has-gallery {
        display: grid;
        grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
        grid-template-areas: "content gallery";
        gap: 20px;
        align-items: start;
        direction: ltr;
    }

    .shenasnapet-profile-card.has-gallery.is-lost {
        grid-template-areas:
            "content gallery"
            "content lost";
    }

    .shenasnapet-profile-card.has-gallery > .shenasnapet-profile-content {
        grid-area: content;
        direction: var(--sp-content-direction);
    }

    .shenasnapet-profile-card.has-gallery > .shenasnapet-profile-gallery {
        grid-area: gallery;
        direction: ltr;
    }

    .shenasnapet-profile-card.has-gallery > .shenasnapet-profile-lost {
        grid-area: lost;
        direction: var(--sp-content-direction);
    }

    .shenasnapet-profile-gallery {
        display: flex;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .shenasnapet-profile-main-image {
        order: 1;
        flex: 1 1 auto;
    }

    .shenasnapet-profile-thumbnails {
        order: 2;
        display: flex;
        flex: 0 0 58px;
        width: 58px;
        max-height: 560px;
        flex-direction: column;
        gap: 8px;
        overflow: hidden;
    }

    .shenasnapet-profile-slide {
        aspect-ratio: 4 / 5;
        border-radius: 22px;
    }

    .shenasnapet-profile-mobile-arrows {
        display: none;
    }

    .shenasnapet-profile-thumbnail {
        position: relative;
        display: block;
        width: 58px;
        height: 70px;
        flex: 0 0 70px;
        padding: 0;
        overflow: hidden;
        border: 2px solid transparent;
        border-radius: 13px;
        background: #F0F1F2;
        cursor: pointer;
    }

    .shenasnapet-profile-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .shenasnapet-profile-thumbnail.is-active {
        border-color: var(--sp-orange);
        box-shadow: 0 4px 12px rgba(242, 140, 40, 0.14);
    }

    .shenasnapet-profile-thumbnails.is-expanded {
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .shenasnapet-profile-thumbnails.is-expanded .shenasnapet-profile-thumbnail-extra {
        display: block;
    }

    .shenasnapet-profile-thumbnails.is-expanded .shenasnapet-profile-more {
        display: none;
    }

    .shenasnapet-profile-header {
        text-align: center;
    }

    .shenasnapet-profile-content {
        min-height: 100%;
        padding: 24px 22px 22px;
    }

    .shenasnapet-profile-header h1 {
        font-size: 38px;
    }

    .shenasnapet-contact-owner:hover,
    .shenasnapet-lost-call:hover,
    .shenasnapet-contact-submit:hover {
        transform: translateY(-1px);
    }

    .shenasnapet-contact-owner:hover {
        background: var(--sp-orange-dark);
        box-shadow: 0 10px 22px rgba(242, 140, 40, 0.22);
    }

    .shenasnapet-profile-arrow:hover {
        background: rgba(32, 35, 42, 0.58);
    }
}

/* =========================================================
   Contact modal
   ========================================================= */

.shenasnapet-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}

.shenasnapet-contact-modal[hidden] {
    display: none;
}

.shenasnapet-contact-modal .shenasnapet-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 25, 29, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.shenasnapet-contact-modal .shenasnapet-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: calc(100dvh - 24px);
    padding: 26px 18px 18px;
    overflow-y: auto;
    border-radius: 26px 26px 20px 20px;
    background: #FFFFFF;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.shenasnapet-contact-modal h2 {
    margin: 0;
    padding: 0 36px;
    color: var(--sp-ink);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 800;
    text-align: center;
}

.shenasnapet-contact-modal-intro {
    max-width: 340px;
    margin: 7px auto 19px;
    color: #858990;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.shenasnapet-contact-modal .shenasnapet-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 13px;
    background: #F4F4F4;
    color: #555960;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.shenasnapet-contact-modal .shenasnapet-form-field {
    margin-bottom: 13px;
}

.shenasnapet-contact-modal .shenasnapet-form-field label {
    display: block;
    margin-bottom: 6px;
    color: #555960;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.shenasnapet-contact-modal .shenasnapet-form-field input,
.shenasnapet-contact-modal .shenasnapet-form-field textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #E7E1DB;
    border-radius: 14px;
    outline: none;
    background: #FBFAF9;
    color: var(--sp-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.65;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.shenasnapet-contact-modal .shenasnapet-form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.shenasnapet-contact-modal .shenasnapet-form-field input:focus,
.shenasnapet-contact-modal .shenasnapet-form-field textarea:focus {
    border-color: var(--sp-orange);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.09);
}

.shenasnapet-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    padding: 11px 16px;
    border: 0;
    border-radius: 16px;
    background: var(--sp-orange);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.shenasnapet-contact-submit:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.shenasnapet-contact-form-message {
    min-height: 18px;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.shenasnapet-contact-form-message.is-success,
.shenasnapet-contact-form-message.is-error {
    padding: 9px 10px;
    border-radius: 12px;
}

.shenasnapet-contact-form-message.is-success {
    background: #EDF8F0;
    color: #287A3E;
}

.shenasnapet-contact-form-message.is-error {
    background: #FFF0F0;
    color: #C0392B;
}

.shenasnapet-contact-success {
    padding: 18px 10px 6px;
    text-align: center;
}

.shenasnapet-contact-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #EDF8F0;
    color: #2F8A46;
    font-size: 27px;
    font-weight: 800;
}

.shenasnapet-contact-success-title {
    margin-bottom: 6px;
    color: #287A3E;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 800;
}

.shenasnapet-contact-success-text {
    color: #6E7278;
    font-size: 12px;
    line-height: 1.85;
}

/* =========================================================
   Error state — Asna
   ========================================================= */

.shenasnapet-public-profile-error {
    width: min(980px, calc(100% - 24px));
    margin: 22px auto 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    background: #FFFFFF;
    box-shadow: var(--sp-shadow);
}

.shenasnapet-public-profile-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 22px 26px;
    text-align: center;
}

.shenasnapet-public-profile-error-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: var(--sp-orange);
}

.shenasnapet-public-profile-error-kicker {
    display: inline-flex;
    min-height: 28px;
    margin-bottom: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--sp-orange-soft);
    color: var(--sp-orange-dark);
    font-size: 10px;
    font-weight: 700;
}

.shenasnapet-public-profile-error-content h1 {
    margin: 0;
    color: var(--sp-ink);
    font-size: 25px;
    line-height: 1.5;
    font-weight: 800;
}

.shenasnapet-public-profile-error-content p {
    max-width: 470px;
    margin: 9px 0 20px;
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.95;
}

.shenasnapet-public-profile-error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 22px;
    border-radius: 16px;
    background: var(--sp-orange);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.shenasnapet-public-profile-error-image {
    width: 100%;
    max-height: 390px;
    overflow: hidden;
    background: #EEF0F2;
}

.shenasnapet-public-profile-error-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 390px;
    object-fit: cover;
    object-position: center 22%;
}


/* =========================================================
   Modal / error responsive helpers
   ========================================================= */

@media (min-width: 768px) {
    .shenasnapet-contact-modal {
        align-items: center;
        padding: 20px;
    }

    .shenasnapet-contact-modal .shenasnapet-modal-content {
        border-radius: 24px;
    }

    .shenasnapet-public-profile-error {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        min-height: 500px;
        margin-top: 34px;
    }

    .shenasnapet-public-profile-error-content {
        align-items: flex-start;
        justify-content: center;
        padding: 48px;
        text-align: start;
    }

    .shenasnapet-public-profile-error-image {
        max-height: none;
        min-height: 500px;
    }

    .shenasnapet-public-profile-error-image img {
        max-height: none;
        min-height: 500px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shenasnapet-public-profile *,
    .shenasnapet-public-profile *::before,
    .shenasnapet-public-profile *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
