/* =============================================
   HAAN RDP VPS MART — contact.css
   Matches existing site theme exactly
   ============================================= */

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

/* ---------- TOKENS (copied from your site) ---------- */
:root {
  --bg:        #0a0e1a;
  --bg-card:   #111827;
  --bg-input:  #0d1526;
  --border:    rgba(255,255,255,0.08);
  --blue:      #3b82f6;
  --blue-dark: #2563eb;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --green:     #22c55e;
  --radius:    12px;
  --max:       1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ---------- SHARED UTILITIES ---------- */
.blue { color: var(--blue); }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 999;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 5%; height: 68px;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex; list-style: none; gap: 2rem; margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ---------- HERO ---------- */
.hero {
  padding: 88px 5% 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 800px 500px at 50% 0%, rgba(59,130,246,0.07) 0%, transparent 70%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.08);
  padding: 5px 16px; border-radius: 50px; margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 18px;
}

.hero-sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 580px; margin: 0 auto 44px;
}

.hero-stats {
  display: inline-flex; align-items: center; gap: 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 36px;
}

.hstat { text-align: center; }
.hstat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.hstat span   { font-size: 0.78rem; color: var(--muted); }
.hstat-div    { width: 1px; height: 36px; background: var(--border); }

/* ---------- SECTIONS ---------- */
.sec {
  padding: 80px 5%;
  max-width: calc(var(--max) + 10%);
  margin: 0 auto;
}
.sec-dark {
  background: var(--bg-card);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.sec-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800; margin-bottom: 10px;
}
.sec-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 44px; }

/* ---------- CHANNELS ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ch-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, background .2s;
  cursor: pointer;
}
.ch-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  background: rgba(59,130,246,0.04);
}

.ch-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wa { background: rgba(37,211,102,0.12); color: #25d366; }
.dc { background: rgba(88,101,242,0.12); color: #5865f2; }
.ig { background: rgba(225,48,108,0.12); color: #e1306c; }
.fb { background: rgba(24,119,242,0.12); color: #1877f2; }

.ch-info { flex: 1; min-width: 0; }
.ch-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.ch-info p  { font-size: 0.8rem; color: var(--muted); }

.badge {
  display: inline-block; margin-top: 6px;
  font-size: 0.7rem; font-weight: 600; padding: 2px 10px;
  border-radius: 50px; background: rgba(255,255,255,0.06); color: var(--muted);
}
.badge.green { background: rgba(34,197,94,0.1); color: var(--green); }

.ch-arr { color: var(--muted); font-size: 1rem; flex-shrink: 0; transition: transform .2s; }
.ch-card:hover .ch-arr { transform: translateX(4px); color: var(--blue); }

/* ---------- FORM ---------- */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 740px;
  margin: 0 auto;
}

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

.form-group {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px;
}

.form-group label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit; font-size: 0.92rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a4a60; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: #ef4444; }

.ferr { font-size: 0.78rem; color: #ef4444; min-height: 14px; }

.btn-full { width: 100%; font-size: 1rem; padding: 14px; border-radius: 10px; }

.spin {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 8px; vertical-align: middle;
}

.form-ok {
  margin-top: 16px; padding: 14px 18px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px;
  color: var(--green); font-size: 0.9rem;
  animation: fadeUp .4s ease;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 740px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(59,130,246,0.4); }

.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: none; border: none;
  color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 500;
  text-align: left; cursor: pointer; transition: color .2s;
}
.faq-btn:hover, .faq-item.open .faq-btn { color: var(--blue); }

.faq-plus {
  flex-shrink: 0; font-size: 1.2rem; line-height: 1; color: var(--muted);
  transition: transform .3s, color .2s;
}
.faq-item.open .faq-plus { transform: rotate(45deg); color: var(--blue); }

.faq-ans {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  padding: 0 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.open .faq-ans { max-height: 160px; padding: 0 20px 18px; }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  text-align: center;
  padding: 80px 5%;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.02) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-strip p  { color: var(--muted); font-size: 1rem; margin-bottom: 32px; }
.cta-btns     { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 5% 0;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--border); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p  { font-size: 0.8rem; color: var(--muted); }
.footer-tag       { font-style: italic; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 9999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 26px rgba(37,211,102,0.55); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10,14,26,0.98);
    border-bottom: 1px solid var(--border);
    padding: 20px 5%; gap: 14px;
  }
  .nav-links.open .nav-cta-mobile { display: block; }

  .hero-stats { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .hstat-div  { width: 60px; height: 1px; }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }

  .channels { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
