/**
 * Webbitech - Contact & Testimonials Page Styles
 * Creative Studio Aesthetic:
 * - Warm off-white graph-paper background (#FAF9F6, grid 68px 68px)
 * - Space Grotesk bold headings & DM Sans clean typography
 * - Pastel label stickers, rounded white cards, refined borders & soft shadows
 * - Interactive service selector pills & high-impact testimonial cards
 */

:root {
  --cnt-ink: #10151d;
  --cnt-paper: #FAF9F6;
  --cnt-grid: rgba(94, 133, 243, 0.16);
  --cnt-muted: #64748b;
  --cnt-border: #e7e5df;
  --cnt-card-bg: #ffffff;
  --cnt-blue: #0284c7;
  --cnt-focus: #0284c7;
}

body.contact-page {
  background-color: var(--cnt-paper);
  background-image:
    linear-gradient(var(--cnt-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cnt-grid) 1px, transparent 1px);
  background-size: 68px 68px;
  background-attachment: scroll;
  color: var(--cnt-ink);
  margin: 0;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   STUDIO CORNER DECORATIONS
   ========================================================================== */
.studio-spark {
  position: absolute;
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  user-select: none;
}

.spark-blue {
  color: #38bdf8;
}

.spark-pink {
  color: #f472b6;
}

.spark-yellow {
  color: #fbbf24;
}

.studio-wave {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  user-select: none;
}

.studio-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  user-select: none;
}

/* ==========================================================================
   TOPBAR & BRANDING
   ========================================================================== */
.contact-topbar {
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.contact-topbar small {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--cnt-muted);
}

.contact-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-hero-brand {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.contact-hero-brand .brand {
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  color: var(--cnt-ink);
  letter-spacing: -0.04em;
  display: inline-block;
  transition: transform 0.2s ease;
}

.contact-hero-brand .brand span {
  color: var(--cnt-blue);
}

.contact-hero-brand .brand:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   SECTION 1: CONTACT FORM & DIRECT INFO
   ========================================================================== */
.contact-hero-section {
  padding: 10px 0 70px;
  position: relative;
  z-index: 2;
}

.contact-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

/* Sticker Badges */
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  margin-bottom: 18px;
}

.contact-badge-pink {
  background: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.08);
}

.contact-badge-gold {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.08);
}

.contact-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--cnt-ink);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.contact-subtext {
  font-size: 1.08rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 auto;
}

/* Left Column: Studio Information Card */
.contact-info-card {
  background: var(--cnt-card-bg);
  border: 1px solid var(--cnt-border);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cnt-ink);
  margin-bottom: 6px;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--cnt-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.contact-info-item:hover {
  background: #f0f7ff;
  border-color: #bae6fd;
  transform: translateX(3px);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--cnt-blue);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.contact-info-text {
  flex: 1;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

.contact-info-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cnt-ink);
  word-break: break-word;
}

/* Promise Note */
.contact-promise-box {
  margin-top: auto;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #fef08a;
}

.contact-promise-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.contact-promise-text {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
}

/* Right Column: Interactive Form Card */
.contact-form-card {
  background: var(--cnt-card-bg);
  border: 1px solid var(--cnt-border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
}

.form-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cnt-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* Interactive Service Selector Pills */
.service-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.service-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.service-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--cnt-ink);
}

.service-pill-btn.active {
  background: #10151d;
  color: #ffffff;
  border-color: #10151d;
  box-shadow: 0 4px 12px rgba(16, 21, 29, 0.15);
}

.service-pill-btn i {
  font-size: 11px;
}

/* Form Controls */
.form-floating-custom {
  margin-bottom: 20px;
}

.form-floating-custom label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--cnt-ink);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--cnt-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.form-control-custom::placeholder {
  color: #9ca3af;
}

textarea.form-control-custom {
  resize: vertical;
  min-height: 120px;
}

select.form-control-custom {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  padding-right: 38px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.form-control-custom option {
  background: #ffffff;
  color: #10151d;
  padding: 8px 12px;
}

/* Submit Button */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  border-radius: 14px;
  background: #10151d;
  color: #ffffff;
  border: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 21, 29, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-submit-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
}

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

.contact-submit-btn i {
  transition: transform 0.2s ease;
}

.contact-submit-btn:hover i {
  transform: translate(2px, -2px);
}

/* Form Success Notice Banner */
.form-success-banner {
  display: none;
  padding: 16px 20px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 20px;
  align-items: flex-start;
  gap: 12px;
}

.form-success-banner.is-visible {
  display: flex;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SECTION 2: TESTIMONIALS (WHAT CLIENTS SAY)
   ========================================================================== */
.testimonials-section {
  padding: 60px 0 110px;
  position: relative;
  z-index: 2;
}

.testimonials-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
}

/* Minimal Rating Summary Pill */
.testimonial-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--cnt-border);
  border-radius: 9999px;
  padding: 8px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  font-size: 0.94rem;
  color: var(--cnt-ink);
  margin-top: 14px;
}

.testimonial-rating-pill .rating-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 15px;
}

.testimonial-rating-pill .rating-val {
  font-weight: 700;
  color: var(--cnt-ink);
}

.testimonial-rating-pill .rating-sep {
  color: #cbd5e1;
  font-size: 14px;
}

.testimonial-rating-pill .rating-source {
  color: #64748b;
  font-weight: 500;
}

.testimonials-grid {
  margin-top: 10px;
}

.testimonial-card {
  background: var(--cnt-card-bg);
  border: 1px solid var(--cnt-border);
  border-radius: 22px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 21, 29, 0.07);
  border-color: #cbd5e1;
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.star-rating {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

.testimonial-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.testimonial-badge.badge-ecommerce {
  background: #e0f2fe;
  color: #0369a1;
}

.testimonial-badge.badge-corporate {
  background: #f3e8ff;
  color: #7e22ce;
}

.testimonial-badge.badge-shopify {
  background: #ecfdf5;
  color: #047857;
}

.testimonial-badge.badge-healthcare {
  background: #fef3c7;
  color: #b45309;
}

.testimonial-quote {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #1e293b;
  margin-bottom: 24px;
  position: relative;
  flex: 1;
}

.testimonial-quote::before {
  content: "“";
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  line-height: 0;
  vertical-align: -6px;
  margin-right: 4px;
  color: #94a3b8;
}

.testimonial-quote::after {
  content: "”";
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  line-height: 0;
  vertical-align: -6px;
  margin-left: 4px;
  color: #94a3b8;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.author-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--cnt-ink);
  flex-shrink: 0;
}

.author-meta {
  flex: 1;
}

.author-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cnt-ink);
  line-height: 1.2;
  margin-bottom: 3px;
}

.author-role {
  font-size: 0.85rem;
  color: var(--cnt-muted);
  line-height: 1.4;
}

.author-verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
}

/* ==========================================================================
   SECTION 3: STUDIO COMMITMENT & VALUE STRIP
   ========================================================================== */
.contact-guarantee-panel {
  background: #ffffff;
  border: 1px solid var(--cnt-border);
  border-radius: 26px;
  padding: 44px 36px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  max-width: 1100px;
  margin: 0 auto;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.guarantee-content h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cnt-ink);
  margin-bottom: 6px;
}

.guarantee-content p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4b5563;
  margin: 0;
}

/* ==========================================================================
   SCROLL REVEAL (Graceful Degradation: Visible if JS fails)
   ========================================================================== */
html.js-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease var(--reveal-delay, 0ms),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 991.98px) {
  .contact-hero-section {
    padding-bottom: 50px;
  }

  .contact-info-card {
    margin-bottom: 24px;
  }

  .contact-form-card {
    padding: 32px 26px;
  }
}

@media (max-width: 767.98px) {
  .contact-hero-brand {
    text-align: left;
    margin-bottom: 20px;
  }

  .contact-topbar {
    padding: 16px 0 22px;
  }

  .contact-heading {
    font-size: clamp(32px, 8.5vw, 44px);
  }

  .contact-subtext {
    font-size: 0.98rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .service-pills-wrap {
    gap: 8px;
  }

  .service-pill-btn {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .testimonial-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .testimonial-quote {
    font-size: 0.96rem;
  }

  .contact-guarantee-panel {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   REDUCED MOTION PREFERENCE (A11y)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js-motion .reveal,
  .service-pill-btn,
  .contact-submit-btn,
  .testimonial-card,
  .contact-info-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
