/*--------------------------------------------------------------
  Pet Hub UI
  Design layer on top of the old template stylesheet (style.css).
  Loaded last, so it sets the look for the header, footer, page
  heroes, home sections and the shared bits (buttons, fields, cards)
  that every page uses. Values follow docs/brand/brandbook-prompt.md.
--------------------------------------------------------------*/

:root {
    --ph-orange: var(--primary, #F28F3B);
    --ph-indigo: var(--secondary, #3B3862);
    --ph-ink: #10163A;
    --ph-white: #FFFFFF;
    --ph-off: #F8F8F8;
    --ph-gray: #696A70; /* was #858687: 3.65:1 on white, under the 4.5:1 AA minimum */
    --ph-orange-50: #FDF1E6;
    --ph-orange-100: #FCE3CE;
    --ph-indigo-50: #EBEBEF;
    --ph-indigo-100: #CECDD8;
    --ph-green: #28C76F;
    --ph-red: #EA5455;
    --ph-amber: #FF9F43;
    --ph-blue: #1E9FF2;

    /* Body copy: an indigo tint instead of the light gray, which is too faint on white */
    --ph-text: color-mix(in srgb, var(--ph-indigo) 78%, #fff);
    --ph-muted: var(--ph-gray);
    --ph-line: var(--ph-indigo-50);

    --ph-radius: 24px;
    --ph-radius-md: 16px;
    --ph-radius-sm: 12px;
    --ph-pill: 999px;
    --ph-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --ph-shadow-lg: 0 18px 48px rgba(16, 22, 58, 0.12);
    --ph-ease: cubic-bezier(.2, .7, .2, 1);

    --ph-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='22' cy='30' rx='8' ry='6.5'/%3E%3Ccircle cx='13' cy='21' r='3.2'/%3E%3Ccircle cx='18.5' cy='15' r='3.2'/%3E%3Ccircle cx='25.5' cy='15' r='3.2'/%3E%3Ccircle cx='31' cy='21' r='3.2'/%3E%3Cellipse cx='70' cy='78' rx='8' ry='6.5'/%3E%3Ccircle cx='61' cy='69' r='3.2'/%3E%3Ccircle cx='66.5' cy='63' r='3.2'/%3E%3Ccircle cx='73.5' cy='63' r='3.2'/%3E%3Ccircle cx='79' cy='69' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
}

body {
    color: var(--ph-text);
    font-weight: 400;
    background: var(--ph-white);
}

p {
    color: var(--ph-text);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ph-indigo);
    font-family: "Fredoka One", "Poppins", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

a {
    transition: color .2s var(--ph-ease);
}

::selection {
    background: var(--ph-orange-100);
    color: var(--ph-indigo);
}

/* Spacing: the old 120px paddings left big empty bands between sections */
.ptb-120 { padding-top: 96px; padding-bottom: 96px; }
.pt-120 { padding-top: 96px; }
.pb-120 { padding-bottom: 96px; }
@media (max-width: 991px) {
    .ptb-120 { padding-top: 64px; padding-bottom: 64px; }
    .pt-120 { padding-top: 64px; }
    .pb-120 { padding-bottom: 64px; }
}

.ph-section { padding: 96px 0; position: relative; }
.ph-section--tight { padding: 64px 0; }
.ph-section--off { background: var(--ph-off); }
.ph-section--tint { background: var(--ph-orange-50); }
@media (max-width: 991px) {
    .ph-section { padding: 64px 0; }
    .ph-section--tight { padding: 48px 0; }
}

/*--------------------------------------------------------------
  Preloader: white screen with a pulsing paw instead of the bear
--------------------------------------------------------------*/
#loader {
    background: var(--ph-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
#loader .loader,
#loader .loader::before,
#loader .loader::after {
    all: unset;
}
#loader .loader {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ph-orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='%23F28F3B'%3E%3Cellipse cx='22' cy='28' rx='8' ry='6.5'/%3E%3Ccircle cx='13' cy='19' r='3.4'/%3E%3Ccircle cx='18.5' cy='13' r='3.4'/%3E%3Ccircle cx='25.5' cy='13' r='3.4'/%3E%3Ccircle cx='31' cy='19' r='3.4'/%3E%3C/g%3E%3C/svg%3E") center / 34px no-repeat;
    animation: ph-pulse 1s var(--ph-ease) infinite alternate;
}
@keyframes ph-pulse {
    from { transform: scale(.9); opacity: .7; }
    to { transform: scale(1.05); opacity: 1; }
}

/*--------------------------------------------------------------
  Buttons
--------------------------------------------------------------*/
.ph-btn,
.btn--base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--ph-pill) !important;
    border: 2px solid transparent;
    background: var(--ph-orange);
    color: var(--ph-indigo);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: visible;
    transition: transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease), background-color .2s var(--ph-ease), color .2s var(--ph-ease), border-color .2s var(--ph-ease);
}
.btn--base::before { display: none !important; }
.ph-btn:hover,
.ph-btn:focus-visible,
.btn--base:hover,
.btn--base:focus-visible {
    background: color-mix(in srgb, var(--ph-orange) 90%, #000);
    color: var(--ph-indigo);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--ph-orange) 35%, transparent);
}
.ph-btn:focus-visible,
.btn--base:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ph-orange) 40%, transparent);
    outline-offset: 2px;
}
.ph-btn:disabled,
.btn--base:disabled {
    opacity: .6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}
.ph-btn i, .btn--base i { font-size: 1.15em; }

.ph-btn--indigo,
.btn--base.color-rev {
    background: var(--ph-indigo);
    color: var(--ph-white);
    border-color: transparent;
}
.ph-btn--indigo:hover,
.ph-btn--indigo:focus-visible,
.btn--base.color-rev:hover,
.btn--base.color-rev:focus-visible {
    background: var(--ph-ink);
    color: var(--ph-white);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(16, 22, 58, .22);
}

.ph-btn--ghost {
    background: transparent;
    color: var(--ph-indigo);
    border-color: var(--ph-indigo-100);
}
.ph-btn--ghost:hover,
.ph-btn--ghost:focus-visible {
    background: var(--ph-white);
    color: var(--ph-indigo);
    border-color: var(--ph-indigo);
    box-shadow: var(--ph-shadow);
}

.ph-btn--light {
    background: var(--ph-white);
    color: var(--ph-indigo);
}
.ph-btn--light:hover,
.ph-btn--light:focus-visible {
    background: var(--ph-orange-50);
    color: var(--ph-indigo);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.ph-btn--lg { padding: 16px 30px; font-size: 16px; }
.ph-btn--sm,
.btn--base.btn--sm { padding: 8px 16px !important; font-size: 14px !important; }
.ph-btn--block,
.btn--base.w-100 { width: 100%; }

.ph-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ph-indigo);
    font-weight: 600;
    text-decoration: none;
}
.ph-link i { transition: transform .2s var(--ph-ease); color: var(--ph-orange); }
.ph-link:hover { color: var(--ph-indigo); }
.ph-link:hover i { transform: translateX(3px); }

/*--------------------------------------------------------------
  Fields
--------------------------------------------------------------*/
.form--control,
.form-control,
.form-select {
    height: 52px;
    border: 1.5px solid var(--ph-indigo-50);
    border-radius: var(--ph-radius-sm);
    background-color: var(--ph-white);
    color: var(--ph-indigo);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 18px;
    transition: border-color .2s var(--ph-ease), box-shadow .2s var(--ph-ease);
}
textarea.form--control,
textarea.form-control { height: auto; min-height: 130px; padding-top: 14px; }
.form--control:hover,
.form-control:hover,
.form-select:hover { border-color: var(--ph-indigo-100); }
.form--control::placeholder,
.form-control::placeholder { color: var(--ph-gray); opacity: 1; }
select.form--control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%233B3862' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}
label,
.form-label {
    color: var(--ph-indigo);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

/*--------------------------------------------------------------
  Eyebrow + section header
--------------------------------------------------------------*/
.ph-eyebrow,
.section-header .section-sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--ph-pill);
    background: var(--ph-orange-50);
    color: color-mix(in srgb, var(--ph-orange) 70%, var(--ph-indigo));
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.ph-eyebrow i { font-size: 16px; color: var(--ph-orange); }
.ph-eyebrow--dark {
    background: rgba(255, 255, 255, .12);
    color: var(--ph-white);
}

.section-header {
    margin-bottom: 48px;
}
.section-header .section-title,
.ph-title {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.12;
    margin-bottom: 14px;
}
.section-header p,
.ph-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ph-text);
    margin: 0;
}
.section-header .section-header-shpae { display: none; }

.ph-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.ph-head .section-header { margin-bottom: 0; max-width: 640px; }

/*--------------------------------------------------------------
  Cards and chips shared by sections and pages
--------------------------------------------------------------*/
.ph-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    box-shadow: 0 1px 2px rgba(16, 22, 58, .04);
    transition: transform .25s var(--ph-ease), box-shadow .25s var(--ph-ease), border-color .25s var(--ph-ease);
}
.ph-card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--ph-shadow-lg);
    border-color: transparent;
}

.ph-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--ph-orange-50);
    color: var(--ph-orange);
    font-size: 28px;
}
.ph-icon svg { width: 30px; height: 30px; }
.ph-icon i { color: inherit; font-size: inherit; margin: 0; }
.ph-icon--indigo { background: var(--ph-indigo-50); color: var(--ph-indigo); }
.ph-icon--green { background: color-mix(in srgb, var(--ph-green) 14%, #fff); color: var(--ph-green); }
.ph-icon--red { background: color-mix(in srgb, var(--ph-red) 12%, #fff); color: var(--ph-red); }
.ph-icon--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }

.ph-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--ph-pill);
    background: var(--ph-indigo-50);
    color: var(--ph-indigo);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}
.ph-chip i { font-size: 14px; }
.ph-chip--green { background: color-mix(in srgb, var(--ph-green) 14%, #fff); color: #1f9d57; }
.ph-chip--orange { background: var(--ph-orange-50); color: color-mix(in srgb, var(--ph-orange) 60%, var(--ph-indigo)); }
.ph-chip--amber { background: color-mix(in srgb, var(--ph-amber) 16%, #fff); color: #b8681c; }
.ph-chip--outline { background: transparent; border: 1px solid var(--ph-line); }

/*--------------------------------------------------------------
  Header
--------------------------------------------------------------*/
.ph-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.ph-header.is-scrolled {
    border-bottom-color: var(--ph-line);
    box-shadow: 0 6px 24px rgba(16, 22, 58, .06);
}
.ph-header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
}
.ph-logo {
    flex: none;
    display: inline-flex;
    align-items: center;
}
.ph-logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.ph-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}
.ph-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ph-nav > li { position: relative; }
.ph-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--ph-pill);
    color: var(--ph-indigo);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: 0;
}
.ph-nav__link:hover,
.ph-nav__item.is-open > .ph-nav__link { background: var(--ph-off); color: var(--ph-indigo); }
.ph-nav__link.is-active { background: var(--ph-orange-50); color: var(--ph-indigo); }
.ph-nav__link .la-angle-down { font-size: 13px; transition: transform .2s; }
.ph-nav__item.is-open > .ph-nav__link .la-angle-down { transform: rotate(180deg); }
.ph-soon {
    padding: 2px 8px;
    border-radius: var(--ph-pill);
    background: var(--ph-orange);
    color: var(--ph-indigo);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.5;
}

.ph-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 560px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    list-style: none;
    margin: 0;
    background: var(--ph-white);
    border: 1px solid var(--ph-line);
    border-radius: 20px;
    box-shadow: var(--ph-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s, transform .18s var(--ph-ease), visibility .18s;
}
.ph-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}
.ph-dropdown--narrow { width: 260px; grid-template-columns: 1fr; }
.ph-nav__item.is-open > .ph-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
@media (hover: hover) and (min-width: 992px) {
    .ph-nav__item:hover > .ph-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}
.ph-dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    color: var(--ph-indigo);
    text-decoration: none;
}
.ph-dropdown a:hover { background: var(--ph-off); }
.ph-dropdown strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ph-dropdown small { display: block; color: var(--ph-gray); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }

.ph-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.ph-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ph-off);
    color: var(--ph-indigo);
    font-size: 21px;
    border: 0;
    text-decoration: none;
}
.ph-iconbtn:hover { background: var(--ph-orange-50); color: var(--ph-indigo); }
.ph-iconbtn .count-item {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: var(--ph-pill);
    background: var(--ph-orange);
    color: var(--ph-indigo);
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.ph-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.ph-lang i {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: var(--ph-indigo);
    pointer-events: none;
}
.ph-lang select {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    height: 44px;
    padding: 0 30px 0 38px;
    border: 0;
    border-radius: var(--ph-pill);
    background: var(--ph-off) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%233B3862' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
    color: var(--ph-indigo);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.ph-lang select:focus { outline: 2px solid var(--ph-orange-100); }

.ph-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--ph-indigo);
    color: var(--ph-white);
    font-size: 22px;
    align-items: center;
    justify-content: center;
}
.ph-mobile-only { display: none !important; }

@media (max-width: 1199px) {
    .ph-header__cta { display: none !important; }
    .ph-nav__link { padding: 10px 12px; }
}
@media (max-width: 991px) {
    .ph-header__bar { height: 68px; gap: 12px; }
    .ph-logo img { height: 42px; }
    .ph-burger { display: inline-flex; margin-left: auto; }
    .ph-header__actions .ph-lang,
    .ph-header__actions .ph-header__account { display: none !important; }
    .ph-mobile-only { display: flex !important; }
    .ph-menu {
        display: block;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 16px 16px 32px;
        background: var(--ph-white);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s var(--ph-ease), visibility .2s;
    }
    /* backdrop-filter would make the header the containing block of the fixed menu */
    .ph-header.is-menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--ph-white);
        border-bottom-color: var(--ph-line);
    }
    .ph-header.is-menu-open .ph-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .ph-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
    }
    .ph-nav__link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 16px;
    }
    .ph-dropdown,
    .ph-dropdown--narrow {
        position: static;
        width: auto;
        grid-template-columns: 1fr;
        display: none;
        padding: 4px 0 8px 8px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .ph-dropdown::before { display: none; }
    .ph-nav__item.is-open > .ph-dropdown { display: grid; transform: none; }
    .ph-menu__footer {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--ph-line);
    }
    .ph-menu__footer .ph-lang,
    .ph-menu__footer .ph-lang select { width: 100%; }
    body.ph-no-scroll { overflow: hidden; }
}

/* Old template bits the new header replaces */
.scrollToTop {
    width: 46px !important;
    height: 46px !important;
    right: 20px !important;
    bottom: 20px !important;
    border-radius: 50% !important;
    background: var(--ph-indigo) !important;
    color: var(--ph-white) !important;
    box-shadow: var(--ph-shadow-lg) !important;
    border: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    /* The old theme's padding pushed the arrow below the middle of the circle */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
    animation: none !important;
}
.scrollToTop i { line-height: 1; margin: 0; }
.scrollToTop:hover { background: var(--ph-orange) !important; color: var(--ph-indigo) !important; }

/*--------------------------------------------------------------
  Page hero (inner pages)
--------------------------------------------------------------*/
.ph-page-hero {
    padding: 16px 0 0;
}
.ph-page-hero__panel {
    position: relative;
    overflow: hidden;
    padding: 56px 48px;
    border-radius: 32px;
    background: linear-gradient(135deg, #3B3862 0%, #5A5690 100%);
    color: var(--ph-white);
    isolation: isolate;
}
.ph-page-hero__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ph-paw) 0 0 / 96px;
    opacity: .07;
    z-index: -1;
}
.ph-page-hero__panel::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--ph-orange);
    opacity: .9;
    z-index: -1;
}
.ph-page-hero__title {
    color: var(--ph-white);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    margin: 0 0 14px;
    max-width: 760px;
}
.ph-page-hero__lead {
    max-width: 640px;
    margin: -4px 0 16px;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 1.6;
}
.ph-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}
.ph-crumbs a { color: var(--ph-white); text-decoration: none; font-weight: 500; }
.ph-crumbs a:hover { color: var(--ph-orange-100); }
.ph-crumbs li + li::before {
    content: "\f105";
    font-family: "Line Awesome Free";
    font-weight: 900;
    margin-right: 8px;
    opacity: .7;
}
@media (max-width: 767px) {
    .ph-page-hero__panel { padding: 40px 24px; border-radius: 24px; }
    .ph-page-hero__panel::after { width: 160px; height: 160px; right: -50px; top: -60px; }
}

/* Old breadcrumb banner, in case a page still renders it */
.breadcrumb-section .breadcrumb-img-left,
.breadcrumb-section .breadcrumb-img-right,
.breadcrumb-section .banner-shape { display: none; }

/*--------------------------------------------------------------
  Home hero
--------------------------------------------------------------*/
.ph-hero {
    position: relative;
    /* Bottom room so the quick-link cards' shadows aren't clipped by overflow: hidden */
    padding: 40px 0 40px;
    overflow: hidden;
}
.ph-hero::before {
    content: "";
    position: absolute;
    /* Ends halfway down the quick-link cards, so they sit on the hero's edge */
    inset: 0 0 88px 0;
    background:
        radial-gradient(ellipse 60% 70% at 85% 30%, var(--ph-orange-50), transparent 70%),
        var(--ph-off);
    border-radius: 0 0 48px 48px;
    z-index: -1;
}
.ph-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 40px 0 56px;
}
.ph-hero__title {
    font-size: clamp(40px, 5.6vw, 72px);
    line-height: 1.05;
    margin: 0 0 20px;
    color: var(--ph-indigo);
}
.ph-hero__lead {
    font-size: 18px;
    line-height: 1.65;
    max-width: 520px;
    margin: 0 0 32px;
}
.ph-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.ph-hero__trust {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ph-indigo);
}
.ph-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 400px) { .ph-hero__trust { grid-template-columns: 1fr; } }
.ph-hero__trust i { color: var(--ph-green); font-size: 20px; }

.ph-hero__media {
    position: relative;
    max-width: 560px;
    justify-self: end;
    width: 100%;
}
.ph-hero__blob {
    position: absolute;
    inset: 6% -4% -4% 8%;
    background: var(--ph-orange);
    border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
    z-index: 0;
}
.ph-hero__img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%;
    box-shadow: var(--ph-shadow-lg);
}
.ph-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    background: var(--ph-white);
    border-radius: 18px;
    box-shadow: var(--ph-shadow-lg);
    animation: ph-bob 5s ease-in-out infinite;
}
.ph-float strong { display: block; color: var(--ph-indigo); font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.ph-float small { display: block; color: var(--ph-gray); font-size: 12.5px; line-height: 1.3; }
.ph-float--top { top: 10%; left: -6%; }
.ph-float--bottom { bottom: 8%; right: -2%; animation-delay: -2.5s; }
@keyframes ph-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .ph-float, #loader .loader { animation: none; }
}

.ph-quick {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.ph-quick a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 40px 18px 18px;
    background: var(--ph-white);
    border: 1px solid var(--ph-line);
    border-radius: 20px;
    box-shadow: var(--ph-shadow);
    color: var(--ph-indigo);
    text-decoration: none;
    transition: transform .25s var(--ph-ease), box-shadow .25s var(--ph-ease);
}
.ph-quick a:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); }
.ph-quick strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ph-quick small { display: block; color: var(--ph-gray); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.ph-quick .ph-icon { flex-shrink: 0; }
.ph-quick .la-arrow-right {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--ph-orange);
    font-size: 18px;
    transform: translateY(-50%);
    transition: transform .25s var(--ph-ease);
}
.ph-quick a:hover .la-arrow-right { transform: translate(3px, -50%); }

@media (max-width: 1199px) {
    .ph-quick { grid-template-columns: repeat(2, 1fr); }
    .ph-float--top { left: 0; }
    .ph-float--bottom { right: 0; }
}
@media (max-width: 991px) {
    .ph-hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 56px; }
    .ph-hero__media { justify-self: center; max-width: 440px; }
    .ph-hero::before { inset: 0 0 150px 0; border-radius: 0 0 32px 32px; }
}
@media (max-width: 575px) {
    .ph-hero { padding-top: 16px; }
    .ph-hero__lead { font-size: 16px; }
    .ph-hero__actions .ph-btn { flex: 1 1 100%; }
    .ph-quick { grid-template-columns: 1fr; }
    .ph-float { padding: 10px 12px 10px 10px; }
    .ph-float .ph-icon--sm { width: 34px; height: 34px; font-size: 18px; }
    .ph-float--top { left: -4px; top: 4%; }
    .ph-float--bottom { right: -4px; bottom: 2%; }
}

/*--------------------------------------------------------------
  Features
--------------------------------------------------------------*/
.ph-features {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}
.ph-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* An odd card out fills the last row instead of leaving a gap */
.ph-features__grid > .ph-feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    align-items: center;
}
.ph-features__grid > .ph-feature:last-child:nth-child(odd) .ph-icon { grid-row: span 2; }
.ph-features__grid > .ph-feature:last-child:nth-child(odd) h3 { margin-top: 0; }
.ph-feature {
    padding: 28px;
}
.ph-feature h3 {
    font-size: 21px;
    margin: 20px 0 8px;
}
.ph-feature p { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 991px) {
    .ph-features { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 575px) {
    .ph-features__grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
  About (image + rich text)
--------------------------------------------------------------*/
.ph-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ph-split--reverse > :first-child { order: 2; }
.ph-photo {
    position: relative;
    margin: 0;
}
.ph-photo::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border-radius: var(--ph-radius);
    background: var(--ph-orange-50);
    z-index: -1;
}
.ph-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow);
}
.ph-prose h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin-bottom: 18px; }
.ph-prose p { font-size: 16.5px; line-height: 1.75; }
.ph-prose ul { padding: 0; margin: 16px 0; list-style: none; }
.ph-prose ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ph-prose ul li::before {
    content: "\f00c";
    font-family: "Line Awesome Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--ph-green);
}
@media (max-width: 991px) {
    .ph-split { grid-template-columns: 1fr; gap: 48px; }
    .ph-split--reverse > :first-child { order: 0; }
    .ph-photo::before { inset: 16px -12px -12px 16px; }
}

/*--------------------------------------------------------------
  Pet categories
--------------------------------------------------------------*/
.ph-pets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ph-pet {
    text-align: center;
}
.ph-pet__img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 8px;
    background: var(--ph-white);
    box-shadow: var(--ph-shadow);
    transition: transform .3s var(--ph-ease), box-shadow .3s var(--ph-ease);
}
.ph-pet__img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--ph-orange);
    opacity: 0;
    transition: opacity .3s;
}
.ph-pet:hover .ph-pet__img { transform: translateY(-4px); box-shadow: var(--ph-shadow-lg); }
.ph-pet:hover .ph-pet__img::after { opacity: 1; }
.ph-pet__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.ph-pet h3 {
    font-size: 19px;
    margin: 16px 0 0;
}
@media (max-width: 767px) {
    .ph-pets {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 42%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 8px 4px 16px;
        scrollbar-width: none;
    }
    .ph-pets::-webkit-scrollbar { display: none; }
    .ph-pet { scroll-snap-align: start; }
}

/*--------------------------------------------------------------
  Professionals (vet / walker cards)
--------------------------------------------------------------*/
.ph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.ph-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) {
    .ph-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .ph-grid--3, .ph-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .ph-grid--3, .ph-grid--4 { grid-template-columns: 1fr; }
}

.ph-pro {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}
.ph-pro__top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.ph-pro__photo {
    position: relative;
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    padding: 3px;
    background: var(--ph-orange);
}
.ph-pro__photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ph-white);
}
.ph-pro__verified {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ph-green);
    color: var(--ph-white);
    border: 2px solid var(--ph-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.ph-pro__name {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 4px;
}
.ph-pro__name a { color: inherit; text-decoration: none; }
.ph-pro__spec {
    color: color-mix(in srgb, var(--ph-orange) 70%, var(--ph-indigo));
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}
.ph-pro__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    color: var(--ph-gray);
    font-size: 13.5px;
}
.ph-pro__meta li { display: inline-flex; align-items: center; gap: 5px; }
.ph-pro__meta i { font-size: 16px; color: var(--ph-indigo); }
.ph-pro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.ph-pro__avail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ph-off);
    color: var(--ph-indigo);
    font-size: 13.5px;
    font-weight: 500;
}
.ph-pro__avail i { font-size: 18px; color: var(--ph-orange); }
.ph-pro__avail.is-today { background: color-mix(in srgb, var(--ph-green) 12%, #fff); }
.ph-pro__avail.is-today i { color: var(--ph-green); }
.ph-pro__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.ph-pro__actions .ph-btn { padding: 11px 16px; font-size: 14px; }
.ph-pro--compact { text-align: center; align-items: center; }
.ph-pro--compact .ph-pro__top { flex-direction: column; gap: 14px; }
.ph-pro--compact .ph-pro__photo { width: 104px; height: 104px; }
.ph-pro--compact .ph-pro__actions { grid-template-columns: 1fr; width: 100%; margin-top: auto; }

/* Directory filters */
.ph-filter {
    padding: 24px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
    box-shadow: var(--ph-shadow-lg);
    border: 0;
}
.ph-filter__search {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
}
.ph-filter__search .ph-input-icon { position: relative; }
.ph-filter__search .ph-input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--ph-indigo);
}
.ph-filter__search .ph-input-icon .form--control { padding-left: 46px; }
.ph-filter__selects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.ph-filter__selects .form--control { height: 46px; font-size: 14px; }
.ph-filter__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--ph-gray);
}
@media (max-width: 767px) {
    .ph-filter { margin-top: -32px; padding: 18px; }
    .ph-filter__search { grid-template-columns: 1fr 1fr; }
    .ph-filter__search .ph-input-icon { grid-column: 1 / -1; }
}

.ph-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ph-step {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    background: var(--ph-off);
}
.ph-step::after {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: "Fredoka One", sans-serif;
    font-size: 34px;
    line-height: 1;
    color: var(--ph-indigo-100);
}
.ph-step h4 { font-size: 18px; margin: 16px 0 6px; }
.ph-step p { margin: 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 991px) {
    .ph-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ph-steps { grid-template-columns: 1fr; }
}

.ph-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    text-align: center;
    border: 1.5px dashed var(--ph-indigo-100);
    border-radius: var(--ph-radius);
    background: var(--ph-off);
}
.ph-empty .ph-icon { margin-bottom: 14px; }
.ph-empty h5 { margin-bottom: 4px; }
.ph-empty p { margin: 0; color: var(--ph-gray); }

/*--------------------------------------------------------------
  Indigo banners (call to action, join, membership)
--------------------------------------------------------------*/
.ph-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    border-radius: 32px;
    background: linear-gradient(135deg, #3B3862 0%, #5A5690 100%);
    color: var(--ph-white);
    isolation: isolate;
}
.ph-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ph-paw) 0 0 / 96px;
    opacity: .07;
    z-index: -1;
}
.ph-banner__body {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.ph-banner h2 {
    color: var(--ph-white);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.12;
    margin: 0 0 14px;
}
.ph-banner p { color: rgba(255, 255, 255, .82); font-size: 16.5px; margin: 0 0 28px; max-width: 520px; }
.ph-banner__media {
    position: relative;
    min-height: 300px;
}
.ph-banner__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 200px 0 0 200px;
}
.ph-banner--center { grid-template-columns: 1fr; text-align: center; }
.ph-banner--center .ph-banner__body { align-items: center; padding: 56px 32px; }
.ph-banner--center p { margin-left: auto; margin-right: auto; }
.ph-banner__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.ph-banner__links a:not(.ph-btn) { color: var(--ph-white); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991px) {
    .ph-banner { grid-template-columns: 1fr; }
    .ph-banner__body { padding: 40px 28px; }
    .ph-banner__media { min-height: 220px; order: -1; }
    .ph-banner__media img { border-radius: 0 0 120px 120px / 0 0 48px 48px; }
}

/*--------------------------------------------------------------
  Services + blog cards
--------------------------------------------------------------*/
.ph-media-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.ph-media-card__img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ph-off);
}
.ph-media-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ph-ease);
}
.ph-media-card:hover .ph-media-card__img img { transform: scale(1.05); }
.ph-media-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.ph-media-card__body h3 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.ph-media-card__body h3 a { color: inherit; text-decoration: none; }
.ph-media-card__body h3 a:hover { color: color-mix(in srgb, var(--ph-orange) 70%, var(--ph-indigo)); }
.ph-media-card__body p {
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ph-media-card__body .ph-link { margin-top: auto; }
.ph-date {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--ph-white);
    color: var(--ph-indigo);
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--ph-shadow);
}
.ph-date strong { display: block; font-family: "Fredoka One", sans-serif; font-weight: 400; font-size: 16px; }
.ph-date small { font-size: 11.5px; color: var(--ph-gray); }

.ph-with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 991px) {
    .ph-with-aside { grid-template-columns: 1fr; }
}
.ph-aside {
    position: sticky;
    top: 104px;
    padding: 24px;
}
.ph-aside h4 { font-size: 19px; margin-bottom: 14px; }
.ph-aside ul { margin: 0; padding: 0; list-style: none; }
.ph-aside li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ph-indigo);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}
.ph-aside li a::after {
    content: "\f105";
    font-family: "Line Awesome Free";
    font-weight: 900;
    color: var(--ph-orange);
}
.ph-aside li a:hover { background: var(--ph-off); }

/* Old sidebar widget, used by pages not yet moved over */
.sidebar .widget-box {
    background: var(--ph-white);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    padding: 24px;
    box-shadow: none;
}

/*--------------------------------------------------------------
  Consultation form
--------------------------------------------------------------*/
.ph-form-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 32px;
    background: var(--ph-orange-50);
}
.ph-form-panel__body { padding: 48px; }
.ph-form-panel .section-sub-title { background: var(--ph-white); }
.ph-form-panel__media { position: relative; min-height: 320px; }
.ph-form-panel__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ph-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ph-form .ph-span-2 { grid-column: 1 / -1; }
.ph-form .form-group { margin: 0; }
.ph-form .text-danger { font-size: 13px; }
@media (max-width: 991px) {
    .ph-form-panel { grid-template-columns: 1fr; }
    .ph-form-panel__media { min-height: 240px; order: -1; }
    .ph-form-panel__body { padding: 32px 24px; }
}
@media (max-width: 575px) {
    .ph-form { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
  Pricing plans
--------------------------------------------------------------*/
.ph-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 28px 28px;
}
.ph-plan__badge {
    position: absolute;
    top: 20px;
    right: 20px;
}
.ph-plan h3 { font-size: 22px; margin: 0 0 18px; }
.ph-plan__price {
    font-family: "Fredoka One", sans-serif;
    font-size: 44px;
    line-height: 1;
    color: var(--ph-indigo);
    margin: 0 0 24px;
}
.ph-plan ul { margin: 0 0 28px; padding: 0; list-style: none; flex: 1; }
.ph-plan li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--ph-text);
    border-bottom: 1px dashed var(--ph-line);
}
.ph-plan li:last-child { border-bottom: 0; }
.ph-plan li i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ph-green) 14%, #fff);
    color: var(--ph-green);
    font-size: 13px;
    margin-top: 1px;
}
.ph-plan.is-featured {
    background: linear-gradient(160deg, #3B3862 0%, #5A5690 100%);
    border-color: transparent;
    box-shadow: var(--ph-shadow-lg);
}
.ph-plan.is-featured h3,
.ph-plan.is-featured li { color: var(--ph-white); }
.ph-plan.is-featured li { border-bottom-color: rgba(255, 255, 255, .14); }
.ph-plan.is-featured .ph-plan__price { color: var(--ph-orange); }
.ph-plan.is-featured li i { background: rgba(255, 255, 255, .14); color: var(--ph-white); }

/*--------------------------------------------------------------
  FAQ
--------------------------------------------------------------*/
.ph-faq {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}
.ph-faq__aside img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ph-radius);
    margin-top: 8px;
}
.ph-faq__list { display: grid; gap: 12px; }
.ph-faq__item {
    border: 1px solid var(--ph-line);
    border-radius: 20px;
    background: var(--ph-white);
    transition: box-shadow .2s, border-color .2s;
}
.ph-faq__item.is-open { border-color: transparent; box-shadow: var(--ph-shadow); }
.ph-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    border: 0;
    background: none;
    text-align: left;
    color: var(--ph-indigo);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.ph-faq__q i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ph-orange-50);
    color: var(--ph-orange);
    font-size: 16px;
    transition: transform .25s var(--ph-ease), background .2s, color .2s;
}
.ph-faq__item.is-open .ph-faq__q i { transform: rotate(45deg); background: var(--ph-orange); color: var(--ph-indigo); }
.ph-faq__a {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ph-text);
}
.ph-faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
    .ph-faq { grid-template-columns: 1fr; gap: 32px; }
    .ph-faq__aside img { display: none; }
}

/*--------------------------------------------------------------
  Testimonials
--------------------------------------------------------------*/
.ph-quotes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--ph-indigo-100) transparent;
}
.ph-quote {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    border: 0;
    box-shadow: var(--ph-shadow);
}
.ph-quote__mark {
    font-family: "Fredoka One", sans-serif;
    font-size: 72px;
    line-height: .6;
    height: 36px;
    color: var(--ph-orange);
}
.ph-quote blockquote {
    padding: 0;
    background: none;
    border-radius: 0;
    font-style: normal;
    margin: 0 0 24px;
    flex: 1;
    color: var(--ph-indigo);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}
.ph-quote__who { display: flex; align-items: center; gap: 12px; }
.ph-quote__who img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ph-orange-100);
}
.ph-quote__who strong { display: block; color: var(--ph-indigo); font-size: 15px; font-weight: 600; }
.ph-quote__who small { color: var(--ph-gray); font-size: 13px; }
@media (max-width: 991px) {
    .ph-quotes { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 575px) {
    .ph-quotes { grid-auto-columns: 86%; }
}

/*--------------------------------------------------------------
  Contact
--------------------------------------------------------------*/
.ph-contact {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: stretch;
}
.ph-contact__list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ph-contact__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--ph-off);
}
.ph-contact__list strong { display: block; color: var(--ph-indigo); font-size: 15px; font-weight: 600; }
.ph-contact__list span,
.ph-contact__list a { color: var(--ph-text); font-size: 14.5px; text-decoration: none; word-break: break-word; }
.ph-contact__map {
    overflow: hidden;
    border-radius: var(--ph-radius);
    min-height: 360px;
    background: var(--ph-off);
}
.ph-contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 991px) {
    .ph-contact { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
  Footer
--------------------------------------------------------------*/
.ph-footer {
    position: relative;
    margin-top: 32px;
    padding: 72px 0 0;
    background: var(--ph-indigo);
    color: rgba(255, 255, 255, .78);
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    isolation: isolate;
}
.ph-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ph-paw) 0 0 / 96px;
    opacity: .05;
    z-index: -1;
}
.ph-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
}
.ph-footer__logo img { height: 64px; width: auto; }
.ph-footer p { color: rgba(255, 255, 255, .78); font-size: 14.5px; line-height: 1.7; margin: 18px 0 0; }
.ph-footer h3 {
    color: var(--ph-white);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 6px 0 18px;
}
.ph-footer ul { margin: 0; padding: 0; list-style: none; }
.ph-footer__links li + li { margin-top: 10px; }
.ph-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14.5px; }
.ph-footer a:hover { color: var(--ph-orange); }
.ph-footer__contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
}
.ph-footer__contact li + li { margin-top: 12px; }
.ph-footer__contact i { color: var(--ph-orange); font-size: 18px; margin-top: 2px; }
.ph-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.ph-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--ph-white);
    font-size: 18px;
}
.ph-footer__social a:hover { background: var(--ph-orange); color: var(--ph-indigo); }
/* Line Awesome has no TikTok icon: draw it in the text colour, same size as the other icons */
.la-tiktok::before {
    content: "";
    display: inline-block;
    width: .9em;
    height: .9em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph-newsletter {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-top: 16px;
    border-radius: var(--ph-pill);
    background: rgba(255, 255, 255, .1);
}
.ph-newsletter input {
    flex: 1;
    border-radius: var(--ph-pill);
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--ph-white);
    font-size: 14.5px;
}
.ph-newsletter input::placeholder { color: rgba(255, 255, 255, .6); }
.ph-newsletter input:focus { outline: none; }
.ph-newsletter .ph-btn { padding: 10px 20px; }
.ph-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px;
    color: rgba(255, 255, 255, .6);
}
.ph-footer__bottom p { margin: 0; font-size: 13.5px; color: inherit; }
.ph-footer__bottom a { font-size: 13.5px; }
.ph-footer__tagline { font-family: "Covered By Your Grace", cursive; font-size: 20px; color: var(--ph-orange); }
@media (max-width: 991px) {
    .ph-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .ph-footer { border-radius: 28px 28px 0 0; padding-top: 56px; }
    .ph-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .ph-footer__bottom { flex-direction: column; text-align: center; }
}

/*--------------------------------------------------------------
  Auth pages (login, register, password reset)
--------------------------------------------------------------*/
.ph-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: 100vh;
    background: var(--ph-white);
}
.ph-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    margin: 16px;
    padding: 40px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #3B3862 0%, #5A5690 100%);
    color: var(--ph-white);
    isolation: isolate;
}
.ph-auth__brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ph-paw) 0 0 / 96px;
    opacity: .07;
    z-index: -1;
}
.ph-auth__brand::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -120px;
    border-radius: 50%;
    background: var(--ph-orange);
    z-index: -1;
}
.ph-auth__brand .ph-logo img { height: 56px; }
.ph-auth__brand h2 { color: var(--ph-white); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; margin: 0 0 16px; max-width: 460px; }
.ph-auth__brand p { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 420px; margin: 0; }
.ph-auth__points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.ph-auth__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ph-auth__points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: var(--ph-orange);
    font-size: 19px;
}
.ph-auth__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}
.ph-auth__card { width: 100%; max-width: 460px; margin: 0 auto; }
.ph-auth__mobile-logo { display: none; margin-bottom: 28px; }
.ph-auth__mobile-logo img { height: 52px; }
.ph-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--ph-gray);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.ph-auth__back:hover { color: var(--ph-indigo); }
.ph-auth .account-form-area { padding: 0; background: none; box-shadow: none; border: 0; }
@media (max-width: 991px) {
    .ph-auth { grid-template-columns: 1fr; }
    .ph-auth__brand { display: none; }
    .ph-auth__mobile-logo { display: block; }
    .ph-auth__main { justify-content: flex-start; padding-top: 32px; }
}

/*--------------------------------------------------------------
  Shared old-template components, brought in line
--------------------------------------------------------------*/
.dash-card,
.custom--card,
.card.custom--card {
    border: 1px solid var(--ph-line) !important;
    border-radius: var(--ph-radius) !important;
    box-shadow: 0 1px 2px rgba(16, 22, 58, .04) !important;
}
.custom--card .card-header {
    background: var(--ph-white);
    border-bottom: 1px solid var(--ph-line);
}
.custom--card .card-header .title,
.custom--card .card-header h5 { color: var(--ph-indigo); }

.panel-tab {
    border-radius: var(--ph-pill) !important;
    padding: 9px 22px !important;
    font-family: "Poppins", sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.4;
    min-width: 120px;
    text-align: center;
    color: var(--ph-indigo) !important;
    border: 1.5px solid var(--ph-orange) !important;
    background: transparent;
    transition: background .15s, color .15s;
}
.panel-tab:hover { background: var(--ph-orange-50, #FDF1E6); }
.panel-tab.active,
.panel-tab.active:hover {
    background: var(--ph-orange) !important;
    color: var(--ph-indigo) !important;
}

.cookies-card {
    border-radius: var(--ph-radius) !important;
    box-shadow: var(--ph-shadow-lg) !important;
    border: 1px solid var(--ph-line);
}

.modal-content {
    border: 0 !important;
    border-radius: var(--ph-radius) !important;
    box-shadow: var(--ph-shadow-lg);
}

.pagination .page-item .page-link {
    border-radius: 12px !important;
    margin: 0 3px;
    border: 1px solid var(--ph-line);
    color: var(--ph-indigo);
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination .page-item.active .page-link {
    background: var(--ph-indigo) !important;
    border-color: var(--ph-indigo) !important;
    color: var(--ph-white) !important;
}

.lf-cta { border-radius: 20px !important; }
.lf-card { border-radius: 20px !important; }

/* Make room under the title band when a filter card overlaps it */
.ph-page-hero:has(+ section .ph-filter) .ph-page-hero__panel { padding-bottom: 104px; }
@media (max-width: 767px) {
    .ph-page-hero:has(+ section .ph-filter) .ph-page-hero__panel { padding-bottom: 72px; }
}

/* Orange text is for accents only; links in copy use a darker orange-indigo mix */
.text--base,
a.text--base {
    color: #B3560F !important; /* 4.94:1 on white */
    font-weight: 600;
}
.btn--base.active {
    background: transparent;
    border-color: var(--ph-indigo-100);
    color: var(--ph-indigo);
}
.btn--base.active:hover,
.btn--base.active:focus-visible {
    background: var(--ph-off);
    border-color: var(--ph-indigo);
    color: var(--ph-indigo);
    box-shadow: none;
}
.ph-auth .account-form button[type="submit"].btn--base { width: 100%; padding-top: 15px; padding-bottom: 15px; }
.ph-auth .account-form-area h3.title { font-size: 30px; margin-bottom: 6px; }

@media (max-width: 575px) {
    .container { padding-left: 16px; padding-right: 16px; }
}

/*--------------------------------------------------------------
  Adoption
--------------------------------------------------------------*/
.ph-chip--red { background: color-mix(in srgb, var(--ph-red) 12%, #fff); color: #c43a3b; }

.ph-adopt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--ph-indigo);
    text-decoration: none;
}
.ph-adopt-card:hover { color: var(--ph-indigo); }
.ph-adopt-card__img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--ph-orange-50);
    overflow: hidden;
}
.ph-adopt-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ph-ease);
}
.ph-adopt-card:hover .ph-adopt-card__img img { transform: scale(1.05); }
.ph-adopt-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: var(--ph-orange);
    font-size: 64px;
    background: var(--ph-orange-50);
}
.ph-adopt-card__flag {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--ph-pill);
    background: var(--ph-green);
    color: var(--ph-white);
    font-size: 13px;
    font-weight: 600;
}
.ph-adopt-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 20px;
}
.ph-adopt-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ph-adopt-card__head strong {
    font-family: "Fredoka One", sans-serif;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.2;
}
.ph-adopt-card__breed { font-size: 14px; color: var(--ph-text); }
.ph-adopt-card__facts { font-size: 13.5px; color: var(--ph-gray); }
.ph-adopt-card__city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 500;
}
.ph-adopt-card__city i { color: var(--ph-orange); font-size: 16px; }
.ph-adopt-count { align-self: flex-end; padding: 8px 14px; font-size: 13.5px; }

.ph-adopt-species {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.ph-species {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-pill);
    background: var(--ph-white);
    color: var(--ph-indigo);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s;
}
.ph-species i { font-size: 18px; color: var(--ph-orange); }
.ph-species span {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: var(--ph-pill);
    background: var(--ph-off);
    font-size: 12px;
    font-weight: 600;
}
.ph-species:hover { border-color: var(--ph-indigo-100); }
.ph-species.is-active { background: var(--ph-indigo); border-color: var(--ph-indigo); color: var(--ph-white); }
.ph-species.is-active i { color: var(--ph-orange); }
.ph-species.is-active span { background: rgba(255, 255, 255, .16); }
.ph-adopt-species--form { margin-bottom: 0; }

.ph-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--ph-indigo-50);
    color: var(--ph-indigo);
    font-weight: 500;
}
.ph-notice i { font-size: 22px; }
.ph-notice--green { background: color-mix(in srgb, var(--ph-green) 14%, #fff); }
.ph-notice--green i { color: var(--ph-green); }

.ph-adopt {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.ph-adopt__gallery { position: sticky; top: 104px; }
.ph-adopt__main {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--ph-radius);
    background: var(--ph-orange-50);
    box-shadow: var(--ph-shadow);
}
.ph-adopt__main img { width: 100%; height: 100%; object-fit: cover; }
.ph-adopt__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.ph-adopt__thumbs button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: none;
    opacity: .7;
    transition: opacity .2s, border-color .2s;
}
.ph-adopt__thumbs button.is-active,
.ph-adopt__thumbs button:hover { opacity: 1; border-color: var(--ph-orange); }
.ph-adopt__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ph-adopt__name { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0 0 8px; }
.ph-adopt__meta { color: var(--ph-gray); font-size: 14.5px; margin-bottom: 24px; }
.ph-adopt__meta strong { color: var(--ph-indigo); }
.ph-adopt .ph-prose h4 { font-size: 20px; margin: 24px 0 8px; }
.ph-adopt .ph-prose h4:first-child { margin-top: 0; }

.ph-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ph-facts li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--ph-off);
}
.ph-facts i {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--ph-white);
    color: var(--ph-orange);
    font-size: 20px;
}
.ph-facts span { font-size: 12.5px; color: var(--ph-gray); line-height: 1.2; }
.ph-facts strong { font-size: 14.5px; color: var(--ph-indigo); font-weight: 600; line-height: 1.3; }

.ph-adopt__request { margin-top: 48px; scroll-margin-top: 110px; }
.ph-adopt__panel { padding: 28px; border: 0; box-shadow: var(--ph-shadow-lg); }
.ph-adopt__panel h4 { font-size: 22px; margin: 0 0 4px; }
.ph-adopt__panel p { margin: 0; }
.ph-adopt__panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.ph-adopt__panel--row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ph-adopt__panel--row > div { flex: 1 1 280px; }

.ph-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ph-indigo);
}
.ph-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--ph-orange);
    border: 0;
}

@media (max-width: 991px) {
    .ph-adopt { grid-template-columns: 1fr; gap: 32px; }
    .ph-adopt__gallery { position: static; }
}
@media (max-width: 575px) {
    .ph-facts { grid-template-columns: 1fr; }
    .ph-adopt__panel { padding: 20px; }
    .ph-adopt__panel--row .ph-btn { width: 100%; }
}

/* Account pages: my listings / my requests / listing form */
.ph-account-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 8px 0 24px;
}
.ph-account-head h3 { font-size: 28px; margin: 0 0 4px; }
.ph-account-head p { margin: 0; }

.ph-listings { display: grid; gap: 16px; }
.ph-listing-row { padding: 18px; }
.ph-listing-row__main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ph-listing-row__img {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ph-orange-50);
    color: var(--ph-orange);
    font-size: 34px;
}
.ph-listing-row__img img { width: 100%; height: 100%; object-fit: cover; }
.ph-listing-row__body { flex: 1 1 260px; min-width: 0; }
.ph-listing-row__body h4 { font-size: 20px; }
.ph-listing-row__reason {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ph-red) 10%, #fff);
    color: #a33233;
    font-size: 13.5px;
}
.ph-listing-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ph-listing-row__actions .ph-iconbtn { width: 38px; height: 38px; font-size: 18px; }
.ph-listing-row__actions .ph-iconbtn:hover { background: color-mix(in srgb, var(--ph-red) 12%, #fff); color: var(--ph-red); }

.ph-requests { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ph-line); }
.ph-requests h6 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; color: var(--ph-gray); margin-bottom: 12px; }
.ph-request { padding: 16px; border-radius: 16px; background: var(--ph-off); }
.ph-request + .ph-request { margin-top: 10px; }
.ph-request__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ph-request__head strong { color: var(--ph-indigo); font-size: 15.5px; }
.ph-request__head small { margin-left: auto; color: var(--ph-gray); }
.ph-request__msg { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
.ph-request__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ph-green) 12%, #fff);
    font-size: 14px;
    color: var(--ph-indigo);
}
.ph-request__contact a { color: var(--ph-indigo); font-weight: 600; text-decoration: none; }
.ph-request__contact i { color: #1f9d57; }

.ph-listing { max-width: 880px; margin: 0 auto; display: grid; gap: 20px; }
.ph-listing__intro h3 { font-size: 30px; margin-bottom: 6px; }
.ph-listing__intro p { margin: 0; }
.ph-listing__step { padding: 28px; margin: 0; min-width: 0; }
/* Floated so the legend sits inside the card instead of on its border */
.ph-listing__step legend {
    float: left;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-family: "Fredoka One", sans-serif;
    font-size: 21px;
    color: var(--ph-indigo);
}
.ph-listing__step legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ph-orange);
    color: var(--ph-indigo);
    font-size: 16px;
}
.ph-listing__step legend + * { clear: both; }
.ph-listing__hint { margin: -8px 0 16px; font-size: 14px; color: var(--ph-gray); }
.ph-listing__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ph-listing__checks > div { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 16px; background: var(--ph-off); }
.ph-listing__checks h6 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; margin: 0 0 2px; }
@media (max-width: 575px) {
    .ph-listing__step { padding: 20px; }
    .ph-listing__checks { grid-template-columns: 1fr; }
}

.ph-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.ph-photos__item,
.ph-photos__add {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
}
.ph-photos__item img { width: 100%; height: 100%; object-fit: cover; }
.ph-photos__item button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 22, 58, .7);
    color: var(--ph-white);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph-photos__add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    border: 2px dashed var(--ph-indigo-100);
    background: var(--ph-off);
    color: var(--ph-indigo);
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ph-photos__add i { font-size: 30px; color: var(--ph-orange); }
.ph-photos__add:hover { border-color: var(--ph-orange); background: var(--ph-orange-50); }

/*--------------------------------------------------------------
  Service detail page
--------------------------------------------------------------*/
.ph-service-intro .ph-prose h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.ph-service-intro .ph-photo img { aspect-ratio: 1 / 1; max-height: 560px; }

.ph-included {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ph-included li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
    background: var(--ph-white);
    border: 1px solid var(--ph-line);
    color: var(--ph-indigo);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.45;
}
.ph-included i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ph-green) 14%, #fff);
    color: var(--ph-green);
    font-size: 16px;
}

.ph-service-more {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
}
.ph-service-more:has(> :only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.ph-service-more__title { font-size: 28px; margin-bottom: 18px; }
.ph-service-notes { padding: 28px; border: 0; box-shadow: var(--ph-shadow); }
.ph-service-notes h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 16px; }
.ph-service-notes h3 i { color: var(--ph-orange); font-size: 28px; }
.ph-service-notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ph-service-notes li {
    position: relative;
    padding: 0 0 12px 22px;
    border-bottom: 1px dashed var(--ph-line);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ph-text);
}
.ph-service-notes li:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-service-notes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ph-orange);
}
@media (max-width: 991px) {
    .ph-service-more { grid-template-columns: 1fr; }
    .ph-service-intro .ph-photo img { aspect-ratio: 4 / 3; }
}

.ph-service-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 24px;
    color: var(--ph-text);
    text-decoration: none;
    font-size: 14.5px;
    line-height: 1.55;
}
.ph-service-link:hover { color: var(--ph-text); }
.ph-service-link strong { font-family: "Fredoka One", sans-serif; font-weight: 400; font-size: 20px; color: var(--ph-indigo); margin-top: 8px; }
.ph-service-link .ph-link { padding-top: 8px; }

/*--------------------------------------------------------------
  Pet health record (owner's pet page and the vet panel)
--------------------------------------------------------------*/
.ph-listing--wide { max-width: 1040px; }
.ph-iconbtn--sm { width: 36px; height: 36px; font-size: 18px; flex-shrink: 0; }
.ph-iconbtn--sm:hover { background: color-mix(in srgb, var(--ph-red) 12%, #fff); color: var(--ph-red); }
.ph-btn--danger { color: var(--ph-red); border-color: color-mix(in srgb, var(--ph-red) 35%, #fff); }
.ph-btn--danger:hover,
.ph-btn--danger:focus-visible { background: color-mix(in srgb, var(--ph-red) 10%, #fff); color: var(--ph-red); border-color: var(--ph-red); }

.ph-progress { height: 10px; border-radius: var(--ph-pill); background: var(--ph-indigo-50); overflow: hidden; }
.ph-progress span { display: block; height: 100%; border-radius: inherit; background: var(--ph-orange); transition: width .4s var(--ph-ease); }
.ph-progress--sm { height: 6px; }

.ph-record { display: grid; gap: 20px; }
.ph-record__head { display: flex; align-items: center; gap: 22px; padding: 24px; }
.ph-record__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 40px; }
.ph-record__headbody { min-width: 0; }
.ph-record__headbody h3 { font-size: 30px; margin: 0 0 10px; }
.ph-record__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ph-record__facts span { display: grid; font-weight: 500; color: var(--ph-indigo); }
.ph-record__facts small { font-size: 12px; font-weight: 500; color: var(--ph-gray); text-transform: uppercase; letter-spacing: .04em; }
.ph-record__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ph-record__block { padding: 24px; min-width: 0; }
.ph-record__block h4 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 16px; }
.ph-record__block h4 i { color: var(--ph-orange); font-size: 24px; }
.ph-record__list { display: grid; gap: 12px; margin: 0; }
.ph-record__list div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; }
.ph-record__list dt { font-weight: 500; color: var(--ph-gray); font-size: 14px; }
.ph-record__list dd { margin: 0; color: var(--ph-indigo); font-weight: 500; overflow-wrap: anywhere; }
.ph-record__health { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-record__health > div { padding: 14px 16px; border-radius: 16px; background: var(--ph-off); }
.ph-record__health > div.is-alert { background: color-mix(in srgb, var(--ph-red) 9%, #fff); }
.ph-record__health > div.is-alert h6 { color: #c43a3b; }
.ph-record__health h6 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; margin: 0 0 4px; color: var(--ph-indigo); }
.ph-record__health p { margin: 0; font-size: 15px; white-space: pre-line; color: var(--ph-indigo); }
.ph-record__empty { margin: 0; color: var(--ph-gray); font-size: 14.5px; }
.ph-record__muted { color: var(--ph-gray); }
.ph-record__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ph-record__table th { font-weight: 500; font-size: 13px; color: var(--ph-gray); text-align: left; padding: 0 12px 8px 0; white-space: nowrap; }
.ph-record__table td { padding: 10px 12px 10px 0; border-top: 1px solid var(--ph-line); color: var(--ph-indigo); vertical-align: middle; }
.ph-record__table td:last-child, .ph-record__table th:last-child { padding-right: 0; }
.ph-record__addform { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--ph-off); }
.ph-record__progress { display: grid; grid-template-columns: 1fr minmax(160px, 260px); align-items: center; gap: 20px; padding: 20px 24px; }
.ph-record__progress strong { color: var(--ph-indigo); }
.ph-record__progress p { margin: 2px 0 0; font-size: 14px; }
.ph-record__visit { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; background: var(--ph-orange-50); border-color: transparent; }
.ph-record__visit strong { color: var(--ph-indigo); }

.ph-docs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ph-docs__item { display: flex; align-items: center; gap: 8px; }
.ph-docs__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--ph-line); border-radius: 16px; color: var(--ph-indigo); text-decoration: none; transition: border-color .2s, background .2s; }
.ph-docs__link:hover { border-color: var(--ph-orange); background: var(--ph-orange-50); color: var(--ph-indigo); }
.ph-docs__body { min-width: 0; display: grid; }
.ph-docs__body small { color: var(--ph-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-docs__open { margin-left: auto; color: var(--ph-orange); }

.ph-petcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 22px 22px; color: var(--ph-indigo); text-decoration: none; }
.ph-petcard:hover { color: var(--ph-indigo); }
.ph-petcard__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; font-size: 40px; }
.ph-petcard h5 { margin: 0; font-size: 21px; }
.ph-petcard__meta { margin: 0 0 8px; font-size: 14px; color: var(--ph-gray); }
.ph-petcard__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13.5px; margin-bottom: 12px; }
.ph-petcard__stats i { color: var(--ph-orange); }
.ph-petcard .ph-progress { width: 100%; }
.ph-petcard__complete { color: var(--ph-gray); margin: 6px 0 14px; }

.ph-share-record { padding: 14px 16px; border-radius: 16px; background: var(--ph-orange-50); }
.ph-share-record__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 0 30px; font-size: 13px; color: var(--ph-indigo); text-decoration: none; }
.ph-share-record__meta:hover { color: var(--ph-orange); }
.appt-card__record { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border-radius: var(--ph-pill); background: var(--ph-orange-50); color: var(--ph-indigo); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.appt-card__record:hover { background: var(--ph-orange-100); color: var(--ph-indigo); }

@media (max-width: 767px) {
    .ph-record__grid, .ph-record__health, .ph-record__progress { grid-template-columns: 1fr; }
    .ph-record__head { flex-direction: column; text-align: center; }
    .ph-record__facts { justify-content: center; }
    .ph-record__list div { grid-template-columns: 1fr; gap: 2px; }
    .ph-share-record__meta { margin-left: 0; }
}

/*--------------------------------------------------------------
  Date & time picker (flatpickr, themed) - DateInput / TimeInput and the booking calendar
--------------------------------------------------------------*/
.ph-datefield { position: relative; }
.ph-datefield .form--control { padding-right: 76px; cursor: pointer; background-color: var(--ph-white); }
.ph-datefield--time .form--control { padding-right: 44px; }
.ph-datefield .form--control:disabled { cursor: not-allowed; background-color: var(--ph-off); color: var(--ph-gray); }
.ph-datefield .form--control.is-invalid { border-color: var(--ph-red); }
.ph-datefield__icon { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); font-size: 20px; color: var(--ph-orange); pointer-events: none; }
.ph-datefield__clear {
    position: absolute; top: 50%; right: 44px; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
    background: var(--ph-off); color: var(--ph-gray); font-size: 13px;
}
.ph-datefield__clear:hover { background: var(--ph-orange-50); color: var(--ph-indigo); }

.flatpickr-calendar {
    font-family: "Poppins", sans-serif;
    width: 320px;
    padding: 10px 10px 12px;
    border: 1px solid var(--ph-line);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 22, 58, .16);
    background: var(--ph-white);
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-calendar.open { margin-top: 6px; }
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer { width: 100%; min-width: 0; max-width: none; }
.flatpickr-months { align-items: center; padding: 2px 0 8px; }
.flatpickr-months .flatpickr-month { height: 40px; color: var(--ph-indigo); fill: var(--ph-indigo); }
.flatpickr-current-month { font-size: 16px; font-weight: 600; padding-top: 8px; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 600; border-radius: 8px; }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover { background: var(--ph-orange-50); }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    top: 12px; width: 34px; height: 34px; padding: 9px; border-radius: 50%; color: var(--ph-indigo); fill: var(--ph-indigo);
}
.flatpickr-months .flatpickr-prev-month { left: 12px; }
.flatpickr-months .flatpickr-next-month { right: 12px; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--ph-orange-50); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--ph-orange); }
span.flatpickr-weekday { color: var(--ph-gray); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.flatpickr-day {
    max-width: none; height: 40px; line-height: 38px; border-radius: 12px; margin: 1px 0;
    color: var(--ph-indigo); font-weight: 500; font-size: 14px; border: 1.5px solid transparent;
}
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--ph-orange-50); border-color: var(--ph-orange-50); color: var(--ph-indigo); }
.flatpickr-day.today { border-color: var(--ph-orange); }
.flatpickr-day.today:hover { background: var(--ph-orange-50); color: var(--ph-indigo); border-color: var(--ph-orange); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus,
.flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--ph-orange); border-color: var(--ph-orange); color: var(--ph-indigo); font-weight: 600; box-shadow: none;
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--ph-indigo-100); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
    background: transparent; border-color: transparent; color: var(--ph-indigo-100); text-decoration: line-through; cursor: not-allowed;
}
.flatpickr-calendar.hasTime.noCalendar { width: 180px; padding: 8px; }
.flatpickr-time { border-top: 0 !important; border-radius: 14px; }
.flatpickr-calendar.hasTime:not(.noCalendar) .flatpickr-time { border-top: 1px solid var(--ph-line) !important; margin-top: 6px; }
.flatpickr-time input, .flatpickr-time .flatpickr-time-separator, .flatpickr-time .flatpickr-am-pm { color: var(--ph-indigo); font-weight: 600; font-size: 18px; }
.flatpickr-time input:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:hover { background: var(--ph-orange-50); border-radius: 10px; }
.flatpickr-time .numInputWrapper span.arrowUp::after { border-bottom-color: var(--ph-orange); }
.flatpickr-time .numInputWrapper span.arrowDown::after { border-top-color: var(--ph-orange); }
@media (max-width: 400px) { .flatpickr-calendar:not(.noCalendar) { width: calc(100vw - 32px); } }

/*--------------------------------------------------------------
  Vet chat (customer Messages and vet panel)
--------------------------------------------------------------*/
.ph-badge-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--ph-pill);
    background: var(--ph-red); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
}

.ph-chatcta { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--ph-orange-50); border-color: transparent; color: var(--ph-indigo); text-decoration: none; transition: transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease); }
.ph-chatcta:hover { color: var(--ph-indigo); transform: translateY(-2px); box-shadow: var(--ph-shadow); }
.ph-chatcta .ph-icon { background: var(--ph-white); flex-shrink: 0; }
.ph-chatcta__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ph-chatcta__body small { color: var(--ph-gray); font-size: 14px; }
@media (max-width: 767px) { .ph-chatcta { flex-wrap: wrap; } .ph-chatcta .ph-btn { width: 100%; justify-content: center; } }

.ph-chatlist { list-style: none; margin: 0; padding: 6px; }
.ph-chatlist li + li { border-top: 1px solid var(--ph-line); }
.ph-chatlist__row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; color: var(--ph-indigo); text-decoration: none; }
.ph-chatlist__row:hover { background: var(--ph-off); color: var(--ph-indigo); }
.ph-chatlist__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ph-chatlist__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ph-chatlist__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-chatlist__top small { color: var(--ph-gray); font-size: 12.5px; }
.ph-chatlist__preview { color: var(--ph-gray); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-chatlist__row.is-unread .ph-chatlist__preview { color: var(--ph-indigo); font-weight: 600; }

.ph-chatpage { max-width: 880px; margin: 0 auto; }
.ph-chatpage.has-record { max-width: 1240px; }
.ph-chatpage__layout { display: grid; gap: 20px; align-items: start; }
.ph-chatpage.has-record .ph-chatpage__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.ph-chatpage__card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ph-chatpage__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--ph-line); }
.ph-chatpage__who { display: flex; align-items: center; gap: 12px; color: var(--ph-indigo); text-decoration: none; min-width: 0; }
.ph-chatpage__who:hover { color: var(--ph-indigo); }
.ph-chatpage__who img, .ph-chatpage__who .ph-icon { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ph-chatpage__who > span:last-child { display: grid; min-width: 0; }
.ph-chatpage__who small { color: var(--ph-gray); font-size: 13px; }
.ph-chatpage__pet { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 10px 20px; background: var(--ph-off); border-bottom: 1px solid var(--ph-line); font-size: 14px; }
.ph-chatpage__petselect { position: relative; display: flex; align-items: center; margin: 0; }
.ph-chatpage__petselect > i { position: absolute; left: 14px; color: var(--ph-orange); font-size: 18px; pointer-events: none; }
.ph-chatpage__petselect select.form--control { height: 40px; padding-left: 40px; font-size: 14px; min-width: 220px; }
.ph-chatpage__notice { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: color-mix(in srgb, var(--ph-green) 12%, #fff); color: #1f7a48; font-size: 14px; }
.ph-chatpage__emergency { margin: 14px 4px 0; font-size: 13px; color: var(--ph-gray); }
.ph-chatpage__emergency i { color: var(--ph-amber); }
.ph-chatpage__record { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; border-radius: var(--ph-radius); }
.ph-chatpage__record .ph-record { gap: 14px; }
.ph-chatpage__record .ph-record__grid, .ph-chatpage__record .ph-record__health { grid-template-columns: 1fr; }
.ph-chatpage__record .ph-record__head { padding: 18px; gap: 14px; }
.ph-chatpage__record .ph-record__photo { width: 64px; height: 64px; font-size: 28px; }
.ph-chatpage__record .ph-record__headbody h3 { font-size: 22px; }
.ph-chatpage__record .ph-record__block { padding: 18px; }
.ph-chatpage__recordbtn { display: none; }
@media (max-width: 1199px) {
    .ph-chatpage.has-record .ph-chatpage__layout { grid-template-columns: 1fr; }
    .ph-chatpage__record { display: none; position: static; max-height: none; }
    .ph-chatpage__record.is-open { display: block; }
    .ph-chatpage__recordbtn { display: inline-flex; }
}

.ph-chat { display: flex; flex-direction: column; height: min(68vh, 680px); min-height: 420px; }
.ph-chat__list { flex: 1; overflow-y: auto; padding: 18px 20px; background: linear-gradient(var(--ph-white), var(--ph-white)); scroll-behavior: smooth; }
.ph-chat__empty { display: grid; justify-items: center; text-align: center; gap: 8px; max-width: 420px; margin: 40px auto; color: var(--ph-indigo); }
.ph-chat__empty p { color: var(--ph-gray); font-size: 14.5px; margin: 0; }
.ph-chat__day { display: flex; justify-content: center; margin: 14px 0 10px; }
.ph-chat__day span { padding: 4px 12px; border-radius: var(--ph-pill); background: var(--ph-off); color: var(--ph-gray); font-size: 12px; font-weight: 500; }
.ph-chat__system { text-align: center; color: var(--ph-gray); font-size: 13px; margin: 8px 0; }
.ph-chat__row { display: flex; margin: 4px 0; }
.ph-chat__row.is-mine { justify-content: flex-end; }
.ph-chat__bubble {
    position: relative; max-width: min(78%, 520px); padding: 10px 14px 8px; border-radius: 18px 18px 18px 6px;
    background: var(--ph-indigo-50); color: var(--ph-indigo); font-size: 15px; line-height: 1.5;
}
.ph-chat__row.is-mine .ph-chat__bubble { border-radius: 18px 18px 6px 18px; background: var(--ph-orange-100); }
.ph-chat__bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; font-size: inherit; }
.ph-chat__bubble time { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: color-mix(in srgb, var(--ph-indigo) 55%, transparent); }
.ph-chat__bubble.is-visit { background: var(--ph-white); border: 1.5px solid var(--ph-orange); }
.ph-chat__visit-tag { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ph-orange) 65%, var(--ph-indigo)); text-transform: uppercase; letter-spacing: .03em; }
.ph-chat__visit-note { display: block; margin-top: 6px; color: var(--ph-gray); font-size: 12.5px; }
.ph-chat__image { display: block; margin-top: 6px; }
.ph-chat__image img { display: block; max-width: 100%; max-height: 280px; border-radius: 12px; object-fit: cover; }
.ph-chat__file { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--ph-indigo); text-decoration: none; }
.ph-chat__file i { font-size: 26px; color: var(--ph-red); }
.ph-chat__file span { display: grid; min-width: 0; }
.ph-chat__file strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-chat__file small { font-size: 12px; color: var(--ph-gray); }
.ph-btn--sm { padding: 8px 16px; font-size: 14px; min-height: 0; }

.ph-chat__composer { padding: 12px 16px 14px; border-top: 1px solid var(--ph-line); background: var(--ph-white); }
.ph-chat__tools { display: flex; gap: 8px; margin-bottom: 10px; }
.ph-chat__tool { border: 0; cursor: pointer; font-size: 13px; padding: 7px 13px; }
.ph-chat__tool:hover { background: var(--ph-orange-100); }
.ph-chat__pending { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 8px; padding: 6px 8px 6px 12px; border-radius: var(--ph-pill); background: var(--ph-off); font-size: 13.5px; color: var(--ph-indigo); }
.ph-chat__pending span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-chat__pending button { border: 0; background: transparent; color: var(--ph-gray); padding: 0 4px; }
.ph-chat__inputrow { display: flex; align-items: flex-end; gap: 10px; }
.ph-chat__input.form--control { flex: 1; height: auto; min-height: 48px; max-height: 160px; padding: 12px 16px; resize: none; field-sizing: content; border-radius: 24px; }
.ph-chat__send {
    flex-shrink: 0; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--ph-orange); color: var(--ph-indigo); font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, opacity .15s;
}
.ph-chat__send:hover:not(:disabled) { transform: scale(1.05); }
.ph-chat__send:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 575px) {
    .ph-chat { height: 72vh; }
    .ph-chat__bubble { max-width: 88%; }
    .ph-chatpage__head .ph-btn { width: 100%; justify-content: center; }
}

/*--------------------------------------------------------------
  Login: one pet owner account, professionals on the side
--------------------------------------------------------------*/
.ph-login-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.ph-login-perks li {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--ph-pill);
    background: var(--ph-orange-50); color: var(--ph-indigo); font-size: 13px; font-weight: 500;
}
.ph-login-perks i { color: var(--ph-orange); font-size: 16px; }

.ph-login-pro {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
    margin-top: 28px; padding: 14px 18px; border: 1px dashed var(--ph-indigo-100); border-radius: 18px;
    font-size: 14px; color: var(--ph-gray);
}
.ph-login-pro > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-login-pro a {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--ph-pill);
    border: 1.5px solid var(--ph-line); color: var(--ph-indigo); font-weight: 600; font-size: 13.5px; text-decoration: none;
    transition: border-color .2s, background .2s;
}
.ph-login-pro a:hover { border-color: var(--ph-orange); background: var(--ph-orange-50); color: var(--ph-indigo); }
.ph-login-pro a i { color: var(--ph-orange); font-size: 17px; }

.ph-login-switch { display: grid; justify-items: start; gap: 12px; margin-bottom: 22px; }
.ph-segmented { display: inline-flex; padding: 4px; border-radius: var(--ph-pill); background: var(--ph-off); border: 1px solid var(--ph-line); }
.ph-segmented a {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--ph-pill);
    color: var(--ph-indigo); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .2s, box-shadow .2s;
}
.ph-segmented a i { font-size: 18px; color: var(--ph-orange); }
.ph-segmented a.is-active { background: var(--ph-orange); box-shadow: 0 2px 8px rgba(242, 143, 59, .35); }
.ph-segmented a.is-active i { color: var(--ph-indigo); }
.ph-segmented a:not(.is-active):hover { background: var(--ph-white); color: var(--ph-indigo); }
@media (max-width: 400px) { .ph-segmented { width: 100%; } .ph-segmented a { flex: 1; justify-content: center; padding: 9px 10px; } }

/*--------------------------------------------------------------
  Accessibility and consent
--------------------------------------------------------------*/
.ph-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    padding: 10px 18px;
    border-radius: var(--ph-radius-sm);
    background: var(--ph-indigo);
    color: var(--ph-white);
}
.ph-skip:focus { top: 16px; color: var(--ph-white); }
#main-content:focus { outline: 0; }

/* Everything reachable by keyboard shows where the focus is, on light and dark backgrounds alike */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--ph-indigo) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--ph-white);
}
.ph-footer a:focus-visible,
.ph-footer button:focus-visible { outline-color: var(--ph-white) !important; box-shadow: none; }

/* Text colours that passed only for large text. The brand orange stays for icons and on indigo */
.text-danger { color: #C9302F !important; }
.text-success, .text--success { color: #177F45 !important; }
.text--danger { color: #C9302F !important; }
.text--warning, .text-warning { color: #A85A00 !important; }
.text--info, .text-info { color: #0F6FB0 !important; }
.section-header .section-sub-title,
.text--primary { color: #A85010 !important; }
.ph-plan.is-featured .ph-plan__price { color: #B3560F; }
.ph-footer .text--primary { color: var(--ph-orange) !important; }
.btn.btn--primary, .btn--primary { background: var(--ph-orange) !important; color: var(--ph-indigo) !important; }
.btn.btn--success, .btn--success { background: #177F45 !important; color: var(--ph-white) !important; }
.btn.btn--danger, .btn--danger { background: #C9302F !important; color: var(--ph-white) !important; }
.btn.btn--warning, .btn--warning { background: #A85A00 !important; color: var(--ph-white) !important; }
.btn.btn--info, .btn--info { background: #0F6FB0 !important; color: var(--ph-white) !important; }
.badge--success { background: #177F45 !important; color: var(--ph-white) !important; }
.badge--danger { background: #C9302F !important; color: var(--ph-white) !important; }
.badge--warning { background: #A85A00 !important; color: var(--ph-white) !important; }
.badge--info { background: #0F6FB0 !important; color: var(--ph-white) !important; }
.badge--primary { background: var(--ph-orange) !important; color: var(--ph-indigo) !important; }
.ph-chip--orange { color: var(--ph-indigo); }
.reg-checks li:not(.ok) { color: var(--ph-gray); }

.ph-plainbtn {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.ph-linkbtn {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: inherit;
    cursor: pointer;
}
.ph-linkbtn:hover { color: var(--ph-orange); }

.ph-consent {
    text-align: left;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9999;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 20px;
    background: var(--ph-white);
    color: var(--ph-text);
}
.ph-consent[hidden] { display: none; }
.ph-consent__title { font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--ph-indigo); }
.ph-consent p { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.ph-consent a { color: #B3560F; text-decoration: underline; }
.ph-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ph-privacy-note { font-size: 13px; line-height: 1.5; color: var(--ph-gray); margin: 0 0 12px; }
.ph-privacy-note a { color: #A85010; text-decoration: underline; }
.ph-newsletter__note { font-size: 12.5px !important; margin-top: 10px !important; }
.ph-newsletter__note a { text-decoration: underline; }
.ph-footer__business { font-size: 12.5px !important; margin-top: 6px !important; }

.ph-mapgate {
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background: var(--ph-off);
    border-radius: var(--ph-radius-md);
}

.service-content.wyg table { width: 100%; margin-bottom: 20px; border-collapse: collapse; font-size: 14.5px; }
.service-content.wyg th, .service-content.wyg td { padding: 8px 10px; border: 1px solid var(--ph-line); text-align: left; vertical-align: top; }
.service-content.wyg mark { background: #FFF3B0; color: var(--ph-ink); padding: 0 4px; }
