/* ============================================================
   ADOPTION — list, filters, animal card, detail, request form
   ============================================================ */

/* ─── STATUS TABS ──────────────────────────────────────────── */
.adoption-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.75rem;
}

.adoption-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.15rem;
    border: 2px solid var(--border);
    border-radius: 40px;
    background: var(--white);
    color: var(--dark);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .3px;
    transition: border-color .2s, background .2s, color .2s;
}

.adoption-tab:hover { border-color: var(--accent); color: var(--accent); }

.adoption-tab--active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.adoption-tab--active:hover { color: var(--white); }

.adoption-tab__count {
    display: inline-block;
    min-width: 22px;
    padding: 0 .35rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, .08);
    font-size: .72rem;
    line-height: 1.6;
    text-align: center;
}

.adoption-tab--active .adoption-tab__count { background: rgba(255, 255, 255, .25); }

/* ─── FILTERS ──────────────────────────────────────────────── */
.adoption-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.5rem;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.adoption-filter {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1 1 180px;
}

.adoption-filter label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--dark);
}

.adoption-filter select {
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
}

.adoption-filter select:focus {
    outline: none;
    border-color: var(--accent);
}

.adoption-filter--actions {
    flex: 0 0 auto;
    flex-direction: row;
    gap: .6rem;
}

.adoption-count {
    margin-bottom: 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}

/* ─── ANIMAL GRID & CARD ───────────────────────────────────── */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.animal-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.animal-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--light-bg);
    overflow: hidden;
}

.animal-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.animal-card:hover .animal-card__media img { transform: scale(1.05); }

.animal-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--border);
}

.animal-card__featured {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: #eab308;
    font-size: .8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.animal-card__video {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: var(--white);
    font-size: 1.05rem;
    transition: background .25s, transform .25s;
}

.animal-card:hover .animal-card__video {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.08);
}

.animal-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem 1.5rem 1.5rem;
}

.animal-card__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.animal-card__title a:hover { color: var(--accent); }

.animal-card__gender { font-size: .9rem; }
.animal-card__gender--male   { color: #3b82f6; }
.animal-card__gender--female { color: #ec4899; }

.animal-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-bottom: .85rem;
    font-size: .82rem;
    color: var(--text);
}

.animal-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.animal-card__meta i { color: var(--accent); font-size: .78rem; }

.animal-card__desc {
    font-size: .9rem;
    margin-bottom: 1rem;
}

.animal-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.animal-card__cta { margin-top: auto; text-align: center; }

/* ─── STATUS PILL & TAGS ───────────────────────────────────── */
.animal-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--text);
}

.animal-status--available { background: #16a34a; }
.animal-status--reserved  { background: #d97706; }
.animal-status--adopted   { background: #64748b; }

.animal-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 4px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    font-size: .74rem;
    font-weight: 600;
    color: var(--text);
}

.animal-tag i { font-size: .7rem; }
.animal-tag--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

/* ─── EMPTY STATE ──────────────────────────────────────────── */
.adoption-empty {
    text-align: center;
    padding: 4rem 1rem;
    border: 2px dashed var(--border);
    border-radius: 10px;
}

.adoption-empty i { font-size: 2.5rem; color: var(--border); margin-bottom: 1rem; }
.adoption-empty h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.adoption-empty p  { margin-bottom: 1.5rem; }

/* ─── PAGINATION ───────────────────────────────────────────── */
.adoption-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}

.adoption-page {
    min-width: 42px;
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    text-align: center;
    font-weight: 700;
    font-size: .88rem;
    color: var(--dark);
    transition: border-color .2s, background .2s, color .2s;
}

.adoption-page:hover { border-color: var(--accent); color: var(--accent); }

.adoption-page--current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ─── HOW IT WORKS ─────────────────────────────────────────── */
.adoption-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.adoption-step {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.adoption-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.adoption-step h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.adoption-step p  { font-size: .88rem; }

/* ============================================================
   ANIMAL DETAIL
   ============================================================ */
.animal-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.animal-gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
}

.animal-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--border);
}

.animal-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .8rem;
}

.animal-gallery__thumb {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s, opacity .2s;
    opacity: .75;
}

.animal-gallery__thumb:hover { opacity: 1; }
.animal-gallery__thumb.is-active { border-color: var(--accent); opacity: 1; }

.animal-info__name {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.animal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem 1.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.animal-spec dt {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: .25rem;
}

.animal-spec dt i { color: var(--accent); }

.animal-spec dd {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.animal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.animal-info__cta { display: inline-block; }

.animal-info__unavailable {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: .9rem;
}

.animal-info__unavailable a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ─── VIDEO ────────────────────────────────────────────────── */
.animal-video { margin-top: 3rem; }

.animal-video h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.animal-video h3 i { color: var(--accent); font-size: 1rem; }

.animal-video__frame {
    position: relative;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.animal-video__frame iframe,
.animal-video__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.animal-story {
    margin-top: 3rem;
    padding: 2rem 2.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
}

.animal-story h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.animal-story h3 i { color: var(--accent); font-size: 1rem; }
.animal-story__body { font-size: .95rem; }
.animal-story--health { border-left-color: #16a34a; }
.animal-story--health h3 i { color: #16a34a; }

/* ============================================================
   POST-SUBMIT CONFIRMATION
   ============================================================ */
.adoption-thanks {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2.5rem 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.adoption-thanks__icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 1.9rem;
    box-shadow: 0 8px 24px rgba(232, 96, 60, .35);
}

.adoption-thanks__title {
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: .75rem;
}

.adoption-thanks__lead {
    font-size: 1.02rem;
    max-width: 520px;
    margin: 0 auto 1.75rem;
}

.adoption-thanks__photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.adoption-thanks__steps {
    text-align: left;
    counter-reset: step;
    margin-bottom: 1.75rem;
}

.adoption-thanks__steps li {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
}

.adoption-thanks__steps li:last-child { border-bottom: 1px solid var(--border); }

.adoption-thanks__step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .92rem;
}

.adoption-thanks__steps h4 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.adoption-thanks__steps p {
    font-size: .9rem;
    margin: 0;
}

.adoption-thanks__note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    text-align: left;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    background: var(--light-bg);
    font-size: .88rem;
}

.adoption-thanks__note i { color: var(--accent); margin-top: .2rem; }

.adoption-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

/* ============================================================
   ADOPTION REQUEST FORM
   ============================================================ */
.adoption-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.adoption-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.adoption-form-header .overline {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.adoption-form-header h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: .6rem; }
.adoption-form-header p  { font-size: .92rem; }

.adoption-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.adoption-form-row--checks { align-items: center; }

.adoption-field { margin-bottom: 1.25rem; }

.adoption-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--dark);
}

.adoption-input {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s;
}

.adoption-input:focus {
    outline: none;
    border-color: var(--accent);
}

.adoption-textarea { resize: vertical; min-height: 130px; }

.adoption-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 0;
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    cursor: pointer;
}

.adoption-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.adoption-form .form-error,
.adoption-form ul {
    margin-top: .35rem;
    font-size: .82rem;
    color: #dc2626;
}

.adoption-form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.adoption-captcha-note {
    font-size: .78rem;
    color: var(--text);
    text-align: center;
}

.adoption-captcha-note a { color: var(--accent); text-decoration: underline; }

.adoption-submit[disabled] { opacity: .65; cursor: not-allowed; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .animal-detail { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .adoption-form-row { grid-template-columns: 1fr; gap: 0; }
    .adoption-form-wrap { padding: 1.75rem 1.25rem; }
    .adoption-thanks { padding: 2.25rem 1.25rem 2rem; }
    .adoption-thanks__title { font-size: 1.5rem; }
    .adoption-thanks__actions .btn { width: 100%; text-align: center; }
    .animal-info__name { font-size: 1.6rem; }
    .adoption-filter--actions { flex: 1 1 100%; }
    .animal-grid { grid-template-columns: 1fr; }
}
