/* Responsive fine-tuning */

html, body {
  overflow-x: hidden;
}

.container {
  width: min(1240px, 93%);
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 110px 0 48px !important;
  }

  .page-hero {
    padding: 120px 0 56px !important;
  }

  .btn {
    padding: 12px 22px;
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .compact-audio-grid {
    grid-template-columns: 1fr !important;
  }

  .section-heading h2,
  h2.section-title {
    font-size: 28px !important;
  }

  .service-card,
  .process-card,
  .demo-card,
  .voice-card,
  .testimonial-card {
    padding: 28px 22px !important;
  }

  .contact-form-wrap {
    padding: 28px 22px !important;
  }

  .academic-card {
    padding: 32px 22px !important;
  }

  .cta-inner {
    padding: 36px 24px !important;
    text-align: center;
    justify-content: center !important;
  }

  .cta-white {
    width: 100%;
    justify-content: center;
  }

  .footer-top {
    padding: 56px 0 40px !important;
  }

  .footer-main {
    padding: 40px 0 32px !important;
  }

  .portfolio-section-title h3 {
    font-size: 22px !important;
  }
}

@media (max-width: 768px) {
  .logo-slider {
    padding: 28px 0;
  }
  .logo-track {
    gap: 40px;
  }
  .logo-track img {
    height: 36px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }
}

/* ============================================================
   CONTACT FORM — RESPONSIVE
   ============================================================ */

/* Stack the two-column form rows on small screens */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .contact-form-wrap {
    padding: 28px 20px 32px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  .contact-main-section {
    padding: 60px 0 70px !important;
  }

  .contact-hero {
    padding: 100px 0 36px !important;
  }

  .contact-hero-title h1 {
    font-size: 52px !important;
    line-height: .84 !important;
  }

  .contact-hero-main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .contact-hero-side p {
    font-size: 14px !important;
  }

  .contact-detail {
    grid-template-columns: 28px 38px 1fr !important;
    gap: 10px !important;
  }

  .contact-detail-arrow {
    display: none;
  }

  .contact-detail-info strong {
    font-size: 13px !important;
    word-break: break-all;
  }

  .contact-socials-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important; /* prevent iOS zoom */
  }

  .form-submit {
    padding: 16px 18px !important;
    font-size: 13px !important;
  }

  .contact-info-block h2 {
    font-size: 48px !important;
    line-height: .88 !important;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 55px !important;
  }

  .contact-main-section {
    padding: 70px 0 85px !important;
  }

  .contact-info-block {
    padding-top: 0 !important;
  }
}

/* ============================================================
   FORM MESSAGE STYLING
   ============================================================ */

.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.6;
}

.form-message.success {
  display: block;
  background: #edfbf3;
  border: 1px solid #6fcf97;
  color: #1a7740;
}

.form-message.error {
  display: block;
  background: #fff2f2;
  border: 1px solid #eb5757;
  color: #c0392b;
}

.form-message a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================================
   GENERAL SECTION RESPONSIVE — ensure 100% width on mobile
   ============================================================ */

@media (max-width: 480px) {

  /* Services grid */
  .services-grid,
  .process-grid,
  .voice-grid,
  .video-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* About layout */
  .about-grid,
  .about-layout,
  .about-intro-grid,
  .story-grid,
  .global-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Showreel */
  .showreel-grid {
    grid-template-columns: 1fr !important;
  }

  /* Versatility */
  .versatility-top {
    grid-template-columns: 1fr !important;
  }

  .voice-item {
    grid-template-columns: 30px 42px 1fr !important;
  }

  .voice-item-arrow {
    display: none;
  }

  /* Footer CTA link full-width */
  .footer-cta-link {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   PER-FIELD FORM VALIDATION STYLES (shared)
   ============================================================ */

.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
  border-bottom-color: #e53935 !important;
}

.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #e53935;
  line-height: 1.4;
}
