/* ==========================================================================
   Sufix Tech GHL Automation Landing Page Stylesheet
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Root Variables - Brand Colors & Spacing */
:root {
  --bg-dark: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  
  --primary-red: #bf0606;
  --primary-red-glow: #ff2e2e;
  --primary-red-dim: rgba(191, 6, 6, 0.08);
  --gradient-red: linear-gradient(135deg, #bf0606 0%, #ff2e2e 100%);
  --gradient-text: linear-gradient(135deg, #070708 30%, #bf0606 100%);
  
  --text-white: #070708;
  --text-gray: #495057;
  --text-muted: #868e96;
  
  --border-glass: rgba(191, 6, 6, 0.15);
  --border-glass-active: rgba(191, 6, 6, 0.4);
  --border-light: rgba(0, 0, 0, 0.08);
  
  --font-family: 'Poppins', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
  
  --shadow-glow: 0 8px 30px rgba(0, 0, 0, 0.05), 0 0 15px rgba(191, 6, 6, 0.05);
  --shadow-glow-active: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(191, 6, 6, 0.12);
}

/* ==========================================================================
   Base Resets
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #222226;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* ==========================================================================
   Background Visual Elements
   ========================================================================== */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(140px);
  opacity: 0.07;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary-red-glow) 0%, transparent 70%);
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, #ff5e00 0%, transparent 70%);
  opacity: 0.04;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  width: 100%;
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  height: 65px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(230, 28, 28, 0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo-img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(230, 28, 28, 0.45));
}

.fallback-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #070708;
}

.highlight {
  color: var(--primary-red);
  text-shadow: 0 0 10px rgba(191, 6, 6, 0.1);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.hero-section {
  width: 100%;
  padding: 20px 0 80px 0;
  position: relative;
  z-index: 2;
}

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

/* ==========================================================================
   Left Column: Hero Content & Cards Grid
   ========================================================================== */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
}

.cohort-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 300;
}

/* Cards Grid Layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(191, 6, 6, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #070708;
}

.info-card-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 400;
  line-height: 1.4;
}

/* Momentum Line (FLC Style) */
.momentum-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}

.momentum-line {
  width: 32px;
  height: 3px;
  background: var(--gradient-red);
  border-radius: 20px;
  flex-shrink: 0;
}

.momentum-text {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   Right Column: Multi-step Form Container
   ========================================================================== */
.form-container-wrapper {
  position: sticky;
  top: 40px;
  margin-top: 90px;
}

.form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.form-card-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-red);
}

.form-card:hover, .form-card:focus-within {
  border-color: rgba(191, 6, 6, 0.15);
  box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.1);
}

/* Form header & tags */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.form-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.step-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-badge {
  background: rgba(191, 6, 6, 0.06);
  color: var(--primary-red);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(191, 6, 6, 0.1);
  display: inline-flex;
  align-items: center;
}

/* Progress bar style */
/* Progress Steps (FLC Style) */
.progress-steps {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 16px;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-step .step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.progress-step .step-indicator-line {
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.progress-step.active .step-label {
  color: var(--text-white);
  font-weight: 700;
}

.progress-step.active .step-indicator-line {
  background: var(--gradient-red);
  box-shadow: 0 0 8px rgba(255, 46, 46, 0.3);
}

.progress-step.completed .step-label {
  color: var(--text-white);
  font-weight: 700;
}

.progress-step.completed .step-indicator-line {
  background: var(--gradient-red);
}

/* ==========================================================================
   Multi-step Content & Transitions
   ========================================================================== */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-white);
  text-align: left;
}

.step-subtitle {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  font-weight: 300;
}

/* ==========================================================================
   Form Input Fields
   ========================================================================== */
.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.req {
  color: var(--primary-red-glow);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-white);
  outline: none;
  transition: var(--transition-fast);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 46, 46, 0.5);
  background: #ffffff;
  box-shadow: 
    0 0 0 1px rgba(255, 46, 46, 0.5),
    0 0 12px rgba(191, 6, 6, 0.08);
}

/* Custom Dropdown Styling */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-gray);
  border-bottom: 2px solid var(--text-gray);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: var(--transition-fast);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 45px;
  cursor: pointer;
}

select:focus + .select-wrapper::after {
  border-color: var(--primary-red-glow);
}

/* Textarea customization */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Error States */
.input-group.invalid input,
.input-group.invalid select,
.input-group.invalid textarea {
  border-color: #e53e3e !important;
  box-shadow: 0 0 8px rgba(229, 62, 62, 0.25) !important;
}

.error-msg {
  display: none;
  font-size: 0.72rem;
  color: #e53e3e;
  margin-top: 6px;
  font-weight: 500;
  text-align: left;
}

.input-group.invalid .error-msg {
  display: block;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.form-actions.split-buttons {
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-primary {
  background: var(--gradient-red);
  color: #ffffff;
  border: none;
  box-shadow: 
    0 4px 15px rgba(191, 6, 6, 0.25),
    0 0 10px rgba(191, 6, 6, 0.05);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255, 46, 46, 0.3),
    0 0 20px rgba(255, 46, 46, 0.1);
}

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

.btn-secondary {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-gray);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  width: 100%;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-container p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Design / Media Queries
   ========================================================================== */

/* Tablet layout */
@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-subtext {
    margin: 0 auto 40px auto;
  }
  
  .badge-tag {
    align-self: center;
  }
  
  .form-container-wrapper {
    position: static;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }
  
  .trust-badges-container {
    justify-content: center;
  }
}

/* Mobile landscape / portrait */
@media (max-width: 650px) {
  .header-container {
    justify-content: center;
  }
  
  .hero-section {
    padding-bottom: 48px;
  }
  
  .main-container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  
  .form-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .input-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .progress-steps {
    gap: 8px;
    margin-bottom: 24px;
  }

  .progress-step .step-label {
    font-size: 0.65rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-actions.split-buttons {
    flex-direction: column-reverse;
  }
  
  .btn-prev {
    order: 1;
  }
}

/* ==========================================================================
   Entrance Animations & Interactive Effects
   ========================================================================== */

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Staggered Entrance Animations */
.cohort-tag {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

.hero-subtext {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.cards-grid {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.momentum-container {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}

.form-card {
  animation: scaleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}



/* Feature Cards Hover Expansion */
.info-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(191, 6, 6, 0.3);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.05),
    0 0 15px rgba(191, 6, 6, 0.04);
}

/* Button Micro-Animations */
.btn-primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Testimonials Section Styles
   ========================================================================== */
.testimonials-section {
  width: 100%;
  padding: 80px 0 100px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.4) 0%, rgba(255, 255, 255, 1) 100%);
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-red-dim);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-red);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Grid Layout */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.85rem;
  }
}

/* Testimonial Card */
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 20px rgba(191, 6, 6, 0.12);
  border-color: rgba(191, 6, 6, 0.35);
}

/* Thumbnail Area */
.testimonial-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000000;
}

.testimonial-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.testimonial-card:hover .testimonial-thumb {
  transform: scale(1.06);
  filter: brightness(0.9);
}

/* Play Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.testimonial-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.play-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(191, 6, 6, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-btn-circle svg {
  margin-left: 3px;
}

.testimonial-card:hover .play-btn-circle {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(255, 46, 46, 0.85);
}

.video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Content Area */
.testimonial-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stars {
  color: #ffb800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.client-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}

.client-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary-red);
  margin-bottom: 12px;
}

.testimonial-quote {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.5;
  font-style: italic;
}

/* ==========================================================================
   Video Testimonial Modal Popup
   ========================================================================== */
.testimonial-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.testimonial-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(191, 6, 6, 0.2);
  border: 1px solid rgba(191, 6, 6, 0.3);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-modal.active .modal-content-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary-red);
  transform: rotate(90deg);
}

.modal-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-play-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(255, 46, 46, 0.9);

}

.modal-play-btn svg {
  margin-left: 4px;
}

.modal-info-panel {
  padding: 28px 32px 32px 32px;
}

.modal-stars {
  color: #ffb800;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.modal-client-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2px;
}

.modal-client-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 16px;
}

.modal-quote {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}

.modal-footer-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Modal Media: iframe wrapper keeps 16:9 aspect ratio */
#modalMediaContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* Fallback thumbnail fills container */
.modal-thumb-fallback {
  position: absolute;
  inset: 0;
  display: block;
}

.modal-thumb-fallback .modal-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Video coming soon" overlay on top of fallback thumbnail */
.modal-no-video-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.modal-no-video-msg p {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.modal-no-video-msg span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.75;
}

.modal-play-btn-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(255, 46, 46, 0.9);
}

.modal-play-btn-large svg {
  margin-left: 5px;
}

/* Custom Inline controls hover style */
.custom-ctrl-btn:hover {
  background: var(--gradient-red) !important;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 46, 46, 0.6);
  border-color: rgba(255, 255, 255, 0.5) !important;
}

