﻿/* =============================================
   REWIRE WELLNESS — Contact Page Styles v2.0
   ============================================= */

/* ==================
   Contact Split Layout
   ================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-8);
  align-items: start;
}

/* ==================
   Contact Info Panel — Dark Navy
   ================== */
.contact-info {
  background: linear-gradient(145deg, var(--clr-navy), #0a192f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: ''; position: absolute; top: -40%; right: -30%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 78, 150, 0.15) 0%, transparent 70%);
}
.contact-info::after {
  content: ''; position: absolute; bottom: -20%; left: -15%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 144, 37, 0.1) 0%, transparent 70%);
}
.contact-info > * { position: relative; z-index: 1; }

.contact-info__title {
  font-size: var(--fs-h3); color: var(--clr-white); margin-bottom: var(--sp-1);
}
.contact-info__subtitle {
  font-size: var(--fs-body-sm); color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-5); line-height: var(--lh-relaxed);
}

.contact-info__items { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.contact-info__item { display: flex; align-items: flex-start; gap: 14px; }

.contact-info__item-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.contact-info__item-icon i { color: var(--clr-accent); }

.contact-info__item-label {
  font-size: var(--fs-caption); color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px;
}
.contact-info__item-value {
  font-size: var(--fs-body-sm); color: var(--clr-white); font-weight: var(--fw-medium);
}
.contact-info__item-value a { color: var(--clr-white); transition: color var(--t-base); }
.contact-info__item-value a:hover { color: var(--clr-accent); }

/* Map */
.contact-info__map {
  width: 100%; height: 180px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); margin-bottom: var(--sp-4);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}
.contact-info__map iframe {
  width: 100%; height: 100%; border: none;
  filter: grayscale(0.4) opacity(0.8);
}

/* Social */
.contact-info__social { display: flex; gap: var(--sp-1); }
.contact-info__social-link {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.5);
  transition: all var(--t-base) var(--ease-out);
}
.contact-info__social-link:hover { background: rgba(255,255,255,0.12); color: var(--clr-white); }
.contact-info__social-link svg { width: 18px; height: 18px; }

/* ==================
   Contact Form Card
   ================== */
.contact-form-wrapper {
  background: var(--bg-card-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--clr-teal);
}
.contact-form__title { font-size: var(--fs-h3); margin-bottom: 4px; }
.contact-form__subtitle { font-size: var(--fs-body-sm); color: var(--clr-text-light); margin-bottom: var(--sp-4); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.form__group { margin-bottom: var(--sp-3); position: relative; }
.form__label { display: block; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--clr-text); margin-bottom: 6px; }
.form__label .required { color: var(--clr-error); }

.form__input {
  width: 100%; padding: 14px 16px;
  background: var(--bg-alt); border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-sm); color: var(--clr-text);
  transition: all var(--t-base) var(--ease-out);
}
.form__input::placeholder { color: var(--clr-text-lighter); }
.form__input:focus {
  border-color: var(--clr-teal); background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(18, 78, 150,0.1);
}
.form__input--error { border-color: var(--clr-error) !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important; }

textarea.form__input { min-height: 140px; resize: vertical; font-family: var(--font-body); }

.form__error { display: block; font-size: var(--fs-small); color: var(--clr-error); margin-top: 4px; font-weight: var(--fw-medium); }

.form__checkbox {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: var(--fs-body-sm); color: var(--clr-text); margin-bottom: var(--sp-4);
}
.form__checkbox input[type="checkbox"] { width: 20px; height: 20px; border-radius: 5px; accent-color: var(--clr-teal); cursor: pointer; }

/* ==================
   FAQ Accordion
   ================== */
.faq-section { max-width: 800px; margin: 0 auto; }

.faq__item {
  border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  margin-bottom: var(--sp-2); overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
}
.faq__item:hover { border-color: var(--clr-teal); }
.faq__item--active { border-color: var(--clr-teal); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--clr-teal); }

.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3); cursor: pointer;
  font-family: var(--font-heading); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  color: var(--clr-navy); background: none; border: none; width: 100%; text-align: left;
  transition: color var(--t-base);
}
.faq__question:hover { color: var(--clr-teal); }

.faq__toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--t-base) var(--ease-out);
}
.faq__item--active .faq__toggle { background: var(--clr-teal); transform: rotate(180deg); }
.faq__toggle svg { width: 16px; height: 16px; color: var(--clr-text-light); transition: color var(--t-base); }
.faq__item--active .faq__toggle svg { color: var(--clr-white); }

.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq__answer-content {
  padding: 0 var(--sp-3) var(--sp-3);
  font-size: var(--fs-body-sm); color: var(--clr-text-light); line-height: var(--lh-relaxed);
}

/* ==================
   Responsive
   ================== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .contact-info { order: 2; }
  .contact-form-wrapper { order: 1; }
}

@media (max-width: 768px) {
  .form__row { grid-template-columns: 1fr; }
  .contact-info { padding: var(--sp-4); }
  .contact-form-wrapper { padding: var(--sp-4); }
}
