/* ========== Variables ========== */
:root{
  --primary:#004d98;
  --primary-700:#00386e;
  --accent:#ff8a00; /* orange */
  --accent-2:#ffb35b;
  --muted:#6b7280;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.09);
  --card-shadow: 0 18px 60px rgba(8,24,64,0.08);
  --radius: 14px;
  --max-width: 1200px;
  --bg: linear-gradient(180deg,#f7f9fc 0%,#f3f6fb 100%);
  --white: #ffffff;
  --success: #28b463;
}

:root[data-theme="dark"]{
  --primary:#66b2ff;
  --primary-700:#1f6fb3;
  --bg: linear-gradient(180deg,#071022 0%,#071022 100%);
  --muted:#98a1b3;
  --glass-bg: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.06);
  --white:#e8f0ff;
}

/* ========== Global ========== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color: #071022;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}
[data-theme="dark"] body{ color: #e6f0ff }
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* ========== NAV ========== */
nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1400;
  transition: all .28s ease;
  background: transparent;
}

/* Inner wrapper keeps nav content constrained and responsive */
.nav-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Scrolled state applies to inner content so the full-width fixed nav stays centered */
nav.scrolled .nav-inner{
  padding:8px 18px;
  box-shadow: 0 10px 30px rgba(2,8,24,0.08);
  backdrop-filter: blur(6px) saturate(110%);
  background: rgba(255,255,255,0.6);
  border-radius:12px;
  margin:0 12px;
}
:root[data-theme="dark"] nav.scrolled .nav-inner{
  background: rgba(6,14,28,0.36);
}

.logo{
  display:flex;
  gap:12px;
  align-items:center;
  font-weight:700;
  color:var(--primary-700);
  letter-spacing:0.2px;
  font-size:1.05rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding:6px 10px;
  border-radius:10px;
  box-shadow: 0 6px 20px rgba(10,24,60,0.04);
}
.logo .mark{
  width:44px;height:44px;border-radius:10px;
  background: linear-gradient(135deg,var(--primary),var(--primary-700));
  display:grid;place-items:center;
  color:var(--white); font-weight:800;
  box-shadow: 0 10px 30px rgba(2,12,35,0.14);
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  margin-left:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:2px;
}
.nav-links a{
  font-weight:600;
  color:var(--muted);
  padding:8px 10px;
  border-radius:8px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.nav-links a:focus,
.nav-links a:hover{
  transform: translateY(-4px);
  color:var(--primary-700);
  background: rgba(100,140,255,0.06);
}

.auth-buttons{ display:flex; gap:10px; align-items:center; margin-left:auto }
.btn{
  padding:9px 14px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  border:none;
  letter-spacing:0.2px;
  display:inline-flex; gap:8px; align-items:center;
}
.btn-outline{
  background:transparent;
  color:var(--primary-700);
  border:1.5px solid rgba(7,18,40,0.06);
}
.btn-primary{
  background:var(--accent);
  color:#fff;
  box-shadow: 0 8px 26px rgba(255,138,0,0.16);
}
.btn-ghost {
  background:transparent;
  color:var(--muted);
  border:1px solid transparent;
}

/* ========== HERO ========== */
header.hero {
  margin-top:88px;
  min-height:82vh;
  display:grid;
  grid-template-columns: 1fr;
  gap:28px;
  align-items:center;
  padding:48px 20px 24px;
}
.hero-left{
  position:relative;
  padding:28px;
  border-radius:20px;
  overflow:visible;
  background:
    linear-gradient(180deg, rgba(2,8,20,0.36), rgba(2,8,20,0.12)),
    url('abc.jpg') center / cover no-repeat;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,0.04);
  color: #fff;
  backdrop-filter: blur(4px) saturate(120%);
}

.hero-eyebrow{ display:flex; gap:10px; align-items:center; margin-bottom:12px }
.badge{
  background: rgba(255,255,255,0.06);
  color:var(--white);
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
  border:1px solid rgba(255,255,255,0.06);
}

.hero-title{
  font-size:2.2rem;
  margin:0 0 12px 0;
  color:var(--white);
  letter-spacing:-0.4px;
}
.hero-sub{ margin:0 0 18px 0; color:rgba(255,255,255,0.95); max-width:62ch; font-weight:500 }

.hero-cta-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap }

.discover-btn{
  background:var(--accent);
  color:#fff;
  padding:10px 16px;
  border-radius:12px;
  font-weight:800;
  border:none;
  box-shadow: 0 10px 30px rgba(255,138,0,0.14);
  cursor:pointer;
}

/* hero visual */
.hero-visual{
  height:72vh;
  border-radius:20px;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  color:var(--white);
  transition: transform .6s cubic-bezier(.2,.9,.23,1);
  box-shadow: var(--card-shadow);
  background: linear-gradient(135deg, #0a3a6f 0%, #0a2a50 40%, #153e6a 100%);
}

.hero-visual img.mountain {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  z-index:0;
  filter: saturate(0.98) contrast(0.98);
  -webkit-user-drag: none;
  user-select: none;
}

.hero-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(2,8,20,0.18), rgba(2,8,20,0.42));
  z-index:1;
}

.hero-visual .hero-caption{
  z-index:2;
  margin-left:18px;
  text-shadow: 0 10px 36px rgba(2,8,20,0.6);
  display:flex;
  gap:12px;
  align-items:center;
  color:var(--white);
}
.hero-visual h3{ margin:0; font-size:1.6rem }
.hero-visual p{ margin:6px 0 0; opacity:0.95 }

/* right column — small glass cards */
.hero-cards{
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:stretch;
}
.glass-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius:14px;
  padding:18px;
  border:1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(4,18,40,0.06);
  color:var(--primary-700);
  backdrop-filter: blur(8px) saturate(120%);
  overflow:hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.glass-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 60px rgba(2,12,35,0.12) }
.glass-card h4{ margin:0 0 6px 0; font-size:1.05rem }
.glass-card p{ margin:0; color:var(--muted); font-size:0.95rem }

.features{
  display:flex; gap:12px; margin-top:12px;
}
.feature{
  flex:1; padding:8px; border-radius:10px; text-align:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
  color:var(--primary-700);
}

/* ========== MAIN CONTENT ========== */
main{
  max-width:var(--max-width);
  margin: 28px auto 80px;
  padding: 0 20px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  margin-bottom:28px;
}
.card{
  background:#fff;
  border-radius:12px;
  padding:18px;
  box-shadow: 0 12px 30px rgba(10,20,50,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow:hidden;
}
.card:hover{ transform: translateY(-8px); box-shadow: 0 28px 64px rgba(8,18,40,0.12); }
.card h3{ color:var(--primary-700); margin:0 0 8px 0 }
.card p{ color:var(--muted); font-size:0.98rem; line-height:1.5 }

/* tiles */
.dest-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
  margin-bottom:28px;
}
.dest, .trek, .adventure, .festival{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  min-height:160px;
  display:flex; flex-direction:column; justify-content:flex-end;
  color:#fff;
  box-shadow: 0 12px 28px rgba(6,16,36,0.08);
  transition: transform .28s ease;
  background-size:cover; background-position:center;
}
.dest .overlay, .trek .overlay, .adventure .overlay, .festival .overlay{
  padding:12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
}
.dest h4, .trek h4, .adventure h4, .festival h4{ margin:0; font-size:1.05rem }
.dest p, .trek p, .adventure p, .festival p{ margin:6px 0 0 0; font-size:0.9rem; opacity:0.95 }
.dest:hover, .trek:hover, .adventure:hover, .festival:hover{ transform: translateY(-6px) scale(1.02) }

/* compact festival preview updated: reduced to 4, professional card design */
.fest-preview-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin:14px 0 26px;
  align-items:stretch;
}
.fest-card{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  min-height:180px;
  background:#111;
  color:#fff;
  box-shadow: 0 18px 48px rgba(6,16,36,0.08);
  border:1px solid rgba(255,255,255,0.03);
  display:flex;
  align-items:flex-end;
  text-decoration:none;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
}
.fest-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(6,18,40,0.16);
}
.fest-card figure{
  margin:0; width:100%; height:100%; display:block; position:relative;
}
.fest-card img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: contrast(1.02) saturate(1.05) brightness(.82);
  transition: transform .6s cubic-bezier(.2,.9,.3,1);
}
.fest-card:hover img{ transform: scale(1.06); }

/* overlay content anchored to bottom */
.fest-card .overlay-card{
  position:absolute;
  left:14px; right:14px; bottom:14px;
  padding:10px 12px;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.55));
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  backdrop-filter: blur(6px);
}
.fest-card .overlay-card .left{
  display:flex; gap:10px; align-items:center;
}
.fest-card .overlay-card .title{
  font-weight:800; font-size:1rem; line-height:1; color:#fff;
  text-shadow: 0 8px 22px rgba(0,0,0,0.6);
}
.fest-card .overlay-card .meta{
  font-size:0.85rem; color:rgba(255,255,255,0.88);
}
.fest-card .overlay-card .tag{
  padding:6px 8px; border-radius:8px; background:rgba(255,255,255,0.06); font-weight:700; font-size:11px; color:#fff;
}

/* View All link styling (plain, not orange) */
.view-all-link{
  font-weight:700;
  color:var(--primary-700);
  text-decoration:underline;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid transparent;
}
.view-all-link:hover{ background: rgba(0,0,0,0.04) }

/* footer */
footer{
  background: linear-gradient(90deg,var(--primary), var(--primary-700));
  color:#fff;
  padding:34px 20px;
  margin-top:42px;
  border-radius:12px;
}
footer .row{ display:flex; justify-content:space-between; gap:20px; align-items:flex-start; flex-wrap:wrap }
footer small{ opacity:0.92; color:#eaf0ff }

/* modal */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(3,6,20,0.7);
  justify-content: center;
  align-items: center;
  padding: 28px;
  backdrop-filter: blur(8px);
  animation: fadeIn .3s ease;
}
.modal.show{ display:flex }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 100%;
  max-width:540px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 25px 80px rgba(2,8,24,0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.8);
  animation: slideUp .4s cubic-bezier(.2,.9,.3,1);
}

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

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-700));
}

.modal .close{
  position:absolute; right:20px; top:20px; font-size:28px; cursor:pointer; color:#6b7280;
  width:40px; height:40px; display:grid; place-items:center;
  border-radius:50%; background:rgba(0,0,0,0.05);
  transition: all .3s ease;
  z-index:10;
}
.modal .close:hover {
  background: rgba(0,0,0,0.1);
  color: var(--primary-700);
  transform: rotate(90deg);
}

.form-toggle{ 
  display:flex; gap:0; margin-bottom:0; background:transparent;
  border-bottom: 2px solid #e5ecf6;
  padding: 0 28px;
  margin-bottom: 28px;
  margin-top: 20px;
}
.form-toggle button{ 
  flex:1; padding:14px 16px; font-weight:700; border-radius:0; border:none; cursor:pointer; 
  background:transparent; color:var(--muted);
  border-bottom: 3px solid transparent;
  transition: all .3s ease;
  position: relative;
}
.form-toggle button:hover {
  color: var(--primary-700);
}
.form-toggle button.active{ 
  background: transparent;
  color: var(--primary-700);
  border-bottom-color: var(--accent);
}

.auth-form{ 
  display:flex; flex-direction:column; gap:14px;
  padding: 0 28px 28px;
}
.auth-form h3 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  color: var(--primary-700);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.auth-form > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.auth-form input{
  padding:13px 16px; 
  border-radius:12px; 
  border:1.5px solid #e5ecf6; 
  font-size:0.98rem;
  font-family: inherit;
  transition: all .3s ease;
  background: #fff;
  color: var(--primary-700);
}
.auth-form input::placeholder {
  color: #a0aac4;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
  background: #fafbff;
}

/* Email validation states */
.auth-form input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.auth-form input[type="email"]:invalid:not(:placeholder-shown)::after {
  content: "Invalid email format";
  color: #ef4444;
}

.auth-form input[type="email"]:valid:not(:placeholder-shown) {
  border-color: #28b463;
  box-shadow: 0 0 0 3px rgba(40,180,99,0.1);
}

.email-error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 12px;
  animation: slideDown .3s ease;
  padding-left: 16px;
}

.email-error-msg.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-success-msg {
  display: none;
  color: #28b463;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 12px;
  animation: slideDown .3s ease;
  padding-left: 16px;
}

.email-success-msg.show {
  display: block;
}

.auth-form .btn-submit{ 
  padding:13px; border-radius:12px; border:none; font-weight:700; 
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color:#fff;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.9,.3,1);
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0,77,152,0.2);
  font-size: 1rem;
}
.auth-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,77,152,0.3);
}
.auth-form .btn-submit:active {
  transform: translateY(0);
}

.auth-form p {
  font-size:13px; color:#6b7280; text-align: center; margin-top: 12px;
}
.auth-form p span {
  color: var(--primary-700);
  cursor: pointer;
  font-weight: 700;
  transition: all .3s ease;
}
.auth-form p span:hover {
  color: var(--accent);
}

/* popup */
.popup{
  position: fixed; left:50%; top:14%;
  transform: translateX(-50%) scale(.98);
  background: linear-gradient(90deg,var(--success), #1f9960);
  color:#fff; padding:10px 18px; border-radius:10px;
  box-shadow: 0 12px 36px rgba(2,20,10,0.18);
  z-index:4000; opacity:0; pointer-events:none;
  transition: all .28s ease;
  font-weight:700;
}

/* responsive */
@media (max-width:1100px){
  header.hero{ grid-template-columns:1fr;}
  .hero-visual{ height:56vh; order:2 }
  .hero-cards{ order:1 }
  .grid{ grid-template-columns: repeat(2,1fr) }
  .dest-grid{ grid-template-columns: repeat(2,1fr) }
  .nav-links{ gap:12px; }
  .fest-preview-grid{ gap:12px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
  .qa-reviews { grid-template-columns:1fr; padding:0 12px; }
}
@media (max-width:600px){
  nav{ position:sticky; top:0 }
  .nav-inner{ padding:8px 12px }
  .logo{ font-size:1rem }
  .hero-visual{ height:42vh }
  .grid{ grid-template-columns:1fr }
  .dest-grid{ grid-template-columns:1fr }
  .fest-preview-grid{ grid-template-columns:1fr }
  .festival-preview{ flex-direction:column; gap:10px; align-items:flex-start }
  .festival-preview .cta{ margin-left:0 }
  .hero { padding:18px; margin-top:64px }
  .hero-title{ font-size:1.6rem }
}

/* make FAQ card fully fluid on smaller screens */
@media (max-width:720px){
  .faq-card{ max-width:100%; padding:12px; box-sizing:border-box }
}

/* reveal animations */
.reveal{ opacity:0; transform: translateY(8px); transition: all .6s cubic-bezier(.2,.9,.3,1) }
.reveal.visible{ opacity:1; transform: translateY(0) }

/* Enhanced animations for cards, buttons, and interactive elements */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,138,0,0.3); }
  50% { box-shadow: 0 0 20px rgba(255,138,0,0.6); }
}

/* Apply animations to cards */
.card { animation: slideInUp .7s ease-out forwards; opacity: 0; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.dest, .trek, .adventure, .festival {
  animation: fadeInScale .6s ease-out forwards;
  opacity: 0;
}
.dest:nth-child(1) { animation-delay: 0.15s; }
.dest:nth-child(2) { animation-delay: 0.25s; }
.dest:nth-child(3) { animation-delay: 0.35s; }
.dest:nth-child(4) { animation-delay: 0.45s; }

/* Button hover animations */
.btn { transition: all .3s cubic-bezier(.2,.9,.3,1); position: relative; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(255,138,0,0.3); }
.btn-outline:hover { background: rgba(100,140,255,0.08); }

/* Discover button glow animation */
.discover-btn {
  animation: glow 2s ease-in-out infinite;
}
.discover-btn:hover {
  transform: scale(1.05);
  animation: none;
  box-shadow: 0 12px 36px rgba(255,138,0,0.4);
}

/* Hero left animation */
.hero-left {
  animation: slideInLeft .8s ease-out;
}

/* Glass cards animation */
.glass-card {
  animation: slideInRight .7s ease-out forwards;
  opacity: 0;
}
.glass-card:nth-child(1) { animation-delay: 0.2s; }
.glass-card:nth-child(2) { animation-delay: 0.35s; }
.glass-card:nth-child(3) { animation-delay: 0.5s; }

/* FAQ item hover animation */
.faq-item {
  transition: transform .3s ease, box-shadow .3s ease;
}
.faq-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(100,140,255,0.1);
}

/* Rating stars animation */
.rating-star {
  transition: all .3s cubic-bezier(.2,.9,.3,1);
}
.rating-star:hover {
  transform: scale(1.1) translateY(-3px);
}

/* Festival card animations */
.fest-card {
  transition: all .4s cubic-bezier(.2,.9,.3,1);
}
.fest-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px rgba(6,18,40,0.2);
}

/* Logo animation on hover */
.logo {
  animation: slideInLeft .8s ease-out;
  transition: all .3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.logo .mark {
  transition: all .3s ease;
}
.logo:hover .mark {
  transform: rotate(10deg);
  box-shadow: 0 15px 40px rgba(2,12,35,0.25);
}

/* ===== Additional minimal styles only for festivals & reviews improvements ===== */
.fest-feature { display:grid; grid-template-columns: 1fr; gap:12px; align-items:start; width:100%; border-radius:14px; overflow:hidden; background:#fff; }
.fest-feature .ff-inner { display:flex; gap:12px; align-items:center; padding:12px; }
.fest-feature img { width:100%; height:160px; object-fit:cover; display:block; border-bottom:1px solid #f2f6ff; }
.fest-grid-right { display:grid; gap:12px; }
@media (min-width:901px) { .fest-layout { display:grid; grid-template-columns: 1fr 340px; gap:18px; align-items:start; } }

/* ===== Scoped styles for QA & Give Rating block (REPLACED) ===== */
.qa-reviews {
  display:grid;
  grid-template-columns: 540px 1fr;
  gap:18px;
  margin:22px 0 34px;
  max-width:var(--max-width);
  margin-left:auto;
  margin-right:auto;
  padding:0 20px;
  /* center items by default in case the layout becomes single-column */
  justify-items:center;
}
@media (max-width:980px){ .qa-reviews { grid-template-columns:1fr; } }

.faq-card {
  background: linear-gradient(180deg,#fff,#fbfdff);
  border-radius:12px;
  padding:12px;
  box-shadow: 0 18px 48px rgba(6,16,36,0.06);
  border:1px solid #eef6ff;
  overflow:hidden;
  /* constrain width so it looks centered and attractive */
  max-width:720px;
  width:100%;
}

.faq-item { border-radius:10px; overflow:hidden; margin-bottom:10px; border:1px solid #f3f7fe; }
.faq-q { padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; user-select:none; }
.faq-q h4 { margin:0; font-size:1rem; color:var(--primary-700); font-weight:800; }
.faq-arrow { width:44px; height:44px; display:grid; place-items:center; border-radius:10px; background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02)); color:var(--muted); transition: transform .22s, background .18s; }
.faq-arrow.open { transform: rotate(180deg); background: linear-gradient(135deg,var(--accent), var(--accent-2)); color:#fff; box-shadow:0 12px 36px rgba(255,138,0,0.12); }
.faq-a { padding:12px 16px 16px; color:var(--muted); display:none; border-top:1px solid #f4f8ff; font-size:0.96rem; line-height:1.5; }
.faq-a.show { display:block; }

/* ===== Give Rating — ENHANCED STYLES ===== */
.give-rating {
  width:100%;
  max-width:820px;
  margin: 32px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 50%, #e8f2ff 100%);
  border-radius:24px;
  padding:48px 52px;
  box-shadow:
    0 40px 90px rgba(0,77,152,0.15),
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 0 60px rgba(255,138,0,0.08);
  border:1.5px solid rgba(255,138,0,0.2);
  position:relative;
  overflow:visible;
  text-align:center;
  animation: slideInUp .6s cubic-bezier(.2,.9,.3,1);
}

.give-rating::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent, var(--primary));
  border-radius: 999px;
}

.give-rating h3 {
  margin:0 0 12px 0;
  font-size:2.2rem;
  color: var(--primary-700);
  font-weight:900;
  letter-spacing:-0.5px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.give-rating p.lead {
  margin:0 auto 28px;
  max-width:75%;
  color:var(--muted);
  line-height:1.7;
  font-size:1.02rem;
  font-weight: 500;
}

/* big star row */
.stars {
  display:flex;
  gap:16px;
  justify-content:center;
  align-items:center;
  margin:28px 0 32px;
}

.rating-star {
  --size:64px;
  width:var(--size);
  height:var(--size);
  background: linear-gradient(135deg, #f5f9ff, #eef5ff);
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:32px;
  cursor:pointer;
  color: #cbd5e8;
  border:2px solid #e5ecf6;
  box-shadow: 0 12px 28px rgba(0,77,152,0.08), 0 4px 0 rgba(255,255,255,0.8) inset;
  transition: all .25s cubic-bezier(.2,.9,.3,1);
  position: relative;
  overflow: hidden;
}

.rating-star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,138,0,0.1), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.rating-star:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 36px rgba(255,138,0,0.2), 0 4px 0 rgba(255,255,255,0.8) inset;
}
.rating-star:hover::before {
  opacity: 1;
}

.rating-star.selected {
  background: linear-gradient(135deg, #ffd666, #ffcc33);
  color: #fff;
  border-color: #ffb81c;
  box-shadow: 0 24px 48px rgba(255,138,0,0.25), 0 0 0 4px rgba(255,138,0,0.1);
  transform: translateY(-8px) scale(1.15);
}

.rating-star.unfilled {
  background: linear-gradient(135deg, #f5f9ff, #eef5ff);
  color: #cbd5e8;
  transform: translateY(0) scale(1);
}

/* textarea with enhanced styling */
.rating-text {
  margin:28px auto 8px;
  width:92%;
  max-width:700px;
}
.rating-text textarea {
  width:100%;
  min-height:160px;
  resize:vertical;
  padding:18px 20px;
  border-radius:14px;
  border: 2px solid #e5ecf6;
  background: linear-gradient(180deg, #fafbff, #f5f9ff);
  box-shadow:
    inset 0 8px 16px rgba(0,77,152,0.04),
    0 12px 30px rgba(0,77,152,0.08);
  color: var(--primary-700);
  font-size:0.98rem;
  font-family: inherit;
  font-weight: 500;
  outline:none;
  transition: all .3s ease;
  line-height: 1.6;
}
.rating-text textarea::placeholder { 
  color: #a0aac4;
  font-weight: 500;
}
.rating-text textarea:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 8px 16px rgba(0,77,152,0.04),
    0 16px 40px rgba(255,138,0,0.15),
    0 0 0 4px rgba(255,138,0,0.08);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

/* Send button enhanced */
.give-controls { display:flex; justify-content:center; margin-top:24px; }
.btn-send {
  background: linear-gradient(135deg, var(--accent), #ffb81c);
  color:#fff;
  font-weight:800;
  padding:15px 48px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  box-shadow: 0 20px 50px rgba(255,138,0,0.25);
  font-size:1.02rem;
  transition: all .3s cubic-bezier(.2,.9,.3,1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}
.btn-send::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn-send:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(255,138,0,0.3);
}
.btn-send:hover::before {
  opacity: 1;
}
.btn-send:active { 
  transform: translateY(-1px);
}
.btn-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: 0 12px 30px rgba(0,77,152,0.1);
}

/* subtle footer spacing */
.give-footer { margin-top:16px; color:var(--muted); font-size:0.95rem; font-weight: 500; }

@media (max-width:820px){
  .give-rating { padding:32px 24px; border-radius:18px; }
  .give-rating h3 { font-size: 1.8rem; }
  .give-rating p.lead { max-width:100%; padding:0 8px; font-size: 0.98rem; }
  .rating-text textarea { min-height:140px; padding: 16px 18px; }
  .rating-star { --size:56px; font-size:28px; }
  .btn-send { padding:13px 36px; font-size: 0.98rem; }
  .stars { gap: 12px; margin: 20px 0 24px; }
}

@media (max-width:600px){
  .give-rating { padding:24px 16px; margin: 20px auto; border-radius:16px; }
  .give-rating h3 { font-size: 1.6rem; margin-bottom: 8px; }
  .give-rating p.lead { margin: 0 auto 16px; font-size: 0.95rem; }
  .rating-text textarea { min-height:120px; padding: 14px 16px; font-size: 0.96rem; }
  .rating-star { --size:48px; font-size:24px; }
  .btn-send { padding:12px 28px; font-size: 0.96rem; box-shadow: 0 12px 28px rgba(255,138,0,0.2); }
  .stars { gap: 8px; margin: 16px 0 20px; }
  .modal-content { max-width: 90%; margin: 0 auto; }
  .auth-form { padding: 0 20px 20px; }
  .form-toggle { padding: 0 20px; }
  .modal .close { right: 12px; top: 12px; width: 36px; height: 36px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce){
  .rating-star, .btn-send, .give-rating, .modal-content {
    transition:none !important;
    animation:none !important;
  }

}

/* ===== Contact Us Section ===== */
.contact-us {
  margin: 40px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,138,0,0.05), rgba(0,77,152,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-link svg {
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.contact-link:hover svg {
  transform: scale(1.1);
}

.contact-link span {
  font-weight: 600;
  color: var(--primary-700);
  transition: color 0.3s ease;
}

.contact-link:hover span {
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-links {
    gap: 20px;
  }

  .contact-link {
    padding: 12px;
  }

  .contact-link svg {
    width: 28px;
    height: 28px;
  }
}
