/* TERA Quote Center - minimal, clean, RTL-first styling */
:root {
--brand-dark: #0b2545;
--brand-teal: #1aa89a;
--bg: #f4f6f8;
--card-bg: #ffffff;
--text: #1c2733;
--muted: #5a6a7a;
--error: #b3261e;
--border: #dbe2e8;
--radius: 10px;
--font-main: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
margin: 0;
font-family: var(--font-main);
background: var(--bg);
color: var(--text);
line-height: 1.6;
}

.page-header {
background: linear-gradient(135deg, var(--brand-dark), #123a63);
color: #fff;
padding: 28px 20px;
text-align: center;
}

.page-header h1 { margin: 0 0 6px; font-size: 1.6rem; }
.page-header p { margin: 0; opacity: 0.9; }

.container {
max-width: 720px;
margin: 24px auto;
padding: 0 16px 40px;
}

.card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hidden { display: none !important; }

.choice-buttons {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: center;
}

.btn {
border: none;
border-radius: 8px;
padding: 12px 22px;
font-size: 0.95rem;
font-family: inherit;
cursor: pointer;
transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand-teal); color: #fff; }
.btn-secondary { background: var(--brand-dark); color: #fff; }
.btn-link {
background: none;
color: var(--muted);
text-decoration: underline;
padding: 12px 6px;
}

fieldset {
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
margin: 0 0 18px;
}
legend {
font-weight: 600;
color: var(--brand-dark);
padding: 0 6px;
}

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 1rem;
background: #fff;
color: var(--text);
font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-teal); }

.radio-group { display: flex; gap: 20px; }
.radio-group label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }

.checkbox-line {
display: flex;
align-items: center;
gap: 8px;
margin: 14px 0;
font-weight: 500;
}

.error-box {
background: #fdecea;
color: var(--error);
border: 1px solid #f5c2be;
border-radius: 8px;
padding: 10px 14px;
margin: 12px 0;
}

.actions {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
margin-top: 10px;
}

.summary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.summary-list dt { font-weight: 600; color: var(--muted); }
.summary-list dd { margin: 0; }

.page-footer {
text-align: center;
color: var(--muted);
padding: 20px;
font-size: 0.9rem;
}

@media (max-width: 480px) {
.summary-list { grid-template-columns: 1fr; }
.choice-buttons { flex-direction: column; }
}

/* ============================================
TERA Quote Center - Landing / Home page
============================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ---- Splash Screen ---- */
#splash-screen {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: rgba(244, 249, 250, 0.6);
backdrop-filter: blur(18px) saturate(140%);
-webkit-backdrop-filter: blur(18px) saturate(140%);
transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash-screen.splash-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-snow {
position: absolute;
inset: -10% -10%;
z-index: 0;
background-image:
radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.8), transparent 60%),
radial-gradient(2.5px 2.5px at 30% 60%, rgba(255,255,255,0.75), transparent 60%),
radial-gradient(2px 2px at 50% 15%, rgba(255,255,255,0.7), transparent 60%),
radial-gradient(3px 3px at 70% 70%, rgba(255,255,255,0.8), transparent 60%),
radial-gradient(2px 2px at 85% 30%, rgba(255,255,255,0.75), transparent 60%),
radial-gradient(2.5px 2.5px at 20% 85%, rgba(255,255,255,0.7), transparent 60%),
radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,0.75), transparent 60%),
radial-gradient(2.5px 2.5px at 60% 40%, rgba(255,255,255,0.65), transparent 60%);
animation: snowDrift 9s linear infinite;
opacity: 0.8;
}
@keyframes snowDrift {
0% { transform: translateY(-2%) translateX(0); }
50% { transform: translateY(1%) translateX(-1%); }
100% { transform: translateY(-2%) translateX(0); }
}
.splash-glow {
position: absolute;
width: 340px; height: 340px;
border-radius: 50%;
background: radial-gradient(circle, rgba(26,168,154,0.25), transparent 70%);
filter: blur(8px);
animation: splashPulse 2.4s ease-in-out infinite;
z-index: 1;
}
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 1; } }
.splash-logo {
position: relative;
z-index: 2;
max-width: 240px;
width: 58vw;
opacity: 0;
filter: drop-shadow(0 10px 26px rgba(11,37,69,0.2));
transform: translateY(60px) scale(0.35) rotate(-12deg);
animation: splashIn 1.15s cubic-bezier(.34,1.56,.64,1) forwards 0.1s,
splashFloat 3s ease-in-out infinite 1.3s;
}
@keyframes splashIn {
0% { opacity: 0; transform: translateY(60px) scale(0.35) rotate(-12deg); }
45% { opacity: 1; transform: translateY(-22px) scale(1.16) rotate(5deg); }
65% { opacity: 1; transform: translateY(10px) scale(0.94) rotate(-3deg); }
82% { opacity: 1; transform: translateY(-5px) scale(1.03) rotate(1deg); }
100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes splashFloat {
0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
50% { transform: translateY(-8px) scale(1.02) rotate(0deg); }
}
/* ---- Site Header ---- */
.site-header {
position: -webkit-sticky;
position: sticky;
top: var(--announce-h, 43px);
z-index: 500;
background: rgba(255,255,255,0.92);
backdrop-filter: saturate(180%) blur(8px);
border-bottom: 1px solid transparent;
transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(11,37,69,0.08); border-color: var(--border); }
.site-header-inner {
max-width: 1100px;
margin: 0 auto;
padding: 10px 18px;
display: flex;
align-items: center;
justify-content: center;
}
.site-brand {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
}
.site-logo {
height: 72px;
width: auto;
display: block;
flex-shrink: 0;
opacity: 0;
transform: translateY(-18px) scale(0.55);
animation: logoEntranceBounce 0.9s cubic-bezier(.34,1.56,.64,1) forwards 5.6s;
}
@keyframes logoEntranceBounce {
0% { opacity: 0; transform: translateY(-18px) scale(0.55) rotate(-6deg); }
55% { opacity: 1; transform: translateY(6px) scale(1.12) rotate(3deg); }
75% { opacity: 1; transform: translateY(-3px) scale(0.97) rotate(-1deg); }
100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
.site-title-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-title { font-size: clamp(0.95rem, 2.4vw, 1.2rem); font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.site-subtitle { font-size: clamp(0.72rem, 1.6vw, 0.85rem); font-weight: 600; color: var(--brand-teal); white-space: nowrap; }

/* ---- Announcement Bar (continuous news-ticker) ---- */
.announce-bar { background: linear-gradient(135deg, var(--brand-teal), #0f8a7e); color: #fff; overflow: hidden; position: -webkit-sticky; position: sticky; top: 0; z-index: 600; }
.announce-bar-inner { max-width: 1100px; margin: 0 auto; padding: 10px 0; overflow: hidden; }
.announce-ticker { position: relative; overflow: hidden; width: 100%; height: 26px; }
.announce-ticker-track { position: absolute; top: 0; left: 0; height: 100%; display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; }
.announce-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.22); color: #fff; }
.announce-icon-3d { box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 -2px 4px rgba(0,0,0,0.14) inset, 0 4px 8px rgba(0,0,0,0.18); }
.announce-text { min-width: 0; }
.announce-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 0.88rem; font-weight: 600; padding: 0 34px; flex-shrink: 0; direction: rtl; }
/* ---- Header Tagline ---- */
.header-tagline { background: transparent; box-shadow: none; text-align: center; padding: 24px 20px 30px; }
.header-tagline-card { display: inline-block; max-width: 92%; position: relative; margin: 0 auto; background: linear-gradient(135deg, #ffffff, rgba(26,168,154,0.08)); border: 1px solid rgba(26,168,154,0.24); border-radius: 20px; box-shadow: 0 10px 26px rgba(15,90,80,0.16), inset 0 1px 0 rgba(255,255,255,0.6); padding: 16px 30px 18px; }
.header-tagline-card::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 46px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--brand-teal), #0f8a7e); }
.header-tagline-title { margin: 0 0 8px; font-size: 0.95rem; font-weight: 800; color: var(--brand-dark); }
.header-tagline-flow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 22px; font-size: 0.85rem; font-weight: 700; color: var(--brand-teal); }
.tagline-word, .tagline-sep { display: inline-block; }
.tagline-word:nth-child(1) { animation: tagWordReveal1 12s ease-in-out infinite; }
.tagline-sep:nth-child(2) { animation: tagWordReveal2 12s ease-in-out infinite; }
.tagline-word:nth-child(3) { animation: tagWordReveal2 12s ease-in-out infinite; }
.tagline-sep:nth-child(4) { animation: tagWordReveal3 12s ease-in-out infinite; }
.tagline-word:nth-child(5) { animation: tagWordReveal3 12s ease-in-out infinite; }
.tagline-sep:nth-child(6) { animation: tagWordReveal4 12s ease-in-out infinite; }
.tagline-word:nth-child(7) { animation: tagWordReveal4 12s ease-in-out infinite; }
.tagline-sep { color: var(--border); font-size: 0.7rem; }
@keyframes tagWordReveal1 {
0% { opacity: 0; transform: translateX(6px); }
3% { opacity: 1; transform: translateX(0); }
88% { opacity: 1; transform: translateX(0); }
94% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes tagWordReveal2 {
0%, 15% { opacity: 0; transform: translateX(6px); }
19% { opacity: 1; transform: translateX(0); }
88% { opacity: 1; transform: translateX(0); }
94% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes tagWordReveal3 {
0%, 32% { opacity: 0; transform: translateX(6px); }
36% { opacity: 1; transform: translateX(0); }
88% { opacity: 1; transform: translateX(0); }
94% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes tagWordReveal4 {
0%, 49% { opacity: 0; transform: translateX(6px); }
53% { opacity: 1; transform: translateX(0); }
88% { opacity: 1; transform: translateX(0); }
94% { opacity: 0; }
100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.tagline-word { animation: none; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: 52px 20px 36px; overflow: hidden; text-align: center; }
.hero-bg {
position: absolute;
inset: 0;
z-index: 0;
background:
radial-gradient(480px 280px at 15% 0%, rgba(26,168,154,0.10), transparent 70%),
radial-gradient(420px 280px at 100% 20%, rgba(11,37,69,0.08), transparent 70%),
linear-gradient(180deg, #f7fafb, var(--bg));
}
.hero-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.hero h1 { font-size: 1.85rem; color: var(--brand-dark); margin: 0 0 14px; font-weight: 800; line-height: 1.3; }
.hero-sub { color: var(--muted); font-size: 1.03rem; margin: 0 0 10px; }
.hero-tag { color: var(--brand-teal); font-weight: 700; margin: 0 0 24px; }
.hero-flow { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.flow-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
background: #fff;
border: 1px solid var(--border);
color: var(--brand-dark);
padding: 12px 18px 10px;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(11,37,69,0.06);
animation: flowFloat 3s ease-in-out infinite;
}
.flow-label { font-size: 0.85rem; font-weight: 700; }
.flow-icon {
width: 34px; height: 34px;
display: flex; align-items: center; justify-content: center;
border-radius: 10px;
color: var(--brand-teal);
background: radial-gradient(circle at 30% 30%, rgba(26,168,154,0.18), rgba(26,168,154,0.02));
}
.flow-icon-3d {
box-shadow:
0 1px 0 rgba(255,255,255,0.8) inset,
0 -4px 8px rgba(11,37,69,0.08) inset,
0 8px 14px rgba(11,37,69,0.12);
}
@keyframes flowFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero-flow i { width: 20px; height: 2px; background: var(--border); position: relative; display: inline-block; }

/* ---- Cards ---- */
.cards-section { padding: 6px 20px 28px; perspective: 1200px; }
.cards-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-heading { text-align: center; font-size: 1.4rem; color: var(--brand-dark); margin: 0 0 8px; font-weight: 800; }
.cards-subheading { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }
.option-card {
appearance: none;
position: relative;
overflow: hidden;
text-align: center;
background: linear-gradient(165deg, #ffffff, #fbfdfd);
border: 1px solid var(--border);
border-radius: 18px;
padding: 28px 20px;
cursor: pointer;
font-family: inherit;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
box-shadow: 0 2px 10px rgba(11,37,69,0.05);
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
min-height: 210px;
transform-style: preserve-3d;
}
.option-card::before {
content: "";
position: absolute;
top: -50%; left: -60%;
width: 40%; height: 220%;
background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
transform: rotate(20deg);
transition: left 0.6s ease;
pointer-events: none;
}
.option-card:hover::before { left: 130%; }
.option-card:hover { transform: translateY(-8px) rotateX(3deg); box-shadow: 0 20px 38px rgba(11,37,69,0.16); border-color: rgba(26,168,154,0.4); }
.option-card:active { transform: translateY(-1px) scale(0.99); }
.option-card:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 3px; }
.card-icon {
width: 60px; height: 60px;
display: flex; align-items: center; justify-content: center;
border-radius: 18px;
color: var(--brand-teal);
background: radial-gradient(circle at 30% 30%, rgba(26,168,154,0.16), rgba(26,168,154,0.02));
margin-bottom: 4px;
}
.card-icon-3d {
position: relative;
box-shadow:
0 1px 0 rgba(255,255,255,0.8) inset,
0 -6px 10px rgba(11,37,69,0.08) inset,
0 10px 18px rgba(11,37,69,0.12);
transition: transform 0.25s ease, box-shadow 0.25s ease;
animation: iconFloat 3.2s ease-in-out infinite;
}
@keyframes iconFloat { 0%, 100% { transform: translateY(0) rotateX(0deg); } 50% { transform: translateY(-4px) rotateX(6deg); } }
.option-card:hover .card-icon-3d {
animation-play-state: paused;
transform: translateY(-4px) scale(1.08) rotateY(10deg);
box-shadow:
0 1px 0 rgba(255,255,255,0.9) inset,
0 -6px 10px rgba(11,37,69,0.08) inset,
0 18px 26px rgba(26,168,154,0.24);
}
.option-card h2 { font-size: 1.04rem; margin: 0; color: var(--brand-dark); }
.option-card p { font-size: 0.87rem; color: var(--muted); margin: 0; line-height: 1.55; }
.card-cta { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brand-teal); font-size: 0.92rem; }
.card-cta::after { content: "\2190"; margin-inline-start: 6px; display: inline-block; transition: transform 0.2s ease; }
.option-card:hover .card-cta::after { transform: translateX(-4px); }
.option-card:hover .card-cta { text-decoration: underline; }
/* ---- Trust section ---- */
.trust-section {
max-width: 1000px;
margin: 6px auto 0;
padding: 20px 20px 8px;
text-align: center;
}
.trust-heading { font-size: 1.3rem; color: var(--brand-dark); margin: 0 0 20px; font-weight: 800; }
.trust-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
text-align: center;
}
.trust-item {
background: #fff;
border: 1px solid var(--border);
border-radius: 16px;
padding: 24px 18px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
box-shadow: 0 2px 10px rgba(11,37,69,0.05);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-item:hover { transform: translateY(-5px); box-shadow: 0 14px 26px rgba(11,37,69,0.12); }
.trust-icon {
width: 52px; height: 52px;
display: flex; align-items: center; justify-content: center;
border-radius: 16px;
color: var(--brand-teal);
background: radial-gradient(circle at 30% 30%, rgba(26,168,154,0.16), rgba(26,168,154,0.02));
margin-bottom: 2px;
}
.trust-icon-3d {
box-shadow:
0 1px 0 rgba(255,255,255,0.8) inset,
0 -5px 9px rgba(11,37,69,0.08) inset,
0 9px 16px rgba(11,37,69,0.12);
animation: iconFloat 3.4s ease-in-out infinite;
}
.trust-item h3 { margin: 0; font-size: 0.96rem; color: var(--brand-dark); }
.trust-item p { margin: 0; font-size: 0.82rem; color: var(--muted); }
/* ---- Closing CTA ---- */
.closing-cta {
text-align: center;
padding: 40px 20px 60px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
background: radial-gradient(600px 240px at 50% 0%, rgba(26,168,154,0.08), transparent 70%);
}
.cta-icon {
width: 64px; height: 64px;
display: flex; align-items: center; justify-content: center;
border-radius: 50%;
color: #fff;
background: linear-gradient(145deg, var(--brand-teal), var(--brand-dark));
box-shadow: 0 12px 24px rgba(26,168,154,0.3);
margin-bottom: 6px;
animation: iconFloat 3.6s ease-in-out infinite;
}
.closing-cta h2 { color: var(--brand-dark); margin: 0 0 2px; font-size: 1.32rem; }
.closing-cta p { color: var(--muted); margin: 0 0 8px; }
.cta-button {
border: none;
border-radius: 999px;
padding: 13px 34px;
font-size: 0.96rem;
font-weight: 700;
font-family: inherit;
color: #fff;
background: linear-gradient(135deg, var(--brand-teal), #14847a);
box-shadow: 0 10px 22px rgba(26,168,154,0.35);
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(26,168,154,0.45); }
.cta-button:active { transform: translateY(0) scale(0.98); }
.cta-button::after { content: "\2190"; margin-inline-start: 8px; }

/* ---- Pre-footer Tagline ---- */
.pre-footer-tagline { text-align: center; padding: 46px 20px 64px; background: radial-gradient(600px 200px at 50% 100%, rgba(26,168,154,0.06), transparent 70%); position: relative; z-index: 1; }
.pre-footer-card { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 30px; border-radius: 18px; background: linear-gradient(165deg, rgba(26,168,154,0.08), rgba(11,37,69,0.03)); border: 1px solid rgba(26,168,154,0.18); box-shadow: 0 10px 24px rgba(11,37,69,0.06); }
.pre-footer-title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: var(--brand-dark); }
.pre-footer-rotator { position: relative; height: 30px; min-width: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pre-footer-rotator span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; font-size: 1.05rem; font-weight: 800; color: var(--brand-teal); animation: preFooterRotate 10s ease-in-out infinite; }
.pre-footer-rotator span:nth-child(1) { animation-delay: 0s; }
.pre-footer-rotator span:nth-child(2) { animation-delay: 2s; }
.pre-footer-rotator span:nth-child(3) { animation-delay: 4s; }
.pre-footer-rotator span:nth-child(4) { animation-delay: 6s; }
.pre-footer-rotator span:nth-child(5) { animation-delay: 8s; }
@keyframes preFooterRotate {
0% { opacity: 0; transform: translateY(10px); }
5% { opacity: 1; transform: translateY(0); }
15% { opacity: 1; transform: translateY(0); }
20% { opacity: 0; transform: translateY(-10px); }
100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.pre-footer-rotator span { animation: none; opacity: 0; }
.pre-footer-rotator span:first-child { opacity: 1; }
}

/* ---- Site Footer ---- */
.site-footer {
background: linear-gradient(175deg, var(--brand-dark), #0a1f3d);
color: #fff;
text-align: center;
padding: 46px 20px 0;
position: relative;
z-index: 600;
overflow: hidden;
opacity: 0;
transform: translateY(60px);
transition: opacity 1s cubic-bezier(.16,.84,.44,1), transform 1s cubic-bezier(.16,.84,.44,1);
}
.site-footer.footer-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
.site-footer { opacity: 1; transform: none; transition: none; }
}
.footer-inner { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.footer-logo-float { display: inline-block; animation: footerLogoFloat 3.6s ease-in-out infinite; margin-bottom: 16px; }
.footer-logo { display: block; height: 108px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0,0,0,0.35)); opacity: 0.97; }
@keyframes footerLogoFloat {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-14px) scale(1.04); }
}
.footer-brand-title { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-about { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.7; opacity: 0.85; max-width: 400px; }
.footer-slogan { margin: 0 0 24px; font-size: 0.92rem; font-weight: 600; color: var(--brand-teal); opacity: 0.95; }
.footer-divider { width: 70px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brand-teal), transparent); margin-bottom: 24px; }
.footer-help-block { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; max-width: 380px; }
.footer-icon-3d {
width: 48px; height: 48px;
display: flex; align-items: center; justify-content: center;
border-radius: 50%;
color: #fff;
background: linear-gradient(145deg, var(--brand-teal), #14847a);
box-shadow: 0 10px 20px rgba(26,168,154,0.35), 0 1px 0 rgba(255,255,255,0.3) inset;
margin-bottom: 4px;
animation: iconFloat 3.4s ease-in-out infinite;
}
.footer-help-block h4 { margin: 0; font-size: 1rem; color: #fff; }
.footer-help-block p { margin: 0; font-size: 0.85rem; opacity: 0.8; line-height: 1.6; }
.footer-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.footer-contact-item {
display: inline-flex;
align-items: center;
gap: 10px;
color: #fff;
text-decoration: none;
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.15);
padding: 10px 18px;
border-radius: 16px;
font-size: 0.85rem;
transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-contact-item:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.25); }
.footer-contact-icon { display: inline-flex; color: #25D366; flex-shrink: 0; }
.footer-contact-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.footer-contact-text strong { font-size: 0.82rem; }
.footer-contact-text span { font-size: 0.82rem; opacity: 0.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 20px; }
.footer-tagline-bottom { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: #fff; }
.footer-flow-tags { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.5px; opacity: 0.75; }
.footer-copy { margin: 0; font-size: 0.78rem; opacity: 0.6; }

/* Footer text entrance (bottom -> top) */
.footer-brand-title,
.footer-about,
.footer-slogan,
.footer-help-block,
.footer-contacts,
.footer-tagline-bottom,
.footer-flow-tags,
.footer-copy {
opacity: 0;
transform: translateY(28px);
transition: opacity 0.8s cubic-bezier(.16,.84,.44,1), transform 0.8s cubic-bezier(.16,.84,.44,1);
}
.site-footer.footer-visible .footer-brand-title { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.site-footer.footer-visible .footer-about { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.site-footer.footer-visible .footer-slogan { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.site-footer.footer-visible .footer-help-block { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.site-footer.footer-visible .footer-contacts { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.site-footer.footer-visible .footer-tagline-bottom { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.site-footer.footer-visible .footer-flow-tags { opacity: 1; transform: translateY(0); transition-delay: 0.58s; }
.site-footer.footer-visible .footer-copy { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) {
.footer-brand-title, .footer-about, .footer-slogan, .footer-help-block, .footer-contacts, .footer-tagline-bottom, .footer-flow-tags, .footer-copy {
opacity: 1; transform: none; transition: none;
}
}
/* ---- Back to home link (inside quote app view) ---- */
.back-home-link {
background: none;
border: none;
color: #fff;
opacity: 0.85;
font-size: 0.85rem;
cursor: pointer;
padding: 4px 8px;
margin-bottom: 8px;
font-family: inherit;
}
.back-home-link:hover { opacity: 1; text-decoration: underline; }

/* ---- Toast ---- */
.toast {
position: fixed;
bottom: 96px;
right: 20px;
left: 20px;
margin: 0 auto;
max-width: 320px;
background: var(--brand-dark);
color: #fff;
padding: 12px 18px;
border-radius: 10px;
text-align: center;
font-size: 0.88rem;
box-shadow: 0 8px 24px rgba(11,37,69,0.25);
z-index: 700;
transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.hidden { display: none; }

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
position: fixed;
bottom: 22px;
left: 20px;
width: 56px;
height: 56px;
border-radius: 50%;
background: #25D366;
color: #fff;
border: none;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 6px 18px rgba(37,211,102,0.45);
cursor: pointer;
z-index: 600;
animation: waPulse 2.6s ease-in-out infinite;
transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float:active { transform: scale(0.96); }
@keyframes waPulse {
0%, 100% { box-shadow: 0 6px 18px rgba(37,211,102,0.45); }
50% { box-shadow: 0 6px 24px rgba(37,211,102,0.7); }
}

/* ---- Dialog overlays (WhatsApp confirm / transfer) ---- */
.dialog-overlay {
position: fixed;
inset: 0;
background: rgba(11,37,69,0.5);
backdrop-filter: blur(2px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
}
.dialog-overlay.hidden { display: none; }
.dialog-box {
position: relative;
overflow: hidden;
background: linear-gradient(180deg, #ffffff, #f6fbfa);
border-radius: 22px;
padding: 34px 26px 26px;
max-width: 380px;
width: 100%;
text-align: center;
box-shadow: 0 24px 60px rgba(11,37,69,0.3);
animation: dialogIn 0.3s cubic-bezier(.2,.8,.2,1);
}
.dialog-box::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0;
height: 5px;
background: linear-gradient(90deg, var(--brand-teal), #25D366, var(--brand-teal));
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wa-dialog-icon, .wa-transfer-icon {
position: relative;
width: 62px; height: 62px;
margin: 0 auto 14px;
border-radius: 50%;
background: linear-gradient(145deg, #2fe07a, #1fae5b);
display: flex; align-items: center; justify-content: center;
box-shadow: 0 10px 22px rgba(37,211,102,0.4), 0 2px 0 rgba(255,255,255,0.4) inset;
}
.wa-dialog-icon::before, .wa-transfer-icon::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid rgba(37,211,102,0.55);
animation: ringPulse 2s ease-out infinite;
}
.wa-transfer-icon::after {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid rgba(37,211,102,0.35);
animation: ringPulse 2s ease-out infinite 0.6s;
}
@keyframes ringPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
.dialog-box h2 { margin: 0 0 10px; color: var(--brand-dark); font-size: 1.15rem; }
.dialog-box p { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; }
.dialog-actions { display: flex; flex-direction: column; gap: 10px; }
.dialog-actions .btn { width: 100%; }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 8px 18px rgba(37,211,102,0.35); }
.btn-wa:hover { background: #21bd5a; opacity: 1; }
.countdown-ring {
width: 84px; height: 84px;
margin: 4px auto 0;
border-radius: 50%;
border: 4px solid var(--border);
border-top-color: var(--brand-teal);
display: flex; align-items: center; justify-content: center;
animation: spin 1.4s linear infinite;
}
.countdown-ring .countdown {
display: inline-block;
animation: spin-reverse 1.4s linear infinite;
font-size: 1.9rem; font-weight: 800; color: var(--brand-teal);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* ---- Responsive ---- */
@media (max-width: 900px) {
.cards-grid { grid-template-columns: 1fr; }
.trust-grid { grid-template-columns: 1fr; gap: 14px; }
.site-logo { height: 60px; }

}

@media (max-width: 480px) {
.hero { padding: 40px 16px 28px; }
.hero h1 { font-size: 1.5rem; }
.hero-sub { font-size: 0.95rem; }
.site-header-inner { padding: 8px 14px; }
.site-brand { gap: 10px; }
.site-logo { height: 50px; }
.option-card { min-height: auto; padding: 22px 16px; }
.whatsapp-float { width: 50px; height: 50px; bottom: 18px; left: 16px; }
.toast { bottom: 82px; }
.dialog-box { padding: 30px 20px 22px; }
.footer-logo { height: 78px; }
.announce-bar-inner { padding: 8px 0; }
.announce-item { font-size: 0.78rem; padding: 0 20px; }
.announce-icon { width: 18px; height: 18px; }
.announce-icon svg { width: 12px; height: 12px; }
.header-tagline { padding: 16px 14px 22px; }
.header-tagline-card { padding: 12px 18px 14px; max-width: 96%; }
.header-tagline-title { font-size: 0.85rem; }
.header-tagline-flow { font-size: 0.75rem; gap: 6px; }
.pre-footer-tagline { padding: 34px 14px 50px; }
.pre-footer-card { padding: 14px 20px; }
.pre-footer-title { font-size: 1rem; }
}

@media (max-width: 360px) {
.site-header-inner { justify-content: center; }
.site-title { white-space: normal; }
.site-subtitle { white-space: normal; }
.announce-item { padding: 0 14px; }
}


/* ============================================
TERA Quote Center - 6-stage quote wizard
============================================ */

.quote-main { padding-top: 18px; }
.quote-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.quote-topbar .back-home-link { color: var(--brand-dark); opacity: 0.75; }
.quote-topbar .back-home-link:hover { opacity: 1; }
.edit-previous-link { background: none; border: none; color: var(--brand-teal); font-family: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px 8px; }

.wizard-title { text-align: center; font-size: 1.35rem; color: var(--brand-dark); margin: 6px 0 18px; font-weight: 800; }

.stepper { list-style: none; display: flex; justify-content: space-between; gap: 4px; margin: 0 0 8px; padding: 0; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0.55; }
.step-circle { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--border); color: var(--muted); font-weight: 800; font-size: 0.85rem; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.step-label { font-size: 0.7rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.step-item.is-active { opacity: 1; }
.step-item.is-active .step-circle { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; box-shadow: 0 4px 10px rgba(26,168,154,0.35); }
.step-item.is-active .step-label { color: var(--brand-dark); }
.step-item.is-done { opacity: 1; }
.step-item.is-done .step-circle { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.step-item.is-done .step-circle::after { content: "✓"; }

.autosave-note { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 0 0 18px; }

.wizard-step .step-heading { margin: 0 0 16px; color: var(--brand-dark); font-size: 1.1rem; font-weight: 800; }

.field-error { display: none; color: var(--error); font-size: 0.8rem; margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.field-hint { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 4px; }

.wizard-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.wizard-actions .btn-next, .wizard-actions #btn-submit { margin-inline-start: auto; }

/* ---- Job / work-type cards ---- */
.job-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.job-card { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 8px; cursor: pointer; background: #fff; font-weight: 600; font-size: 0.88rem; color: var(--text); transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease; }
.job-card input { position: absolute; opacity: 0; pointer-events: none; }
.job-card:hover { border-color: rgba(26,168,154,0.5); transform: translateY(-2px); }
.job-card:has(input:checked) { border-color: var(--brand-teal); background: rgba(26,168,154,0.08); color: var(--brand-dark); box-shadow: 0 4px 12px rgba(26,168,154,0.18); }

/* ---- Product cards ---- */
.product-group-heading { font-weight: 700; color: var(--brand-dark); font-size: 0.88rem; margin: 10px 0 8px; }
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.product-card { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 8px; cursor: pointer; background: #fff; font-weight: 600; font-size: 0.88rem; color: var(--text); transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease; }
.product-card input { position: absolute; opacity: 0; pointer-events: none; }
.product-card:hover { border-color: rgba(26,168,154,0.5); transform: translateY(-2px); }
.product-card:has(input:checked) { border-color: var(--brand-teal); background: rgba(26,168,154,0.08); color: var(--brand-dark); box-shadow: 0 4px 12px rgba(26,168,154,0.18); }

/* ---- Yes/No toggle ---- */
.yesno-toggle { display: flex; gap: 10px; margin-top: 6px; }
.yesno-btn { flex: 1; border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 14px; font-family: inherit; font-weight: 700; font-size: 0.9rem; color: var(--text); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.yesno-btn:hover { border-color: rgba(26,168,154,0.5); }
.yesno-btn.is-selected { border-color: var(--brand-teal); background: var(--brand-teal); color: #fff; }

/* ---- Checkbox chip grid (income sources / suspension types) ---- */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.checkbox-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 16px; cursor: pointer; background: #fff; font-size: 0.86rem; font-weight: 600; color: var(--text); transition: border-color 0.2s ease, background 0.2s ease; }
.checkbox-chip input { accent-color: var(--brand-teal); }
.checkbox-chip:has(input:checked) { border-color: var(--brand-teal); background: rgba(26,168,154,0.08); color: var(--brand-dark); }

/* ---- Review / summary ---- */
.summary-section { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.summary-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.summary-section-head h3 { margin: 0; font-size: 0.95rem; color: var(--brand-dark); }
.summary-edit-link { background: none; border: none; color: var(--brand-teal); font-family: inherit; font-size: 0.82rem; cursor: pointer; text-decoration: underline; }
.summary-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.summary-row-item dt { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin: 0; }
.summary-row-item dd { margin: 0 0 6px; font-size: 0.9rem; color: var(--text); }
.consent-line { align-items: flex-start; font-size: 0.86rem; line-height: 1.6; }
.submit-note { text-align: center; color: var(--muted); font-size: 0.78rem; margin-top: 10px; }

/* ---- Success screen ---- */
.success-panel { text-align: center; max-width: 560px; margin: 0 auto; }
.success-icon { font-size: 2.4rem; margin-bottom: 6px; }
.success-panel h2 { color: var(--brand-dark); margin: 0 0 8px; }
.success-order-label { color: var(--muted); margin: 18px 0 4px; font-size: 0.88rem; }
.success-order-number { font-size: 1.4rem; font-weight: 800; color: var(--brand-teal); margin: 0; direction: ltr; }
.btn-copy { font-size: 0.82rem; }
.success-keep-note { color: var(--muted); font-size: 0.82rem; margin: 4px 0 20px; }
.success-body-text { color: var(--text); font-size: 0.9rem; margin: 0 0 10px; line-height: 1.7; }
.success-checklist { background: rgba(26,168,154,0.06); border: 1px solid rgba(26,168,154,0.2); border-radius: 12px; padding: 14px 16px; margin: 18px 0; text-align: right; }
.success-checklist p { margin: 4px 0; font-size: 0.86rem; color: var(--brand-dark); }
.success-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.success-info-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: right; }
.success-info-card h4 { margin: 0 0 6px; font-size: 0.86rem; color: var(--brand-dark); }
.success-info-card p { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.btn-track { width: 100%; margin-bottom: 8px; }
.success-closing { margin: 22px 0 2px; font-weight: 700; color: var(--brand-dark); }
.success-closing-slogan { color: var(--brand-teal); font-weight: 700; margin: 0; }

@media (max-width: 560px) {
.job-cards { grid-template-columns: repeat(2, 1fr); }
.product-cards { grid-template-columns: repeat(2, 1fr); }
.summary-rows { grid-template-columns: 1fr; }
.success-info-cards { grid-template-columns: 1fr; }
.stepper { gap: 2px; }
.step-item { min-width: 50px; }
.step-label { font-size: 0.62rem; }
}


/* ---- Success/created screen: close button + action buttons row ---- */
.success-panel { position: relative; }
.success-close-btn {
position: absolute;
top: 8px;
left: 8px;
width: 34px;
height: 34px;
border: none;
border-radius: 50%;
background: transparent;
color: var(--muted);
font-size: 1.3rem;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s ease, color 0.15s ease;
}
.success-close-btn:hover { background: var(--bg); color: var(--brand-dark); }

.success-actions-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.success-actions-row .btn { flex: 1 1 auto; min-width: 160px; }

@media (max-width: 480px) {
.success-close-btn { top: 4px; left: 4px; }
}


/* ---- Toast: message + close button layout ---- */
.toast { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; text-align: right; }
.toast-message { flex: 1; }
.toast-close { background: none; border: none; color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 2px; opacity: 0.75; flex-shrink: 0; font-family: inherit; }
.toast-close:hover, .toast-close:focus { opacity: 1; }

/* ---- Payment date field polish ---- */
#payment_date { accent-color: var(--brand-teal); cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
#payment_date:hover { border-color: var(--brand-teal); }
#payment_date:focus { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(26,168,154,0.15); outline: none; }

/* ---- Friendlier field validation warning box ---- */
.field.has-error .field-error { display: flex; align-items: center; gap: 6px; background: rgba(179,38,30,0.08); border: 1px solid rgba(179,38,30,0.25); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }

/* ---- Custom product value field ---- */
#product-value-custom-field { margin-top: 10px; }

/* ============================================================
   3D icon badges
   A single reusable badge: soft gradient body, inner highlight,
   outer drop shadow, and a stroked SVG glyph on top. Colour is
   swapped per variant, geometry stays identical everywhere.
   ============================================================ */
.icon3d {
  --i3d-a: var(--brand-teal);
  --i3d-b: #0f8a7e;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(160deg, var(--i3d-a), var(--i3d-b));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 -6px 12px rgba(0,0,0,0.18) inset,
    0 14px 26px -8px rgba(11,37,69,0.45),
    0 4px 10px rgba(11,37,69,0.18);
  position: relative;
  flex-shrink: 0;
}
.icon3d::after {
  content: "";
  position: absolute;
  inset: 4px 4px 55% 4px;
  border-radius: 20px 20px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0));
  pointer-events: none;
}
.icon3d svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.icon3d-sm { width: 44px; height: 44px; border-radius: 15px; margin: 0 0 10px; }
.icon3d-sm::after { inset: 3px 3px 55% 3px; border-radius: 12px 12px 40% 40%; }
.icon3d-sm svg { width: 22px; height: 22px; }

.icon3d-success { --i3d-a: #2fc39a; --i3d-b: #12876f; }
.icon3d-saved   { --i3d-a: #3fa9f5; --i3d-b: #1263a8; }
.icon3d-warn    { --i3d-a: #f7b34d; --i3d-b: #cf7a12; }
.icon3d-expired { --i3d-a: #9aa6b2; --i3d-b: #55636f; }
.icon3d-mail    { --i3d-a: #6f8dff; --i3d-b: #2f47b8; }
.icon3d-track   { --i3d-a: #2fc39a; --i3d-b: #12876f; }
.icon3d-wa      { --i3d-a: #4ae07a; --i3d-b: #1da851; }

/* ============================================================
   Result screens (success / saved / blocked / expired)
   ============================================================ */
.result-panel { padding-top: 30px; }
.result-panel h2 { font-size: 1.32rem; }
.result-lead { color: var(--muted); font-size: 0.93rem; line-height: 1.75; margin: 0 auto 18px; max-width: 46ch; }

.order-block {
  background: linear-gradient(165deg, rgba(26,168,154,0.09), rgba(11,37,69,0.03));
  border: 1px solid rgba(26,168,154,0.24);
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin: 18px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.order-block .success-order-label { margin: 0 0 4px; }
.order-block .success-order-number { font-size: 1.5rem; letter-spacing: 0.5px; }
.order-block-note { color: var(--muted); font-size: 0.78rem; margin: 6px 0 0; }
.order-status-pill {
  display: inline-block;
  margin: 8px 0 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(247,179,77,0.16);
  border: 1px solid rgba(207,122,18,0.3);
  color: #8a5205;
  font-size: 0.82rem;
  font-weight: 700;
}

.success-actions-row { margin: 14px 0 0; }
.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(11,37,69,0.06);
}
.btn-ghost:hover { border-color: var(--brand-teal); color: var(--brand-teal); opacity: 1; }
.btn-ico { display: inline-flex; }
.btn-ico svg { width: 17px; height: 17px; }

/* WhatsApp call-to-action block on the confirmation screen */
.wa-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 14px;
  text-align: right;
  border: 1px solid rgba(37,211,102,0.32);
  background: linear-gradient(165deg, rgba(37,211,102,0.10), rgba(37,211,102,0.03));
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0;
}
.wa-cta .icon3d-sm { margin: 0; }
.wa-cta-text h4 { margin: 0 0 4px; font-size: 0.94rem; color: var(--brand-dark); }
.wa-cta-text p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.btn-wa-send { grid-column: 1 / -1; width: 100%; margin-top: 12px; }

.success-info-card { display: flex; flex-direction: column; }
.success-info-cards.single { grid-template-columns: 1fr; }

/* ============================================================
   Notifications — always dismissed by the customer, never on a timer
   ============================================================ */
.toast {
  max-width: 380px;
  padding: 13px 16px;
  border-radius: 14px;
  text-align: right;
  gap: 11px;
  align-items: center;
  box-shadow: 0 14px 32px rgba(11,37,69,0.32);
}
.toast-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.16);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 -3px 6px rgba(0,0,0,0.18) inset;
}
.toast-ico svg { width: 17px; height: 17px; }
.toast-message { line-height: 1.6; }
.toast-success { background: linear-gradient(160deg, #12876f, #0b6353); }
.toast-error { background: linear-gradient(160deg, #b3261e, #8a1a14); }
.toast-info { background: linear-gradient(160deg, #12305a, #0b2545); }

/* ============================================================
   Progress veil for slow actions (submit / PDF)
   ============================================================ */
.busy-overlay { z-index: 900; }
.busy-box {
  background: #fff;
  border-radius: 18px;
  padding: 26px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(11,37,69,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.busy-box p { margin: 0; font-weight: 700; color: var(--brand-dark); font-size: 0.92rem; }
.busy-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(26,168,154,0.2);
  border-top-color: var(--brand-teal);
  animation: teraSpin 0.85s linear infinite;
}
@keyframes teraSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .busy-spinner, .wa-spinner-ring { animation-duration: 2.4s; }
}

/* WhatsApp "sending order details" spinner */
.wa-spinner {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(37,211,102,0.22);
  border-top-color: #25D366;
  animation: teraSpin 0.9s linear infinite;
}
.wa-spinner-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(160deg, #4ae07a, #1da851);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -5px 10px rgba(0,0,0,0.2) inset, 0 8px 18px rgba(29,168,81,0.4);
}
.dialog-fineprint { font-size: 0.78rem !important; color: var(--muted); margin-top: -8px !important; }

/* ============================================================
   Payment date field
   ============================================================ */
.field-sublabel { margin: -2px 0 8px; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

.date-control {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.date-control:focus-within { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(26,168,154,0.15); }
.date-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-teal), #0f8a7e);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 -3px 6px rgba(0,0,0,0.18) inset, 0 5px 12px -3px rgba(11,37,69,0.4);
}
.date-ico svg { width: 19px; height: 19px; }
.date-control input[type="date"] {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}
.date-control input[type="date"]:focus { outline: none; box-shadow: none; }
.field.has-error .date-control { border-color: var(--error); }

.date-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.date-chip {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.date-chip:hover { border-color: rgba(26,168,154,0.55); transform: translateY(-1px); }
.date-chip.is-selected {
  border-color: var(--brand-teal);
  background: var(--brand-teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,168,154,0.32);
}
.date-readout { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); min-height: 1.2em; }
.date-readout.is-set { color: var(--brand-dark); font-weight: 700; }

/* ============================================================
   "مبلغ مختلف" amount field
   ============================================================ */
#product-value-custom-field { margin-top: 12px; }
.amount-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.amount-control:focus-within { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(26,168,154,0.15); }
.amount-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(160deg, #3fa9f5, #1263a8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 -3px 6px rgba(0,0,0,0.18) inset, 0 5px 12px -3px rgba(11,37,69,0.4);
}
.amount-ico svg { width: 19px; height: 19px; }
.amount-control input[type="number"] {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-width: 0;
}
.amount-control input[type="number"]:focus { outline: none; box-shadow: none; }
.amount-suffix { color: var(--muted); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.field.has-error .amount-control { border-color: var(--error); }
.amount-readout { margin: 8px 0 0; font-size: 0.83rem; font-weight: 700; min-height: 1.2em; color: var(--muted); }
.amount-readout.is-valid { color: var(--brand-teal); }
.amount-readout.is-invalid { color: var(--error); }

@media (max-width: 560px) {
  .icon3d { width: 62px; height: 62px; border-radius: 21px; }
  .icon3d svg { width: 29px; height: 29px; }
  .result-panel h2 { font-size: 1.15rem; }
  .order-block .success-order-number { font-size: 1.3rem; }
  .wa-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .wa-cta .icon3d-sm { margin: 0 auto; }
  .success-actions-row .btn { min-width: 100%; }
  .toast { bottom: 82px; max-width: none; }
}

/* ============================================================
   "طلب جديد باستخدام بياناتك السابقة"
   ============================================================ */
.icon3d-prefill { --i3d-a: #8b7cf6; --i3d-b: #4b34c4; }
.icon3d-phone   { --i3d-a: #2fc39a; --i3d-b: #12876f; }

.prefill-head { text-align: center; margin-bottom: 22px; }
.prefill-head h2 { margin: 0 0 8px; color: var(--brand-dark); font-size: 1.25rem; }
.prefill-lead { color: var(--muted); font-size: 0.92rem; line-height: 1.8; margin: 0 auto; max-width: 44ch; }

.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px 14px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.method-card .icon3d-sm { margin: 0 0 8px; }
.method-card:hover { border-color: rgba(26,168,154,0.55); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(11,37,69,0.1); }
.method-card.is-selected {
  border-color: var(--brand-teal);
  background: linear-gradient(165deg, rgba(26,168,154,0.10), rgba(26,168,154,0.02));
  box-shadow: 0 8px 20px rgba(26,168,154,0.22);
}
.method-card-title { font-weight: 800; color: var(--brand-dark); font-size: 0.94rem; }
.method-card-sub { font-size: 0.76rem; color: var(--muted); line-height: 1.55; }

/* ---- Emailed code step ---- */
.otp-sent-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: right;
  background: linear-gradient(165deg, rgba(111,141,255,0.10), rgba(111,141,255,0.02));
  border: 1px solid rgba(111,141,255,0.28);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}
.otp-sent-note .icon3d-sm { margin: 0; }
.otp-sent-title { margin: 0 0 2px; font-size: 0.9rem; font-weight: 800; color: var(--brand-dark); }
.otp-sent-email { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: var(--brand-teal); direction: ltr; text-align: right; }
.otp-sent-via { margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; color: var(--brand-dark); line-height: 1.6; opacity: 0.85; }
.otp-sent-hint { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.6; }

.otp-input {
  text-align: center;
  font-size: 1.7rem !important;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  direction: ltr;
  font-family: "Courier New", monospace;
  padding: 14px 10px !important;
}
.otp-resend-line {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 4px 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.otp-resend-line strong { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.btn-inline-link {
  background: none;
  border: none;
  color: var(--brand-teal);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.btn-inline-link:hover { color: var(--brand-dark); }

/* ---- "بياناتك السابقة" notice inside the wizard ---- */
.prefill-notice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: right;
  background: linear-gradient(165deg, rgba(139,124,246,0.12), rgba(139,124,246,0.03));
  border: 1px solid rgba(139,124,246,0.32);
  border-radius: 16px;
  padding: 16px 44px 16px 16px;
  margin: 0 0 16px;
  box-shadow: 0 6px 18px rgba(75,52,196,0.10);
}
.prefill-notice .icon3d-sm { margin: 0; }
.prefill-notice-text h4 { margin: 0 0 4px; font-size: 0.92rem; color: var(--brand-dark); }
.prefill-notice-text p { margin: 0; font-size: 0.83rem; color: var(--muted); line-height: 1.75; }
.prefill-notice-text strong { color: var(--brand-dark); }
.prefill-notice-close {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(139,124,246,0.3);
  background: #fff;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.prefill-notice-close:hover { background: var(--bg); color: var(--brand-dark); }

/* ============================================================
   Home button
   ============================================================ */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(11,37,69,0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.home-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-teal), #0f8a7e);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -3px 6px rgba(0,0,0,0.18) inset, 0 5px 12px -3px rgba(11,37,69,0.4);
  transition: transform 0.2s ease;
}
.home-btn-ico svg { width: 17px; height: 17px; }
.home-btn-arrow { color: var(--brand-teal); font-weight: 800; transition: transform 0.2s ease; }
.home-btn:hover { border-color: var(--brand-teal); box-shadow: 0 8px 20px rgba(26,168,154,0.22); transform: translateY(-1px); }
.home-btn:hover .home-btn-ico { transform: scale(1.06) rotate(-4deg); }
.home-btn:hover .home-btn-arrow { transform: translateX(-3px); }
.home-btn:active { transform: translateY(0) scale(0.98); }

@media (max-width: 560px) {
  .method-cards { grid-template-columns: 1fr; gap: 10px; }
  .method-card { flex-direction: row; text-align: right; align-items: center; gap: 12px; padding: 14px; }
  .method-card .icon3d-sm { margin: 0; }
  .method-card > span:not(.icon3d) { align-self: flex-start; }
  .otp-input { font-size: 1.4rem !important; letter-spacing: 0.35em; text-indent: 0.35em; }
  .prefill-notice { padding: 14px 40px 14px 14px; }
}

/* ============================================================
   متابعة الطلبات
   ============================================================ */
.field-grouplabel { margin: 18px 0 8px; font-size: 0.86rem; font-weight: 800; color: var(--brand-dark); }
.field-grouplabel:first-child { margin-top: 0; }

.track-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.track-list-head h3 { margin: 0; font-size: 1.05rem; color: var(--brand-dark); }
.track-empty { color: var(--muted); text-align: center; padding: 26px 10px; font-size: 0.9rem; line-height: 1.8; }

.quote-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-card.is-active {
  border-color: var(--brand-teal);
  box-shadow: 0 8px 22px rgba(26,168,154,0.16);
  background: linear-gradient(180deg, rgba(26,168,154,0.05), #fff 60px);
}
.quote-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quote-card-number { margin: 0; font-weight: 800; color: var(--brand-dark); font-size: 1rem; direction: ltr; text-align: right; }
.quote-card-date { margin: 2px 0 0; font-size: 0.76rem; color: var(--muted); }
.quote-card-activeflag {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-badge {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-badge.tone-wait   { background: rgba(63,169,245,0.14); color: #1263a8; border-color: rgba(63,169,245,0.32); }
.status-badge.tone-review { background: rgba(139,124,246,0.14); color: #4b34c4; border-color: rgba(139,124,246,0.32); }
.status-badge.tone-action { background: rgba(224,162,60,0.16); color: #8a5205; border-color: rgba(224,162,60,0.34); }
.status-badge.tone-good   { background: rgba(18,135,111,0.14); color: #0b6353; border-color: rgba(18,135,111,0.3); }
.status-badge.tone-bad    { background: rgba(179,38,30,0.12); color: #8a1a14; border-color: rgba(179,38,30,0.28); }
.status-badge.tone-muted  { background: rgba(90,106,122,0.12); color: #48566a; border-color: rgba(90,106,122,0.26); }

.quote-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 14px 0 0; }
.quote-card-rows dt { margin: 0; font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.quote-card-rows dd { margin: 2px 0 0; font-size: 0.88rem; color: var(--text); }

.quote-notice { border-radius: 12px; padding: 13px 15px; margin: 14px 0 0; border: 1px solid var(--border); background: var(--bg); }
.quote-notice h5 { margin: 0 0 5px; font-size: 0.87rem; color: var(--brand-dark); }
.quote-notice p { margin: 0; font-size: 0.81rem; color: var(--muted); line-height: 1.75; }
.quote-notice-notes { white-space: pre-line; margin: 0 0 8px !important; color: var(--text) !important; font-weight: 600; }
.quote-notice-fields { margin: 8px 0 0 !important; color: var(--brand-dark) !important; }
.quote-notice-hint { margin: 6px 0 0 !important; font-size: 0.78rem !important; }
.quote-notice.tone-wait   { background: rgba(63,169,245,0.07); border-color: rgba(63,169,245,0.28); }
.quote-notice.tone-review { background: rgba(139,124,246,0.07); border-color: rgba(139,124,246,0.28); }
.quote-notice.tone-action { background: rgba(224,162,60,0.09); border-color: rgba(224,162,60,0.34); }
.quote-notice.tone-good   { background: rgba(18,135,111,0.07); border-color: rgba(18,135,111,0.26); }
.quote-notice.tone-bad    { background: rgba(179,38,30,0.06); border-color: rgba(179,38,30,0.24); }
.quote-notice.tone-muted  { background: rgba(90,106,122,0.06); border-color: rgba(90,106,122,0.22); }

.quote-card-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.quote-card-actions .btn { flex: 1 1 auto; min-width: 130px; }

/* ---- Returned-for-changes banner + locked fields ---- */
.revision-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: right;
  background: linear-gradient(165deg, rgba(224,162,60,0.13), rgba(224,162,60,0.03));
  border: 1px solid rgba(224,162,60,0.38);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 16px;
  box-shadow: 0 6px 18px rgba(207,122,18,0.10);
}
.revision-banner .icon3d-sm { margin: 0; }
.revision-banner-text h4 { margin: 0 0 5px; font-size: 0.94rem; color: #8a5205; }
.revision-banner-text p { margin: 0; font-size: 0.83rem; color: var(--muted); line-height: 1.75; }
.revision-banner-notes { white-space: pre-line; color: var(--text) !important; font-weight: 600; margin-bottom: 8px !important; }
.revision-banner-line { margin-top: 6px !important; color: var(--brand-dark) !important; }
.revision-banner-hint { margin-top: 6px !important; font-size: 0.78rem !important; }

.field.is-revision-locked { opacity: 0.5; }
.field.is-revision-locked label::after {
  content: " (مقفل)";
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
#quote-form input:disabled, #quote-form select:disabled, #quote-form textarea:disabled { background: #f1f4f6; cursor: not-allowed; }
.yesno-btn:disabled, .date-chip:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 560px) {
  .quote-card-rows { grid-template-columns: 1fr; }
  .quote-card-actions .btn { min-width: 100%; }
  .quote-card-head { flex-direction: column; }
  .revision-banner { flex-direction: column; }
}
