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

:root {
    --color-primary: #059669;
    --color-hover: #10b981;
    --color-accent: #d1fae5;
    --color-bg: #ecfdf5;
    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-heading: 'Merriweather', 'Plus Jakarta Sans', system-ui, sans-serif;
    --border-radius: 0px;
    --card-radius: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
}

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

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading) !important; 
}

/* Primary color overrides */
[class*="bg-[#2d5a27]"], [class*="bg-[#"], .bg-primary { background-color: var(--color-primary) !important; }
[class*="text-[#2d5a27]"], .text-primary { color: var(--color-primary) !important; }
[class*="border-[#2d5a27]"], .border-primary { border-color: var(--color-primary) !important; }
[class*="hover:bg-[#"]:hover { background-color: var(--color-hover) !important; }
[class*="hover:text-[#"]:hover { color: var(--color-hover) !important; }
.text-emerald-600, .text-green-600, .text-teal-600 { color: var(--color-primary) !important; }
.bg-emerald-600, .bg-green-600, .bg-teal-600 { background-color: var(--color-primary) !important; }

/* CONTRAST_GUARD: Contrast & readability adjustments */
footer:not([class*="bg-"]) { background-color: var(--color-bg) !important; }

.bg-white [class*="text-white"], .bg-white [class*="text-gray-2"],
.bg-white [class*="text-gray-3"], .bg-white [class*="text-gray-4"],
.bg-white [class*="text-slate-3"], .bg-white [class*="text-slate-4"],
.bg-gray-50 [class*="text-white"], .bg-gray-50 [class*="text-gray-2"],
.bg-gray-50 [class*="text-gray-3"], .bg-gray-50 [class*="text-gray-4"],
.bg-gray-100 [class*="text-white"], .bg-gray-100 [class*="text-gray-2"],
.bg-gray-100 [class*="text-gray-3"], .bg-gray-100 [class*="text-gray-4"],
.bg-slate-50 [class*="text-white"], .bg-slate-50 [class*="text-gray-3"],
.bg-slate-50 [class*="text-gray-4"], .bg-blue-50 [class*="text-white"],
.bg-blue-50 [class*="text-gray-3"], .bg-sky-50 [class*="text-white"],
.bg-sky-50 [class*="text-gray-3"] { color: #374151 !important; }

[class*="bg-gray-8"] [class*="text-gray-7"], [class*="bg-gray-8"] [class*="text-gray-8"],
[class*="bg-gray-9"] [class*="text-gray-7"], [class*="bg-gray-9"] [class*="text-gray-8"],
[class*="bg-gray-9"] [class*="text-gray-9"], [class*="bg-slate-9"] [class*="text-gray-8"],
[class*="bg-slate-9"] [class*="text-gray-9"], [class*="bg-black"] [class*="text-gray-8"],
[class*="bg-black"] [class*="text-gray-9"] { color: #e5e7eb !important; }

footer:not([class*="bg-"]) [class*="text-white"],
footer:not([class*="bg-"]) [class*="text-gray-2"],
footer:not([class*="bg-"]) [class*="text-gray-3"],
footer:not([class*="bg-"]) [class*="text-gray-4"],
footer:not([class*="bg-"]) a { color: #374151 !important; }
footer:not([class*="bg-"]) h1, footer:not([class*="bg-"]) h2,
footer:not([class*="bg-"]) h3, footer:not([class*="bg-"]) h4 { color: #111827 !important; }

footer[class*="bg-gray-8"] h3, footer[class*="bg-gray-8"] h4,
footer[class*="bg-gray-9"] h3, footer[class*="bg-gray-9"] h4,
footer[class*="bg-slate-9"] h3, footer[class*="bg-slate-9"] h4,
footer[class*="bg-black"] h3, footer[class*="bg-black"] h4 { color: #ffffff !important; }
footer[class*="bg-gray-9"] a, footer[class*="bg-slate-9"] a,
footer[class*="bg-black"] a { color: #d1d5db; }

a.rounded-full, button.rounded-full, .btn { border-radius: var(--border-radius) !important; }
.rounded-lg, .rounded-xl, .rounded-2xl { border-radius: var(--card-radius) !important; }

header a[href*="index"] { min-width: 0; }
header a[href*="index"] > span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
@media (min-width: 1024px) { header a[href*="index"] > span { max-width: 280px; } }

.bg-white, .bg-gray-50, .bg-gray-100 { color: #1f2937; }

/* ELEGANT SINGLE TOP-RIGHT OFFER BUTTON */
.top-offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #111827 !important;
    padding: 10px 22px;
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    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(245, 158, 11, 0.55);
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #000000 !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 */
}

.phone-error-msg.show-valid {
    display: block;
    color: #059669; /* Green check */
}

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

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