/* ============================================================
   TIRTH CONNECT — Contact Us Stylesheet
   Modern, bright, spiritual layout with responsive contact form
   ============================================================ */

/* ─── Hero Section ─── */
.contact-hero {
  position: relative;
  padding: 120px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 240, 226, 0.75) 0%, rgba(254, 246, 238, 0) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--saffron-pale);
  color: var(--saffron-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 0, 0.25);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.contact-tagline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.contact-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.contact-meta-tag.highlight-email {
  color: var(--saffron-dark);
  background: #FFF8F2;
  border-color: rgba(255, 107, 0, 0.3);
  font-family: var(--font-body);
  text-transform: lowercase;
}

/* ─── Breadcrumb ─── */
.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.contact-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.contact-breadcrumb a:hover {
  color: var(--saffron);
}

.contact-breadcrumb .sep {
  color: var(--text-light);
}

.contact-breadcrumb .current {
  color: var(--saffron-dark);
  font-weight: 600;
}

/* ─── Main Two-Column Layout ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* ─── Left Column: Direct Info & Guidelines ─── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Email Box */
.email-highlight-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 2px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.email-box-icon {
  width: 52px;
  height: 52px;
  background: var(--saffron-pale);
  color: var(--saffron-dark);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  box-shadow: var(--shadow-xs);
}

.email-box-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.email-box-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.email-address-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--saffron);
  background: var(--cream);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 168, 83, 0.4);
  text-transform: lowercase;
  letter-spacing: 0;
  transition: all 0.25s var(--ease);
}

.email-address-link:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.response-timeline {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* What to Contact About Card */
.what-to-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
}

.card-header-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.card-header-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.card-header-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-topics-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-topic-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.topic-bullet {
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.topic-content h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.topic-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Spiritual Blessing Footer in Col */
.spiritual-quote-box {
  background: var(--warm-bg-alt);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Right Column: Contact Form ─── */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.form-header-box {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-header-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-header-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Form Layout */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: var(--temple-red);
  font-weight: 700;
  font-size: 0.82rem;
}

.form-label .opt {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s var(--ease);
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  background: var(--white);
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--temple-red);
  background: #FFF5F5;
}

/* Contact Method Rule Banner (hidden by default, visible on validation only) */
.contact-rule-banner {
  display: none;
  background: #FFF5F5;
  border: 1px solid rgba(192, 57, 43, 0.45);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--temple-red);
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.contact-rule-banner.visible {
  display: flex;
}

.contact-rule-banner .icon {
  color: var(--saffron-dark);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Character Limit Counter */
.textarea-wrapper {
  position: relative;
}

.char-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

.char-counter-pill {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-muted);
}

.char-counter-pill.near-limit {
  color: var(--saffron-dark);
  border-color: var(--saffron);
}

/* Submit Button */
.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.3);
  transition: all 0.25s var(--ease);
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
  z-index: 5;
  user-select: none;
}

/* Ensure clicks anywhere on button target the button directly */
.btn-contact-submit * {
  pointer-events: none;
}

.btn-contact-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.45);
}

.btn-contact-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-contact-submit:disabled {
  cursor: wait;
  opacity: 0.9;
  transform: none;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
}

/* Loader inside button */
.btn-contact-submit .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-contact-submit .btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-contact-submit.loading .btn-text {
  display: none;
}

.btn-contact-submit.loading .btn-loader {
  display: inline-flex;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes btnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── Toast Notification ─── */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  max-width: 440px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast {
  background: var(--white);
  border: 1px solid var(--gold);
  border-left: 5px solid var(--saffron);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 8px 30px rgba(44, 24, 16, 0.18);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s var(--ease);
}

.toast-close:hover {
  color: var(--text-dark);
}

/* ─── Responsive Styles ─── */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-col {
    order: 2;
  }

  .contact-form-card {
    order: 1;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 35px;
  }

  .contact-title {
    font-size: 2.1rem;
  }

  .contact-tagline {
    font-size: 1.15rem;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-card,
  .what-to-contact-card,
  .email-highlight-box {
    padding: 1.4rem 1.15rem;
  }

  .email-address-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .toast-container {
    bottom: 20px;
    right: 20px;
    width: calc(100% - 40px);
  }
}
