/* =====================================================
   Queenstown Indian Community — styles.css
   Theme: modern tricolour — saffron / white / green on navy
   ===================================================== */

:root {
  --navy:       #142850;
  --navy-dark:  #0b1a38;
  --saffron:    #ff9933;
  --saffron-dk: #e67300;
  --green:      #138808;
  --green-dk:   #0e6606;
  --chakra:     #2456a4;
  --bg:         #f7f9fc;
  --white:      #ffffff;
  --ink:        #1c2333;
  --ink-soft:   #5a6478;
  --border:     #e3e8f0;
  --success:    #2e7d32;
  --success-lt: #e8f5e9;
  --error:      #c62828;
  --error-lt:   #ffebee;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 4px 16px rgba(20, 40, 80, .08);
  --shadow-lg:  0 12px 32px rgba(20, 40, 80, .16);
  --tricolour:  linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 33%, #ffffff 33%, #ffffff 66%, var(--green) 66%, var(--green) 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--tricolour);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--saffron);
  object-fit: cover;
  flex-shrink: 0;
}

.site-title .brand-name {
  display: block;
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .2px;
}

.site-title p {
  color: rgba(255, 255, 255, .65);
  font-size: .72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--saffron); }

.nav-links a.nav-cta {
  background: var(--saffron);
  color: var(--navy-dark);
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s;
}

.nav-links a.nav-cta:hover { background: #ffad5c; color: var(--navy-dark); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 153, 51, .18), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(19, 136, 8, .18), transparent 50%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1d3a6e 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px 110px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--tricolour);
}

.hero-overlay { display: none; }

.hero-content { position: relative; max-width: 840px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .9);
  font-size: .78rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.22;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--saffron), #ffd9ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 26px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 10px 28px;
  font-size: .95rem;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 34px;
}

.hero-badge span { color: var(--saffron); }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--saffron);
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(255, 153, 51, .35);
  transition: transform .2s, background .2s;
}

.hero-btn:hover { transform: translateY(-2px); background: #ffad5c; }

/* ── Sections ───────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px 20px;
}

.section-title { text-align: center; margin-bottom: 44px; }

.section-title h2 {
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 700;
}

.title-border {
  width: 110px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--tricolour);
  border: 1px solid var(--border);
}

/* ── Cards ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--tricolour);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 60px;
  height: 60px;
  margin: 6px auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--chakra));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }

.card p { color: var(--ink-soft); font-size: .9rem; }

/* ── Mission / values boxes ─────────────────────────── */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}

.mv-box {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border-left: 6px solid var(--saffron);
}

.mv-box:nth-child(2) { border-left-color: #ffffff; }

.mv-box:nth-child(3) { border-left-color: var(--green); }

.mv-box h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 10px; font-weight: 600; }

.mv-box p { font-size: .9rem; }

/* ── Notice banner ──────────────────────────────────── */
.address-warning {
  background: #eef4ff;
  border: 1.5px solid var(--chakra);
  border-left: 6px solid var(--chakra);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: .92rem;
  color: #1d3a6e;
}

/* ── Events ─────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.event-card img { width: 100%; display: block; }

.event-label {
  padding: 13px 16px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  background: #eef4ff;
  text-align: center;
  letter-spacing: .4px;
}

.no-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 20px;
  background: var(--white);
  border: 1.5px dashed var(--chakra);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
}

.no-events i { font-size: 2rem; color: var(--chakra); margin-bottom: 12px; }

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--ink-soft);
}

/* ── Lightbox ───────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 28, .93);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.active { display: flex; }

.lightbox-content { max-width: 92%; max-height: 88vh; border-radius: 10px; }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ── Contact ────────────────────────────────────────── */
.contact-wrapper { margin-bottom: 30px; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card i {
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: #eef4ff;
  font-size: 1.35rem;
  color: var(--chakra);
  margin-bottom: 12px;
}

.contact-card h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }

.contact-card p { font-size: .93rem; color: var(--ink-soft); word-break: break-word; }

.contact-card a { color: var(--chakra); text-decoration: none; font-weight: 600; }

.contact-card a:hover { text-decoration: underline; }

.contact-card small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .78rem; }

.social-section { text-align: center; margin-bottom: 10px; }

.social-section h3 { color: var(--navy); margin-bottom: 16px; font-size: 1.2rem; font-weight: 600; }

.social-icons { display: flex; justify-content: center; gap: 16px; }

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  text-decoration: none;
  transition: transform .2s;
}

.social-icon:hover { transform: translateY(-3px); }

.social-icon.facebook { background: #1877f2; }

.social-icon.youtube { background: #ff0000; }

.social-icon.whatsapp { background: #25d366; }

/* ── Contact form ───────────────────────────────────── */
.contact-form-box {
  max-width: 680px;
  margin: 0 auto 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--tricolour);
}

.contact-form-box h3 {
  color: var(--navy);
  text-align: center;
  margin-bottom: 22px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ── Forms (shared) ─────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 56px 24px 46px;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--tricolour);
}

.page-header h1 { font-size: 1.9rem; color: var(--white); font-weight: 700; }

.page-header p { color: rgba(255, 255, 255, .75); margin-top: 8px; }

.page-header .title-border { margin-top: 18px; }

.form-wrap { max-width: 760px; margin: 40px auto 60px; padding: 0 22px; }

.fee-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--success-lt);
  border: 1.5px solid #a5d6a7;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.fee-badge-icon { font-size: 1.8rem; }

.fee-badge-text strong { display: block; color: #1b5e20; font-size: 1rem; }

.fee-badge-text span { font-size: .85rem; color: #2e7d32; }

.form-section-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.form-section-block > h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.form-section-block > h3 i { color: var(--saffron-dk); margin-right: 8px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.form-field { display: flex; flex-direction: column; }

.form-field.field-full { grid-column: 1 / -1; }

.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.req { color: var(--error); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--chakra);
  box-shadow: 0 0 0 3px rgba(36, 86, 164, .15);
}

.form-field small { margin-top: 6px; font-size: .76rem; color: var(--ink-soft); }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: .87rem;
  cursor: pointer;
  background: var(--bg);
}

.radio-pill:has(input:checked) {
  border-color: var(--chakra);
  background: #eef4ff;
  color: var(--chakra);
  font-weight: 600;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  font-size: .9rem;
}

.checkbox-item input { margin-top: 4px; accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; }

.checkbox-item label { cursor: pointer; }

.privacy-block {
  background: var(--white);
  border: 1.5px solid var(--chakra);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(90deg, var(--saffron-dk), var(--saffron));
  color: var(--navy-dark);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 153, 51, .3);
  transition: transform .2s, filter .2s;
}

.submit-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }

.submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Inline result messages */
.result-msg {
  display: none;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 20px;
  font-size: .95rem;
  line-height: 1.6;
  text-align: center;
}

.result-msg.success {
  background: var(--success-lt);
  border: 1.5px solid #a5d6a7;
  color: #1b5e20;
}

.result-msg.error {
  background: var(--error-lt);
  border: 1.5px solid #ef9a9a;
  color: #7f0000;
}

.result-msg i { font-size: 1.6rem; display: block; margin-bottom: 10px; }

.result-msg strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }

/* ── Success page ───────────────────────────────────── */
.success-wrap {
  max-width: 640px;
  margin: 70px auto;
  padding: 0 22px;
  text-align: center;
}

.success-icon-ring {
  width: 90px;
  height: 90px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--success-lt);
  border: 3px solid var(--success);
  color: var(--success);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-wrap h1 { color: var(--navy); font-size: 1.9rem; margin-bottom: 14px; font-weight: 700; }

.success-wrap > p { color: var(--ink-soft); margin-bottom: 30px; }

.success-info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.success-info-box h3 { color: var(--navy); margin-bottom: 16px; font-weight: 600; }

.success-info-box ul { list-style: none; }

.success-info-box li { display: flex; gap: 12px; padding: 8px 0; font-size: .92rem; color: var(--ink-soft); }

.success-info-box li i { color: var(--chakra); margin-top: 3px; }

.action-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  padding: 12px 26px;
  border-radius: 10px;
}

.btn-primary { background: var(--saffron); color: var(--navy-dark); }

.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--chakra); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .78);
  text-align: center;
  padding: 34px 22px;
  font-size: .88rem;
  margin-top: 50px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--tricolour);
}

.footer .copyright { margin-top: 8px; font-size: .78rem; color: rgba(255, 255, 255, .45); }

.footer a { color: rgba(255, 255, 255, .6); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .mobile-menu-btn { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-dark);
    padding: 10px 0;
    z-index: 99;
    border-bottom: 5px solid;
    border-image: var(--tricolour) 1;
  }

  .nav-links.active { display: flex; }

  .nav-links a { padding: 13px 26px; }

  .nav-links a.nav-cta { margin: 10px 22px; text-align: center; }

  .site-title .brand-name { font-size: .95rem; }

  .hero { padding: 70px 20px 80px; }

  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
}
