/* ============================================================
   contact.css — Contact Us & Risk Profiler
   N Gram Technologies | ngram.co.in
   ============================================================ */

/* ─── PAGE LAYOUT ─── */
.contact-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── LEFT PANEL — contact info + quick links ─── */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.contact-info-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--text-main); margin-bottom: 6px;
}
.contact-info-sub {
  font-size: 13.5px; color: var(--text-sub);
  line-height: 1.6; margin-bottom: 28px;
}
.contact-detail-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.contact-detail-item:last-of-type { border-bottom: none; }
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-detail-label {
  font-size: 11.5px; font-weight: 600; color: var(--text-sub);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px;
}
.contact-detail-val {
  font-size: 14px; font-weight: 600; color: var(--text-main);
}
.contact-detail-val a { color: var(--blue); }
.contact-detail-val a:hover { text-decoration: underline; }

.contact-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 24px; width: 100%;
  background: #25D366; color: #fff;
  padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.contact-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,211,102,.4); }

/* ─── LANGUAGE SWITCHER (Risk Profiler) ─── */
.rp-lang-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 50;
}
.rp-lang-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.rp-lang-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}
.rp-lang-btn {
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.rp-lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.rp-lang-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ─── RIGHT PANEL — risk profiler form ─── */
.rp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rp-card-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #F8FAFF, #F0F7FF);
}
.rp-card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--text-main); margin-bottom: 6px;
}
.rp-card-sub { font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.rp-card-body { padding: 32px; }

/* ─── STEP PROGRESS BAR ─── */
.rp-progress {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 32px;
}
.rp-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative;
}
.rp-step::before {
  content: '';
  position: absolute; top: 18px; right: -50%;
  width: 100%; height: 2px;
  background: var(--border);
  z-index: 0;
}
.rp-step:last-child::before { display: none; }
.rp-step.done::before { background: var(--blue); }
.rp-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  z-index: 1; transition: all .2s;
}
.rp-step.active .rp-step-circle { border-color: var(--blue); background: var(--blue); color: #fff; }
.rp-step.done .rp-step-circle { border-color: var(--emerald); background: var(--emerald); color: #fff; }
.rp-step-label { font-size: 11px; color: var(--text-sub); margin-top: 6px; font-weight: 500; text-align: center; }
.rp-step.active .rp-step-label { color: var(--blue); font-weight: 700; }
.rp-step.done .rp-step-label { color: var(--emerald); }

/* ─── FORM SECTIONS ─── */
.rp-section { display: none; }
.rp-section.active { display: block; }

.rp-section-heading {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: var(--text-main); margin-bottom: 4px;
}
.rp-section-desc {
  font-size: 13px; color: var(--text-sub);
  margin-bottom: 24px; line-height: 1.55;
}

/* ─── FORM FIELDS ─── */
.rp-field { margin-bottom: 20px; }
.rp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-label {
  font-size: 13px; font-weight: 600; color: var(--text-main);
  display: block; margin-bottom: 7px;
}
.rp-required { color: #DC2626; }
.rp-input, .rp-select, .rp-textarea {
  width: 100%;
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 11px 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--text-main);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.rp-input:focus, .rp-select:focus, .rp-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.rp-input.error, .rp-select.error { border-color: #DC2626; }
.rp-textarea { resize: vertical; min-height: 80px; }
.rp-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 36px;
}
.rp-field-error {
  font-size: 11.5px; color: #DC2626;
  margin-top: 5px; display: none; align-items: center; gap: 4px;
}
.rp-field-error.show { display: flex; }
.rp-field-hint { font-size: 11.5px; color: #94A3B8; margin-top: 5px; }

/* ─── QUESTION CARDS (multiple choice) ─── */
.rp-question {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rp-question-header {
  background: var(--slate-light);
  padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  color: var(--text-main); line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.rp-q-num {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.rp-question-note {
  font-size: 11.5px; color: var(--text-sub); line-height: 1.5;
  padding: 8px 18px 0; font-style: italic;
}
.rp-options { padding: 8px 0; }
.rp-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 18px; cursor: pointer;
  transition: background .12s;
  border: none; width: 100%; text-align: left; background: none;
  font-family: var(--font-body);
}
.rp-option:hover { background: var(--blue-light); }
.rp-option.selected { background: var(--blue-light); }
.rp-option input[type="radio"] { display: none; }
.rp-option-dot {
  width: 18px; height: 18px; min-width: 18px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; transition: all .15s; flex-shrink: 0;
}
.rp-option.selected .rp-option-dot {
  border-color: var(--blue); background: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.rp-option.selected .rp-option-dot::after {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #fff;
}
.rp-option-text {
  font-size: 13.5px; color: var(--text-main); line-height: 1.5;
}
.rp-option.selected .rp-option-text { color: var(--blue); font-weight: 500; }
.rp-question-error {
  font-size: 11.5px; color: #DC2626;
  padding: 0 18px 10px;
  display: none; align-items: center; gap: 4px;
}
.rp-question-error.show { display: flex; }

/* ─── CONSENT CHECKBOX (policy agreement) ─── */
.rp-consent {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.rp-consent-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.rp-consent-checkbox {
  width: 18px; height: 18px; min-width: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}
.rp-consent-text {
  font-size: 13px; color: var(--text-sub); line-height: 1.55;
}
.rp-consent-text a {
  color: var(--blue); font-weight: 600; text-decoration: none;
}
.rp-consent-text a:hover { text-decoration: underline; }
.rp-consent .rp-field-error { margin-top: 8px; margin-left: 28px; }

/* ─── NAVIGATION BUTTONS ─── */
.rp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; margin-top: 4px;
  border-top: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.rp-nav .btn { min-width: 140px; justify-content: center; }
.rp-btn-back {
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  background: none; border: none; cursor: pointer; padding: 8px 0;
  display: flex; align-items: center; gap: 6px;
}
.rp-btn-back:hover { color: var(--text-main); }

/* ─── SCORE / RESULT CARD ─── */
.rp-result { display: none; }
.rp-result.show { display: block; }
.rp-score-ring-wrap { display: flex; justify-content: center; margin-bottom: 28px; position: relative; }
.rp-score-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.rp-score-val {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: var(--navy); display: block;
}
.rp-score-of { font-size: 12px; color: var(--text-sub); }
.rp-profile-badge {
  text-align: center; margin-bottom: 24px;
}
.rp-profile-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  margin-bottom: 6px;
}
.rp-profile-tagline { font-size: 14px; color: var(--text-sub); }
.rp-profile-details {
  background: var(--slate-light); border-radius: var(--radius-md);
  padding: 20px 22px; margin-bottom: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.rp-detail-item { display: flex; flex-direction: column; gap: 4px; }
.rp-detail-label { font-size: 11px; font-weight: 600; color: var(--text-sub); text-transform: uppercase; letter-spacing: .04em; }
.rp-detail-val { font-size: 14px; font-weight: 700; color: var(--text-main); }
.rp-fund-rec {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 20px;
}
.rp-fund-rec-title {
  background: var(--navy); color: #fff;
  padding: 12px 18px; font-size: 13px; font-weight: 700;
}
.rp-fund-rec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.rp-fund-rec-row:last-child { border-bottom: none; }
.rp-fund-rec-cat { color: var(--text-sub); }
.rp-fund-pct { font-family: var(--font-display); font-weight: 700; color: var(--blue); }

/* ─── SUBMIT FEEDBACK ─── */
.rp-feedback {
  border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; line-height: 1.6; display: none;
}
.rp-feedback.show { display: flex; }
.rp-feedback-success { background: var(--emerald-light); border: 1px solid #A7F3D0; color: #065F46; }
.rp-feedback-error   { background: #FEE2E2; border: 1px solid #FECACA; color: #7F1D1D; }
.rp-submit-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; display: none;
  animation: rpSpin .7s linear infinite;
}
.rp-submit-btn.loading .rp-submit-spinner { display: inline-block; }
.rp-submit-btn.loading .rp-submit-label { display: none; }
@keyframes rpSpin { to { transform: rotate(360deg); } }

/* ─── DISCLAIMER ─── */
.rp-disclaimer {
  font-size: 11px; color: #94A3B8; line-height: 1.7;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .contact-shell { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .rp-card-body { padding: 22px 20px; }
  .rp-profile-details { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .rp-lang-bar-label { display: none; }
  .rp-lang-bar-inner { padding: 10px 12px; gap: 6px; }
  .rp-lang-btn { padding: 6px 14px; font-size: 12.5px; }
  .rp-field-row { grid-template-columns: 1fr; }
  .rp-card-header { padding: 22px 20px 20px; }
  .rp-card-title { font-size: 18px; }
  .rp-nav { flex-direction: column-reverse; }
  .rp-nav .btn { width: 100%; }
}

/* ─── Extra small-screen fixes ─── */
@media (max-width: 480px) {
  .rp-card-header { padding: 18px 16px; }
  .rp-card-body { padding: 16px; }
  .rp-card-title { font-size: 17px; }
  .rp-progress { gap: 0; margin-bottom: 24px; }
  .rp-step-label { font-size: 9.5px; }
  .rp-step-circle { width: 30px; height: 30px; font-size: 12px; }
  .rp-question-header { font-size: 13px; padding: 12px 14px; }
  .rp-option { padding: 10px 14px; }
  .rp-option-text { font-size: 13px; }
  .rp-nav { flex-direction: column-reverse; gap: 10px; }
  .rp-nav .btn { width: 100%; justify-content: center; }
  .rp-score-ring-wrap svg { width: 110px; height: 110px; }
  .rp-score-val { font-size: 24px; }
  .rp-profile-name { font-size: 20px; }
  .rp-profile-details { grid-template-columns: 1fr; }
  .rp-fund-rec-row { flex-direction: column; gap: 4px; }
  .contact-info-card { padding: 20px 16px; }
  .contact-wa-btn { padding: 11px 16px; font-size: 13px; }
}
@media (max-width: 380px) {
  .rp-card-body { padding: 14px 12px; }
  .rp-section-heading { font-size: 15px; }
  .rp-field-row { grid-template-columns: 1fr; }
}

/* ── Risk Profiler CTA card (replaces inline risk profiler) ── */
.rp-cta-card {
  background: var(--white);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 8px 32px rgba(15,45,110,.10), 0 2px 8px rgba(0,0,0,.05);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
}
.rp-cta-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.rp-cta-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.25;
}
.rp-cta-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  .rp-cta-card { padding: 28px 22px; }
  .rp-cta-title { font-size: 19px; }
}

/* ═══════════════════════════════════════════════
   WRITE TO US CARD
═══════════════════════════════════════════════ */
.wtu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wtu-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #F8FAFF, #F0F7FF);
}
.wtu-icon { font-size: 32px; margin-bottom: 10px; }
.wtu-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--text-main); margin-bottom: 6px;
}
.wtu-sub { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

.wtu-body { padding: 28px 32px 32px; }

/* Fields */
.wtu-field { margin-bottom: 18px; }
.wtu-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wtu-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-main); margin-bottom: 7px;
}
.wtu-req { color: #DC2626; }
.wtu-input, .wtu-select, .wtu-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 11px 14px; font-family: var(--font-body);
  font-size: 14px; color: var(--text-main); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.wtu-input:focus, .wtu-select:focus, .wtu-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.wtu-input.error, .wtu-select.error, .wtu-textarea.error { border-color: #DC2626; }
.wtu-textarea { resize: vertical; min-height: 100px; }
.wtu-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 36px;
}
.wtu-err {
  font-size: 11.5px; color: #DC2626; margin-top: 5px;
  display: none; align-items: center; gap: 4px;
}
.wtu-err::before { content: '⚠ '; }

/* Disclaimer */
.wtu-disclaimer {
  font-size: 11.5px; color: #94A3B8; line-height: 1.7;
  margin-bottom: 20px; padding: 12px 14px;
  background: #F8FAFF; border-radius: 8px;
  border: 1px solid #E2E8F0;
}

/* Submit button */
.wtu-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  background: var(--blue); color: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wtu-submit-btn:hover:not(:disabled) {
  background: #1444b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26,86,219,.35);
}
.wtu-submit-btn:disabled { opacity: .7; cursor: not-allowed; }

/* Spinner */
.wtu-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: wtuSpin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes wtuSpin { to { transform: rotate(360deg); } }

/* Feedback banners */
.wtu-feedback {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-md);
  font-size: 13.5px; line-height: 1.6; margin-bottom: 20px;
}
.wtu-feedback-success {
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46;
}
.wtu-feedback-error {
  background: #FEE2E2; border: 1px solid #FECACA; color: #7F1D1D;
}

/* Responsive */
@media (max-width: 580px) {
  .wtu-field-row { grid-template-columns: 1fr; }
  .wtu-header { padding: 22px 20px 20px; }
  .wtu-body { padding: 20px 20px 24px; }
  .wtu-title { font-size: 19px; }
}
@media (max-width: 480px) {
  .wtu-header { padding: 18px 16px; }
  .wtu-body { padding: 16px; }
}
