/* ═══════════════════════════════════════════════════════════
   CONTACT-PAGE.CSS — CloudV24 Contact Page Styles
   Extends sections.css design tokens
   ═══════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════
   PAGE HERO — communication canvas
══════════════════════════════════════ */
.hero.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48vh;
  overflow: hidden;
  padding: 120px 5% 80px;
}

/* Canvas fills the hero */
.hero.page-hero canvas#contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Radial dark vignette — mirrors pricing hero */
.hero.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, rgba(10,14,39,0.15) 0%, rgba(10,14,39,0.88) 72%);
  pointer-events: none;
}

/* Also keep backward compat with old galaxy-canvas id */
.hero.page-hero canvas#galaxy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero.page-hero .hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

/* ── Section wrapper ── */
.sec-cwrap {
  padding: 3rem 1.5rem;
}

/* Active nav */
nav a.active { color: var(--c-cyan, #00d4ff); }

/* ══════════════════════════════════════
   THANK YOU POPUP
══════════════════════════════════════ */
.ty-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.ty-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.ty-modal {
  position: relative;
  background: var(--surface, rgba(22,28,50,.95));
  border: 1.5px solid rgba(0,212,255,.3);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  transform: scale(0.88) translateY(20px);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  box-shadow: 0 40px 100px rgba(0,212,255,.15), 0 0 0 1px rgba(0,212,255,.1);
}
.ty-overlay.show .ty-modal {
  transform: scale(1) translateY(0);
}

.ty-modal__glow {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.12), transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

.ty-modal__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cyan, #00d4ff), var(--c-emerald, #10b981));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(0,212,255,.35);
  animation: checkPop .6s cubic-bezier(.34,1.56,.64,1) .2s both;
}

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

.ty-modal__icon svg {
  width: 34px; height: 34px;
  color: #0a0e27;
  stroke-width: 2.5;
}

.ty-modal__title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text, #e2e8f0);
  margin: 0 0 .75rem;
  background: linear-gradient(135deg, #fff, var(--c-cyan, #00d4ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ty-modal__msg {
  font-size: .95rem;
  color: var(--text-dim, #8892b0);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.ty-modal__msg strong { color: var(--c-cyan, #00d4ff); }

.ty-modal__details {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.85rem;
}
.ty-modal__details span {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600;
  color: var(--c-emerald, #10b981);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  padding: .38rem .85rem;
  border-radius: 50px;
}
.ty-modal__details svg { width: 14px; height: 14px; }

.ty-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, var(--c-cyan, #00d4ff), #0099bb);
  color: #0a0e27;
  font-size: .92rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  border: none;
}
.ty-modal__btn svg { width: 17px; height: 17px; }
.ty-modal__btn:hover { opacity: .88; transform: translateY(-2px); }

/* ══════════════════════════════════════
   QUICK CONTACT CHANNELS
══════════════════════════════════════ */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.channel-card {
  background: var(--surface, rgba(22,28,50,.85));
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-lg, 18px);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: all .35s;
  position: relative;
  overflow: hidden;
}

.channel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-cyan, #00d4ff), transparent);
  transform: scaleX(0);
  transition: transform .4s;
}
.channel-card:hover { transform: translateY(-6px); border-color: rgba(0,212,255,.3); box-shadow: 0 18px 40px rgba(0,212,255,.1); }
.channel-card:hover::before { transform: scaleX(1); }

.channel-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md, 12px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: .35rem;
  transition: transform .3s;
}
.channel-card:hover .channel-card__icon { transform: scale(1.1) rotate(-5deg); }
.channel-card__icon svg { width: 22px; height: 22px; }

.channel-icon--cyan    { background: rgba(0,212,255,.1);   border: 1px solid rgba(0,212,255,.22);   color: var(--c-cyan, #00d4ff); }
.channel-icon--violet  { background: rgba(124,58,237,.1);  border: 1px solid rgba(124,58,237,.22);  color: var(--c-violet, #7c3aed); }
.channel-icon--emerald { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.22);  color: var(--c-emerald, #10b981); }
.channel-icon--amber   { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.22);  color: var(--c-amber, #f59e0b); }

.channel-card h3 { font-size: .98rem; font-weight: 700; color: var(--text, #e2e8f0); }
.channel-card p  { font-size: .82rem; color: var(--text-dim, #8892b0); line-height: 1.55; margin: 0; }

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--c-cyan, #00d4ff);
  text-decoration: none;
  transition: gap .2s;
}
.channel-link svg { width: 13px; height: 13px; }
.channel-link:hover { gap: .55rem; }

.channel-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem; font-weight: 700;
  color: var(--c-emerald, #10b981);
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  padding: .22rem .65rem;
  border-radius: 50px;
  align-self: flex-start;
  margin-top: auto;
}

/* ══════════════════════════════════════
   CONTACT FORM SECTION
══════════════════════════════════════ */
.cform-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar */
.cform-sidebar h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--text, #e2e8f0);
  margin: .5rem 0 .75rem; line-height: 1.2;
}
.cform-sidebar__lead { color: var(--text-dim, #8892b0); font-size: .92rem; line-height: 1.65; margin-bottom: 1.5rem; }

.cform-sidebar__items { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.75rem; }

.cform-info-item {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--surface, rgba(22,28,50,.85));
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-md, 12px);
  padding: .95rem 1.1rem;
  transition: border-color .25s;
}
.cform-info-item:hover { border-color: rgba(0,212,255,.2); }

.cform-info-item__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-sm, 8px);
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan, #00d4ff);
}
.cform-info-item__icon svg { width: 17px; height: 17px; }

.cform-info-item h4 { font-size: .88rem; font-weight: 700; color: var(--text, #e2e8f0); margin-bottom: .2rem; }
.cform-info-item p  { font-size: .8rem; color: var(--text-dim, #8892b0); margin: 0; line-height: 1.5; }

.cform-sidebar__social h4 {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim, #8892b0); margin-bottom: .75rem;
}

.csocials { display: flex; gap: .5rem; }
.csocial {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border, rgba(255,255,255,.07));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim, #8892b0); text-decoration: none;
  transition: all .25s;
}
.csocial svg { width: 16px; height: 16px; }
.csocial:hover { background: rgba(0,212,255,.1); border-color: var(--c-cyan, #00d4ff); color: var(--c-cyan, #00d4ff); transform: translateY(-2px); }

/* Error alert */
.cform-alert {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-md, 12px);
  font-size: .88rem;
  margin-bottom: 1.25rem;
}
.cform-alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.cform-alert--error {
  background: rgba(239,68,68,.08);
  border: 1.5px solid rgba(239,68,68,.25);
  color: #fca5a5;
}

/* Form wrapper */
.cform-wrap {
  background: var(--surface, rgba(22,28,50,.85));
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-lg, 18px);
  padding: 2rem;
}

/* Form elements */
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cform-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1rem;
}

.cform-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim, #8892b0);
  letter-spacing: .02em;
}

.req { color: var(--c-cyan, #00d4ff); }
.opt { color: var(--text-dim, #8892b0); font-weight: 400; }

.cform-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cform-input-wrap > svg:first-child {
  position: absolute;
  left: .85rem;
  width: 16px; height: 16px;
  color: var(--text-dim, #8892b0);
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}

.cform-input-wrap input,
.cform-input-wrap select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-md, 12px);
  padding: .8rem .9rem .8rem 2.5rem;
  font-size: .9rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text, #e2e8f0);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}

.cform-input-wrap input::placeholder { color: var(--text-dim, #8892b0); }

.cform-input-wrap input:focus,
.cform-input-wrap select:focus {
  border-color: rgba(0,212,255,.45);
  box-shadow: 0 0 0 3px rgba(0,212,255,.08);
}

/* Select specific */
.cform-input-wrap--select { position: relative; }
.select-chevron {
  position: absolute !important;
  right: .9rem !important;
  left: auto !important;
  width: 15px !important; height: 15px !important;
  pointer-events: none;
  color: var(--text-dim, #8892b0) !important;
}

/* Textarea */
.cform-textarea-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-md, 12px);
  padding: .9rem 1rem;
  font-size: .9rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text, #e2e8f0);
  resize: vertical;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  min-height: 130px;
}
.cform-textarea-wrap textarea::placeholder { color: var(--text-dim, #8892b0); }
.cform-textarea-wrap textarea:focus {
  border-color: rgba(0,212,255,.45);
  box-shadow: 0 0 0 3px rgba(0,212,255,.08);
}

.cform-charcount {
  text-align: right;
  font-size: .72rem;
  color: var(--text-dim, #8892b0);
  margin-top: .3rem;
  font-family: 'Space Mono', monospace;
}

/* Checkbox */
.cform-check { margin-bottom: .5rem; }

.cform-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-size: .84rem;
  color: var(--text-dim, #8892b0);
  line-height: 1.5;
}

.cform-checkbox input[type="checkbox"] { display: none; }

.cform-checkbox__box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--border, rgba(255,255,255,.15));
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  position: relative;
  transition: all .2s;
  margin-top: 2px;
}

.cform-checkbox input:checked + .cform-checkbox__box {
  background: var(--c-cyan, #00d4ff);
  border-color: var(--c-cyan, #00d4ff);
}

.cform-checkbox input:checked + .cform-checkbox__box::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #0a0e27;
  border-top: none; border-left: none;
  transform: rotate(42deg);
}

/* Submit button */
.cform-submit {
  width: 100%;
  padding: .95rem 1.75rem;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, var(--c-cyan, #00d4ff), #0099bb);
  color: #0a0e27;
  font-size: .95rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity .2s, transform .15s, box-shadow .25s;
  margin-bottom: .85rem;
}
.cform-submit svg { width: 17px; height: 17px; }
.cform-submit:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,212,255,.3); }
.cform-submit:active { transform: scale(.98); }
.cform-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.cform-submit__loading { display: flex; align-items: center; gap: .45rem; }
.cform-submit__loading svg { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.cform-privacy {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  color: var(--text-dim, #8892b0);
  text-align: center;
  justify-content: center;
  margin: 0;
}
.cform-privacy svg { width: 13px; height: 13px; color: var(--c-emerald, #10b981); flex-shrink: 0; }

/* ══════════════════════════════════════
   DEPARTMENTS
══════════════════════════════════════ */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.dept-card {
  background: var(--surface, rgba(22,28,50,.85));
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-lg, 18px);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: all .35s;
}
.dept-card:hover { transform: translateY(-5px); border-color: rgba(0,212,255,.28); box-shadow: 0 14px 36px rgba(0,212,255,.08); }

.dept-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md, 12px);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s; flex-shrink: 0;
}
.dept-card:hover .dept-card__icon { transform: scale(1.1) rotate(-5deg); }
.dept-card__icon svg { width: 22px; height: 22px; }

.dept-icon--cyan    { background: rgba(0,212,255,.1);   border: 1px solid rgba(0,212,255,.22);   color: var(--c-cyan, #00d4ff); }
.dept-icon--violet  { background: rgba(124,58,237,.1);  border: 1px solid rgba(124,58,237,.22);  color: var(--c-violet, #7c3aed); }
.dept-icon--emerald { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.22);  color: var(--c-emerald, #10b981); }
.dept-icon--amber   { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.22);  color: var(--c-amber, #f59e0b); }

.dept-card h3 { font-size: .98rem; font-weight: 700; color: var(--text, #e2e8f0); }
.dept-card p  { font-size: .83rem; color: var(--text-dim, #8892b0); line-height: 1.6; margin: 0; flex: 1; }

.dept-card__contacts {
  display: flex; flex-direction: column; gap: .4rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.dept-card__contacts a {
  display: flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600;
  color: var(--c-cyan, #00d4ff); text-decoration: none;
  transition: gap .2s;
}
.dept-card__contacts a svg { width: 14px; height: 14px; flex-shrink: 0; }
.dept-card__contacts a:hover { gap: .65rem; }

/* ══════════════════════════════════════
   SUPPORT OPTIONS
══════════════════════════════════════ */
.support-opts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.support-opt-card {
  background: var(--surface, rgba(22,28,50,.85));
  border: 1.5px solid var(--border, rgba(255,255,255,.07));
  border-radius: var(--radius-lg, 18px);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: all .35s;
}
.support-opt-card:hover { transform: translateY(-6px); border-color: rgba(0,212,255,.28); box-shadow: 0 18px 40px rgba(0,212,255,.09); }

.support-opt-card__icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md, 12px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .3s;
}
.support-opt-card:hover .support-opt-card__icon { transform: scale(1.1) rotate(-5deg); }
.support-opt-card__icon svg { width: 24px; height: 24px; }

.support-opt--cyan    { background: rgba(0,212,255,.1);   border: 1px solid rgba(0,212,255,.22);   color: var(--c-cyan, #00d4ff); }
.support-opt--violet  { background: rgba(124,58,237,.1);  border: 1px solid rgba(124,58,237,.22);  color: var(--c-violet, #7c3aed); }
.support-opt--emerald { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.22);  color: var(--c-emerald, #10b981); }

.support-opt-card h3 { font-size: 1rem; font-weight: 700; color: var(--text, #e2e8f0); }
.support-opt-card p  { font-size: .84rem; color: var(--text-dim, #8892b0); line-height: 1.65; margin: 0; flex: 1; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .cform-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero.page-hero { min-height: 38vh; padding: 100px 5% 60px; }
  .sec-cwrap { padding: 2.5rem 1rem; }
  .channels-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .support-opts-grid { grid-template-columns: 1fr; }
  .cform-row { grid-template-columns: 1fr; }
  .cform-wrap { padding: 1.5rem; }
  .ty-modal { padding: 2.25rem 1.5rem; }
  .ty-modal__title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .channels-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .ty-modal { padding: 2rem 1.25rem; }
}