/* ===== UPDATED CUSTOM STYLES - BOOTSTRAP 5.3 VARIABLES ===== */

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--gray-100);
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
    pointer-events: none;
}

.hero-section .hero-image {
    margin-bottom: 40px;
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-section .hero-image:hover {
    transform: scale(1.02);
}

.hero-title {
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--primary-gradient));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dual-path-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.path-card {
    background: var(--bg-body);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    transition: left 0.5s;
}

.path-card:hover::before {
    left: 100%;
}

.path-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.path-card.pet-professional:hover {
    border-color: var(--secondary);
}

.path-card.pet-parent:hover {
    border-color: var(--primary);
}

.path-icon .material-symbols-outlined {
    font-size: 3rem;
    border-radius: 50%;
    padding: 1rem;
    display: inline-block;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.path-card h5 {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.path-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: var(--border-width) solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: var(--card-box-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card .card-body {
    border-radius: 10px;
}

/* Dual Features Section */
.feature-section {
    position: relative;
    background-color: var(--gray-100);
    padding: 4rem 0;
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.03) 100%);
    pointer-events: none;
}

.feature-toggle {
    border-radius: var(--border-radius-pill);
    display: inline-flex;
    background: var(--bg-body);
    box-shadow: var(--box-shadow);
    border: var(--border-width) solid var(--border-color);
}

.pet-parents-feature {
    border: 0;
    border-radius: 50rem;
    background: var(--bg-body);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(var(--box-shadow-sm), 0.15);
}

h1, h2, h3, h4, h5, h6, p {
    pointer-events: none;
}

.pet-professional-feature {
    border: 0;
    border-radius: 50rem;
    background: var(--bg-body);
    overflow: hidden;
}

.toggle-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--gray-600);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.toggle-btn:hover::before {
    left: 100%;
}

.toggle-btn.active {
    color: var(--light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.pet-parent.toggle-btn {
    border-radius: 50rem 0 0 50rem;
    border: 1px solid var(--primary);
    border-right: none;    
}

.pet-parent.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-gradient));
    border-right: 2px solid var(--primary);
}

.pet-professional.toggle-btn {
    border: 1px solid var(--secondary);
    border-left: none;
    border-radius: 0 50rem 50rem 0;
}

.pet-professional.toggle-btn.active {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-gradient));
    border-left: 2px solid var(--secondary);
}

.feature-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.material-symbols-outlined.pet-parent {
    background: linear-gradient(135deg, var(--primary), var(--primary-gradient));
    border-radius: 50%;
    padding: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.material-symbols-outlined.pet-professional {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-gradient));
    border-radius: 50%;
    padding: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.3);
}

.feature-content.active {
    display: block;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
    border-radius: var(--card-border-radius);
    background: var(--card-bg);
    box-shadow: var(--card-box-shadow);
    border: var(--border-width) solid var(--border-color);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.05), transparent);
    transition: left 0.5s;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card .list-unstyled {
    padding-bottom: 40px;
}

.pricing-card .card-body {
    padding-bottom: 0 !important;
}

.pricing-card .btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    margin: 0;
}

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 20px;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Modal Customizations */
.modal-dialog {
    max-width: 600px;
}

.modal-content {
    border-radius: var(--modal-border-radius);
    box-shadow: var(--modal-box-shadow);
    backdrop-filter: blur(10px);
}

.user-type-selector {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    border: var(--border-width) solid var(--border-color);
}

.user-type-btn {
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.user-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.user-type-btn:hover::before {
    left: 100%;
}

.user-type-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    background-color: var(--light);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    background-color: var(--light);
}

.pricing-note {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    color: white;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Enhanced Visual Effects */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.feature-toggle:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card .card-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border-bottom: var(--border-width) solid var(--border-color);
}

.pricing-card.featured .card-header {
    background: var(--gradient);
    color: white;
    border-bottom: none;
}

.pricing-card.featured .card-header * {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-section .hero-image {
        margin-bottom: 20px;
    }

    .dual-path-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toggle-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .path-card {
        padding: 1.5rem 1rem;
    }

    .path-icon .material-symbols-outlined {
        font-size: 2.5rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .feature-section {
        padding: 2rem 0;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }

    .toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Dark theme adaptations */
[data-theme="dark"] .hero-section {
    background-color: var(--gray-100);
}

[data-theme="dark"] .feature-section {
    background-color: var(--gray-100);
}

[data-theme="dark"] .path-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .pricing-note {
    color: white;
}

[data-theme="dark"] .user-type-selector {
    background-color: var(--gray-100);
}

/* Loading animations */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}