:root {
    --primary: #1e3a8a; /* Deep Blue */
    --primary-light: #3b82f6; /* Blue */
    --secondary: #d97706; /* Gold/Amber */
    --secondary-light: #f59e0b;
    --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #e0e7ff 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --error: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Background Animated Shapes */
.bg-shape {
    position: absolute;
    filter: blur(90px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 12s infinite alternate ease-in-out;
}

.shape1 {
    top: -5%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: #bfdbfe; /* Light Blue */
}

.shape2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #fef08a; /* Soft Gold */
    animation-delay: -6s;
}

.shape3 {
    top: 50%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #fbcfe8; /* Soft Pink */
    animation-duration: 18s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(50px) scale(1.1) rotate(20deg); }
}

.container {
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

/* Header */
.main-header {
    text-align: center;
}

.provider-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(30,58,138,0.1) 0%, rgba(59,130,246,0.1) 100%);
    border: 1px solid rgba(30,58,138,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.provider-badge i {
    margin-left: 0.5rem;
    color: var(--secondary);
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.encouragement {
    position: relative;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border-right: 5px solid var(--secondary);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.quote-icon {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--secondary-light);
    opacity: 0.5;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.encouragement p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    font-weight: 600;
}

/* Main Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.search-form label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex: 1;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    color: var(--text-main);
    font-family: inherit;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.input-group button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 0 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.input-group button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Alerts */
.alert {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-error i {
    font-size: 1.5rem;
    color: #ef4444;
}

/* Result Card */
.result-card {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.result-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.result-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.result-header i {
    font-size: 2.5rem;
}

.result-details {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.detail-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
}

.detail-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

/* Footer */
.contact-section {
    text-align: center;
    padding: 2rem !important;
}

.contact-section h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 800;
}

.contact-name {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    background: #fff;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-link.whatsapp {
    color: #16a34a;
    border-color: #bbf7d0;
}
.contact-link.whatsapp:hover {
    background: #16a34a;
    color: #fff;
}

.contact-link.phone {
    color: var(--primary);
    border-color: #bfdbfe;
}
.contact-link.phone:hover {
    background: var(--primary);
    color: #fff;
}

.contact-link.email {
    color: var(--secondary);
    border-color: #fde68a;
}
.contact-link.email:hover {
    background: var(--secondary);
    color: #fff;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsive */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group button {
        padding: 1.2rem;
        justify-content: center;
    }

    .contact-links {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}
