@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-hover: #3b82f6;
    --color-accent: #e0f2fe;
    --color-cyan: #06b6d4;
    --color-bg: #f8fafc;
    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --border-radius: 0px;
    --card-radius: 16px;
    --shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

body, html { 
    font-family: var(--font-main) !important;
    color: #0f172a;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading) !important; 
    color: #0f172a;
    font-weight: 800;
}

/* HIGH CONTRAST TEXT FOR LIGHT BACKGROUNDS */
.bg-white p, .bg-white li, .bg-white span:not([class*="text-white"]):not([class*="text-cyan"]):not([class*="text-blue"]):not([class*="bg-"]),
.bg-slate-50 p, .bg-slate-50 li, .bg-slate-50 span:not([class*="text-white"]):not([class*="text-cyan"]):not([class*="text-blue"]):not([class*="bg-"]),
.bg-slate-100 p, .bg-slate-100 li, .bg-slate-100 span:not([class*="text-white"]):not([class*="text-cyan"]):not([class*="text-blue"]):not([class*="bg-"]) {
    color: #1e293b;
}

label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Primary color overrides */
.text-emerald-600, .text-green-600, .text-teal-600, .text-emerald-700, .text-emerald-800 { color: var(--color-primary) !important; }
.bg-emerald-600, .bg-green-600, .bg-teal-600, .bg-emerald-700 { background-color: var(--color-primary) !important; }
.bg-emerald-50, .bg-teal-50 { background-color: #f0f9ff !important; }
.bg-emerald-100 { background-color: #e0f2fe !important; }
.border-emerald-100, .border-emerald-200 { border-color: #bae6fd !important; }
.border-emerald-600, .border-emerald-500 { border-color: var(--color-primary) !important; }

/* =========================================================
   STRICT OVERRIDES FOR DARK BACKGROUND SECTIONS (HERO, FOOTER, STATS)
   ========================================================= */

/* Hero section & any dark gradient section */
section[style*="gradient"], .hero-dark-section, [class*="bg-slate-900"], [class*="bg-indigo-950"] {
    color: #ffffff !important;
}

section[style*="gradient"] h1,
section[style*="gradient"] h2,
section[style*="gradient"] h3,
section[style*="gradient"] h4,
.hero-dark-section h1,
.hero-dark-section h2,
.hero-dark-section h3,
.hero-dark-section h4 {
    color: #ffffff !important;
}

section[style*="gradient"] p,
.hero-dark-section p {
    color: #f1f5f9 !important;
}

section[style*="gradient"] span:not([class*="text-cyan"]):not([class*="text-blue"]),
.hero-dark-section span:not([class*="text-cyan"]):not([class*="text-blue"]) {
    color: #e2e8f0 !important;
}

/* Secondary Button in Hero */
section[style*="gradient"] a[href*="cikkek"],
.hero-dark-section a[href*="cikkek"] {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

section[style*="gradient"] a[href*="cikkek"] *,
.hero-dark-section a[href*="cikkek"] * {
    color: #ffffff !important;
}

/* Glassmorphism Card in Hero */
section[style*="gradient"] [class*="backdrop-blur"] *,
.hero-dark-section [class*="backdrop-blur"] * {
    color: #ffffff;
}

section[style*="gradient"] [class*="backdrop-blur"] .text-cyan-300,
section[style*="gradient"] [class*="backdrop-blur"] .text-cyan-400,
.hero-dark-section [class*="backdrop-blur"] .text-cyan-300,
.hero-dark-section [class*="backdrop-blur"] .text-cyan-400 {
    color: #38bdf8 !important;
}

section[style*="gradient"] [class*="backdrop-blur"] .text-blue-100,
.hero-dark-section [class*="backdrop-blur"] .text-blue-100 {
    color: #e0f2fe !important;
}

/* Footer Contrast */
footer {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #ffffff !important;
}

footer p, footer span, footer a, footer li {
    color: #94a3b8 !important;
}

footer a:hover {
    color: #ffffff !important;
}

/* ELEGANT VIBRANT TOP-RIGHT OFFER BUTTON */
.top-offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    border: none;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1.2;
}

.top-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .top-offer-btn {
        padding: 8px 14px;
        font-size: 13px;
        gap: 5px;
    }
}

/* PHONE INPUT VALIDATION STYLES */
.phone-error-msg {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
    transition: all 0.2s ease;
}

.phone-error-msg.show-error {
    display: block;
    color: #dc2626; /* Red warning for incomplete */
}

.phone-error-msg.show-warning {
    display: block;
    color: #d97706; /* Amber warning for overflow */
}

.phone-error-msg.show-info {
    display: block;
    color: #475569; /* Slate counter while typing */
    font-size: 11px;
}

.phone-error-msg.show-valid {
    display: block;
    color: #10b981; /* Green success */
}

.input-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.input-valid {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}
