/* PetsHeaven - Pet Adoption & Donation Stylesheet */

:root {
    --primary-color: #8B0000;
    --primary-light: #c0392b;
    --accent-color: #e11d48;
    --accent-amber: #d97706;
    --accent-green: #059669;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 20px 30px -10px rgba(139, 0, 0, 0.15);
}

/* Hero Section */
.adopt-hero {
    background: linear-gradient(135deg, #4a0404 0%, #8B0000 60%, #991b1b 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.adopt-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.adopt-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.adopt-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.adopt-hero p {
    font-size: 17px;
    max-width: 680px;
    margin: 0 auto 25px;
    opacity: 0.92;
    line-height: 1.6;
}
.adopt-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: #fff;
    color: #8B0000;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.btn-hero-primary:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Care Policy & Workflow Section */
.policy-section {
    background: #fff;
    padding: 40px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.policy-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.policy-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease;
}
.policy-item:hover {
    transform: translateY(-3px);
}
.policy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fee2e2;
    color: #8B0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}
.policy-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.policy-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Filter Bar */
.filter-bar-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    max-width: 1200px;
    margin: -30px auto 30px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-btn.active, .filter-btn:hover {
    background: #8B0000;
    color: #fff;
    border-color: #8B0000;
}
.filter-search {
    position: relative;
    min-width: 250px;
}
.filter-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}
.filter-search input:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}
.filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

/* Pet Card Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.pet-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: #fca5a5;
}
.pet-card-image {
    position: relative;
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
}
.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pet-card:hover .pet-card-image img {
    transform: scale(1.05);
}
.pet-species-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pet-gender-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pet-gender-badge.male { color: #0284c7; }
.pet-gender-badge.female { color: #db2777; }

.pet-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.pet-card-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}
.pet-card-breed {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}
.pet-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.pet-pill {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pet-pill.verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.pet-card-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pet-card-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}
.btn-adopt-now {
    flex: 2;
    background: linear-gradient(135deg, #8B0000 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
}
.btn-adopt-now:hover {
    background: linear-gradient(135deg, #6b0000 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(139, 0, 0, 0.3);
}
.btn-pet-details {
    flex: 1;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.btn-pet-details:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Mandatory Package Selection Cards inside Adoption Form */
.package-selection-container {
    margin: 20px 0;
}
.package-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.package-section-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.4;
}
.package-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}
.package-card:hover {
    border-color: #f87171;
    background: #fffafa;
}
.package-card.selected {
    border-color: #8B0000;
    background: #fff5f5;
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.12);
}
.package-badge-top {
    position: absolute;
    top: -10px;
    right: 14px;
    background: #059669;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.package-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}
.package-price {
    font-size: 20px;
    font-weight: 800;
    color: #8B0000;
}
.package-duration {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 10px;
}
.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #334155;
}
.package-features li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.package-features li i {
    color: #059669;
    font-size: 11px;
}

/* Modal Overlay & Container */
.ph-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
}
.ph-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 24px;
    animation: modalSlideUp 0.3s ease;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.ph-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    transition: all 0.2s ease;
}
.ph-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Form inputs styling */
.ph-form-group {
    margin-bottom: 14px;
}
.ph-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}
.ph-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.ph-form-control:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}
.ph-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .ph-form-row { grid-template-columns: 1fr; }
    #petDetailsModal .ph-modal-box {
        max-height: 96vh;
    }
    #petDetailsModal .ph-modal-box > div:nth-child(2) {
        padding: 16px !important;
    }
}

