/* ============================================================
   AVINASH & ASSOCIATES — css/components.css
   Fee Calculator, FAQ, Contact, Footer, Floating Buttons
   ============================================================ */

/* ── FEE CALCULATOR ──────────────────────────────────────── */
.calc-section {
  background: linear-gradient(160deg, var(--light-bg) 0%, #F8FAFF 60%, #ECFDF5 100%);
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.calc-bg-blob {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,.05) 0%, transparent 70%);
  top: -200px; left: -200px; pointer-events: none;
}
.calc-card {
  background: var(--white);
  border-radius: 28px;
  border: 1.5px solid var(--border-card);
  box-shadow: 0 8px 48px rgba(6,78,59,.09), 0 2px 8px rgba(6,78,59,.05);
  padding: 48px 48px 44px;
  max-width: 820px; margin: 0 auto;
}

/* Step indicators */
.calc-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 44px;
}
.calc-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.calc-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--border-ui);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 14px;
  color: var(--text-subtle);
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.calc-step.active .calc-step-num,
.calc-step.done .calc-step-num {
  background: var(--accent); border-color: var(--accent); color: white;
  transform: scale(1.1);
}
.calc-step-lbl {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text-subtle); letter-spacing: .05em; text-transform: uppercase;
  transition: color .3s;
}
.calc-step.active .calc-step-lbl,
.calc-step.done .calc-step-lbl { color: var(--accent); }
.calc-step-line {
  flex: 1; height: 2px; min-width: 60px;
  background: var(--border-ui);
  margin: 0 8px; margin-bottom: 22px;
  border-radius: 2px;
  transition: background .4s;
}
.calc-step-line.active { background: var(--accent); }

.calc-panel { animation: calcFadeIn .35s ease; }
.calc-panel.hidden { display: none; }
@keyframes calcFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.calc-panel-q {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 18px; color: var(--text-heading);
  margin-bottom: 24px; text-align: center;
}
.calc-back-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  padding: 0; margin-bottom: 20px;
  transition: color .2s;
  display: flex; align-items: center; gap: 4px;
}
.calc-back-btn:hover { color: var(--accent); }

.calc-profile-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.calc-profile-btn {
  background: var(--off-white); border: 2px solid var(--border); border-radius: var(--r-xl);
  padding: 20px 12px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.calc-profile-btn:hover {
  border-color: var(--accent); background: var(--light-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6,78,59,.1);
}
.calc-profile-btn.selected {
  border-color: var(--accent); background: var(--light-bg);
  box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}
.calc-profile-ico { font-size: 28px; line-height: 1; }
.calc-profile-name {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--text-heading);
}
.calc-profile-sub {
  font-family: 'Inter', sans-serif; font-size: 10.5px; color: var(--text-muted);
  line-height: 1.3;
}

.calc-service-list {
  display: flex; flex-direction: column; gap: 10px;
}
.calc-service-btn {
  background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 20px; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: border-color .22s, background .22s, transform .22s;
  font-family: 'Inter', sans-serif;
}
.calc-service-btn:hover {
  border-color: var(--accent); background: var(--light-bg);
  transform: translateX(4px);
}
.csb-name {
  font-weight: 600; font-size: 14.5px; color: var(--text-heading);
}
.csb-range {
  font-size: 12.5px; font-weight: 700;
  color: var(--accent); white-space: nowrap;
}

.calc-result {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; text-align: center;
}
.calc-result-top {
  display: flex; align-items: center; gap: 16px;
  background: var(--light-bg); border-radius: var(--r-xl);
  padding: 16px 24px; width: 100%;
}
.calc-result-icon { font-size: 36px; line-height: 1; }
.calc-result-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 4px;
}
.calc-result-service {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--text-heading); margin: 0;
}
.calc-result-range {
  display: flex; align-items: center; gap: 16px;
}
.calc-range-from, .calc-range-to {
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 42px;
  color: var(--primary); line-height: 1;
}
.calc-range-sep {
  font-size: 28px; color: var(--text-muted); font-weight: 300;
}
.calc-result-meta {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.calc-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--text-body);
}
.calc-meta-item svg { color: var(--accent); flex-shrink: 0; }
.calc-result-disclaimer {
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-muted);
  max-width: 480px; line-height: 1.6; margin: 0;
}
.calc-result-cta {
  display: inline-block;
  background: var(--accent); color: white;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: var(--r-full);
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-green);
}
.calc-result-cta:hover {
  background: var(--primary); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6,78,59,.25);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  background: white; padding: 96px 0;
}
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 48px; margin-top: 56px;
  align-items: start;
}
.faq-col { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border-faq);
}
.faq-item:first-child { border-top: 1px solid var(--border-faq); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 4px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text-heading); text-align: left;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q[aria-expanded="true"] { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; border: 1.5px solid var(--border-ui);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: border-color .25s, background .25s, transform .35s;
}
.faq-icon::before,
.faq-icon::after {
  content: ''; position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background .2s, transform .35s, opacity .35s;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; transition: background .2s, transform .35s, opacity .35s; }
.faq-q[aria-expanded="true"] .faq-icon {
  border-color: var(--accent); background: var(--light-bg); transform: rotate(45deg);
}
.faq-q[aria-expanded="true"] .faq-icon::before,
.faq-q[aria-expanded="true"] .faq-icon::after { background: var(--accent); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .4s;
  padding: 0 4px;
}
.faq-a.open { max-height: 400px; padding-bottom: 20px; }
.faq-a p {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text-body); line-height: 1.75; margin: 0;
}
.faq-a strong { color: var(--text-heading); }
.faq-inline-link {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section { background: var(--cream); padding: 96px 0; }
.contact-grid {
  display: grid; grid-template-columns: 45fr 55fr;
  gap: 60px; align-items: start;
}
.contact-info-h {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: var(--txt-2xl); color: var(--text-heading); margin-bottom: 32px;
}
.c-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.c-icon-ring {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: rgba(5,150,105,.09);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.c-label {
  display: block; font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.c-value { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14.5px; color: var(--text-heading); line-height: 1.65; }
.c-link { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14.5px; color: var(--text-heading); transition: color .2s; }
.c-link:hover { color: var(--accent); }

.btn-wa-full {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15.5px;
  color: white; background: var(--whatsapp);
  padding: 15px 32px; border-radius: var(--r-full); margin-bottom: 24px;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.btn-wa-full:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,.38); }

.contact-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { display: block; }

.contact-form-card {
  background: white; border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg); padding: 40px; border-top: 4px solid var(--accent);
}
.f-group { margin-bottom: 20px; }
.f-label { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; color: var(--text-heading); margin-bottom: 8px; }
.f-req { color: var(--error); }
.f-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border-mid); border-radius: var(--r-md);
  font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--text-heading);
  background: var(--off-white); transition: border-color .2s, box-shadow .2s;
  outline: none; appearance: none;
}
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.f-input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
.f-select {
  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='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.f-textarea { resize: vertical; min-height: 100px; }
.f-err {
  display: block; font-family: 'Inter', sans-serif; font-size: 12.5px;
  color: var(--error); margin-top: 6px;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
.f-err.show { opacity: 1; transform: translateY(0); }

.btn-submit {
  width: 100%; padding: 15px; border-radius: var(--r-full);
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .02em;
  color: white; background: var(--grad-green);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: var(--shadow-green);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(5,150,105,.4); filter: brightness(1.04); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.spin-icon { animation: spin .8s linear infinite; }

.form-success { text-align: center; padding: 40px 20px; }
.success-check { display: flex; justify-content: center; margin-bottom: 20px; }
.success-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--txt-2xl); color: var(--text-heading); margin-bottom: 12px; }
.success-txt { font-size: 14.5px; color: var(--text-body); margin-bottom: 8px; }
.success-wa { margin-top: 24px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--primary-dark); position: relative; overflow: hidden; }
.footer-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none; z-index: 0;
}
.footer::after {
  content: '';
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,.06), transparent 70%);
  bottom: -150px; right: -100px; z-index: 0; pointer-events: none;
}
.footer-top-wrap { padding: 72px 0 48px; position: relative; z-index: 1; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 35fr 30fr 35fr; gap: 60px;
}
.ft-firm-name { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 21px; color: white; margin-bottom: 3px; }
.ft-firm-type { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--accent-bright); margin-bottom: 16px; letter-spacing: .04em; }
.ft-tagline { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 14.5px; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.ft-desc { font-family: 'Inter', sans-serif; font-size: 13.5px; color: rgba(255,255,255,.4); line-height: 1.72; max-width: 280px; margin-bottom: 28px; }
/* CA India badge — Footer */
.ft-ca-india {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 10px 14px;
  width: fit-content;
}
.ft-ca-india-logo { display: block; flex-shrink: 0; object-fit: contain; border-radius: 4px; }
.ft-ca-india-text {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55); line-height: 1.5;
}

.ft-socials { display: flex; gap: 12px; }
.ft-social {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: background .2s, border-color .2s, color .2s;
}
.ft-social:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: white; }

.ft-col-h { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-vivid); margin-bottom: 24px; }
.ft-link-list { display: flex; flex-direction: column; gap: 14px; }
.ft-link { font-family: 'Inter', sans-serif; font-size: 13.5px; color: rgba(255,255,255,.5); display: inline-block; transition: color .2s, transform .2s; position: relative; }
.ft-link:hover { color: rgba(255,255,255,.9); transform: translateX(4px); }

.ft-c-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 13.5px;
  color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 14px;
}
.ft-c-icon { flex-shrink: 0; color: var(--accent-bright); margin-top: 3px; }
.ft-c-link { color: rgba(255,255,255,.5); transition: color .2s; }
.ft-c-link:hover { color: var(--gold-vivid); }

.footer-divider { height: 1px; background: rgba(255,255,255,.07); margin: 0 48px; position: relative; z-index: 1; }
.footer-bottom-wrap { padding: 24px 0; position: relative; z-index: 1; }
.footer-bottom-row {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
}
.ft-copy { font-family: 'Inter', sans-serif; font-size: 12.5px; color: rgba(255,255,255,.3); }
.ft-made { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,.22); text-align: center; }
.ft-built-by { color: rgba(255,255,255,.45); transition: color .2s; }
.ft-built-by:hover { color: var(--gold-vivid); }
.ft-legal { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.ft-legal-link { font-family: 'Inter', sans-serif; font-size: 12.5px; color: rgba(255,255,255,.3); transition: color .2s; }
.ft-legal-link:hover { color: rgba(255,255,255,.7); }
.ft-legal-sep { color: rgba(255,255,255,.18); font-size: 12px; }

/* ── FLOATING BUTTONS ────────────────────────────────────── */
.float-wa-wrap {
  position: fixed;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px));
  right: max(28px, calc(env(safe-area-inset-right) + 12px));
  z-index: 999;
  display: flex; align-items: center; gap: 12px;
}
.float-wa-tooltip {
  background: white; color: var(--text-heading);
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12.5px;
  padding: 8px 14px; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  white-space: nowrap; opacity: 0; transform: translateX(8px);
  transition: opacity .25s, transform .25s; pointer-events: none;
  position: relative;
}
.float-wa-tooltip::after {
  content: ''; position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: white;
}
.float-wa-wrap:hover .float-wa-tooltip { opacity: 1; transform: translateX(0); }

.float-wa-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s; position: relative;
}
.float-wa-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp);
  animation: ripple 2.2s ease-out infinite; z-index: -1;
}
.float-wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.55); }

.scroll-top-btn {
  position: fixed;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px));
  left: max(28px, calc(env(safe-area-inset-left) + 12px));
  z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary);
  color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.scroll-top-btn.show { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { background: var(--accent); transform: translateY(-3px); }

/* Shake animation utility */
.shake { animation: shake .5s ease; }
