/* Custom styles for SalamaKids */

:root {
    --primary-color: #059669;
    --primary-dark: #047857;
    --secondary-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Arabic text direction */
html[lang="ar"] {
    direction: rtl;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e2e8f0;
}

.brand-logo {
    background: var(--primary-color);
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: rotate(12deg) scale(1.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0 8rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.blob-1, .blob-2 {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.blob-1 {
    background: rgba(16, 185, 129, 0.3);
    top: 0;
    left: 25%;
}

.blob-2 {
    background: rgba(59, 130, 246, 0.3);
    bottom: 0;
    right: 25%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 9999px;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* How It Works Section */
.step-card {
    background: #f8fafc;
    border-radius: 2rem;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-0.5rem);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--primary-color);
    color: white;
}

/* Pricing Cards */
.pricing-card {
    padding: 3rem;
    border-radius: 2.5rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-0.25rem);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.pricing-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.recommended-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.625rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Questionnaire Form */
.form-container {
    background: white;
    border-radius: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: var(--primary-color);
    color: white;
    padding: 2.5rem;
}

.step-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.step-indicator {
    height: 0.375rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.step-indicator.is-active {
    background: white;
}

.form-content {
    padding: 3rem;
}

.input, .select select {
    border-radius: 1rem;
    border: 2px solid transparent;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.input:focus, .select select:focus {
    border-color: var(--primary-color);
    background: white;
}

.condition-btn {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.condition-btn:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.condition-btn.is-selected {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.consult-select {
    padding: 2rem;
    border-radius: 2rem;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.consult-select:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.consult-select.is-selected {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.review-box {
    background: #f8fafc;
    border-radius: 2rem;
    padding: 2rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.review-total {
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Success Message */
.success-icon {
    width: 6rem;
    height: 6rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 5rem 0 2rem;
}

footer a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .brand-logo {
    margin-left: 1rem;
    margin-right: 0;
}

/* Utility Classes */
.rounded-full {
    border-radius: 9999px !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Admin Dashboard */
.admin-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.table-wrapper {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.table td {
    vertical-align: middle;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
}

.status-abandoned {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
