/**
 * National Cyber Security Centre - Premium Landing Page Styles
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 0.8s ease forwards;
}

.hero-form-wrapper {
  animation: slideInRight 0.8s ease 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
}

.stat-item {
  flex: 1;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border-primary);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Hero Decorations */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  font-size: 4rem;
  color: var(--gold-primary);
  opacity: 0.06;
  animation: float 8s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  animation-delay: 4s;
}

/* ========================================
   PREMIUM FORM IN HERO
   ======================================== */

.hero-form-wrapper .lead-form-wrapper {
  margin: 0;
  padding: 2.5rem;
  position: relative;
}

.form-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-gold);
  color: #000;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-gold);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-header p {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

/* Progress Bar */
.form-progress {
  margin-bottom: 2rem;
  position: relative;
}

.progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  border-radius: var(--radius-full);
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s linear infinite;
  pointer-events: none;
  border-radius: var(--radius-full);
}

.progress-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gold-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.progress-text i {
  animation: rotate 2s linear infinite;
  font-size: 0.75rem;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group label i {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1.125rem;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  background: var(--bg-card);
}

.form-group input:not(:placeholder-shown),
.form-group select:valid,
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--border-glass);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Phone Input with Country Code */
.phone-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.phone-code-select {
  flex: 0 0 110px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  padding: 0.875rem 1.75rem 0.875rem 0.75rem !important;
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

.phone-code-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.phone-input-wrapper input[type="tel"] {
  flex: 1;
}

/* Checkbox */
.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--gold-primary);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.5;
}

/* Submit button */
.btn-submit {
  width: 100%;
  position: relative;
  padding: 1.125rem 2rem;
}

.btn-submit .btn-arrow {
  position: absolute;
  right: 2rem;
  transition: transform var(--transition-base);
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

/* Form Trust Badges */
.form-trust {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.trust-item i {
  color: var(--gold-primary);
  font-size: 0.875rem;
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  text-align: left;
  padding: 2rem;
  cursor: pointer;
  position: relative;
}

.feature-card-featured {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(245, 166, 35, 0.04));
  border-color: var(--border-gold);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  box-shadow: var(--shadow-gold);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--border-gold);
  border-radius: calc(var(--radius-md) + 6px);
  opacity: 0.5;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap var(--transition-base);
}

.feature-card:hover .feature-link {
  gap: 0.875rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  background: var(--gradient-gold-soft);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-primary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.service-features li i {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

.process-section {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.steps-grid .step-card {
  padding: 2rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-section {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.02) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--gold-primary);
  font-size: 0.875rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: -0.5rem;
  top: -1rem;
  font-size: 3rem;
  color: var(--gold-primary);
  font-family: var(--font-display);
  opacity: 0.4;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-primary);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 0.9375rem;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.author-role {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  gap: 1rem;
}

.faq-question h3 {
  font-size: 1.0625rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
}

.faq-question i {
  color: var(--gold-primary);
  transition: transform var(--transition-base);
  font-size: 0.875rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  background: var(--gold-primary);
  color: #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  color: var(--text-tertiary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding: 4rem 0 6rem;
}

.cta-card {
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-brand .logo {
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col p {
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

.footer-col ul li a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--gold-primary);
}

.footer-col ul li i {
  color: var(--gold-primary);
  margin-right: 0.625rem;
  width: 16px;
  font-size: 0.875rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--border-primary);
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--gradient-gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: transparent;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--gold-primary);
}

/* ========================================
   FORM MESSAGES
   ======================================== */

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.3s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-message.success {
  background: rgba(0, 217, 163, 0.1);
  border: 1px solid var(--status-success);
  color: var(--status-success);
}

.form-message.error {
  background: rgba(255, 92, 108, 0.1);
  border: 1px solid var(--status-error);
  color: var(--status-error);
}

.form-message i {
  font-size: 1.25rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .stat-divider {
    display: none;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .cta-card {
    padding: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  .hero-form-wrapper .lead-form-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
  
  .stat-item {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }
  
  .stat-value {
    margin-bottom: 0;
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
  }
  
  .faq-question h3 {
    font-size: 0.9375rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }
  
  .form-trust {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   MOBILE RESPONSIVE FIXES (Critical)
   ======================================== */

/* Prevent horizontal overflow on body */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Container fix for mobile */
@media (max-width: 968px) {
    .container,
    .hero-grid,
    .hero-content,
    .hero-form-wrapper,
    .lead-form-section,
    .lead-form-card,
    .lead-form,
    section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .lead-form-card {
        padding: 20px !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }
    
    .form-row,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Phone field fix */
    .phone-input-wrapper,
    .phone-group {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .country-code-select {
        min-width: 0 !important;
        max-width: 110px !important;
    }
    
    /* Ensure inputs don't overflow */
    input, select, textarea {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Form labels */
    .form-group label,
    .form-label {
        font-size: 12px !important;
    }
    
    /* Encrypted badge */
    .encrypted-badge,
    .form-badge {
        font-size: 12px !important;
        padding: 8px 14px !important;
        white-space: nowrap !important;
    }
    
    /* Title sizes */
    .form-title,
    .lead-form-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    .form-subtitle,
    .lead-form-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    /* Progress bar */
    .progress-bar,
    .form-progress {
        width: 100% !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    .lead-form-card {
        padding: 16px !important;
    }
    
    /* Phone field stacks vertically on tiny screens */
    .phone-input-wrapper,
    .phone-group {
        grid-template-columns: 100px 1fr !important;
        gap: 6px !important;
    }
    
    /* Smaller inputs */
    input, select, textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    /* Smaller buttons */
    .btn, .btn-primary, .btn-large {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    /* Section padding */
    section {
        padding: 40px 0 !important;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 30px 16px !important;
    }
    
    .hero h1, .hero-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    /* Stats */
    .hero-stats,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Cards */
    .feature-card,
    .step-card,
    .process-card {
        padding: 20px !important;
    }
    
    /* CTA buttons */
    .hero-cta,
    .cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .hero-cta .btn,
    .cta-buttons .btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Footer */
    .footer-grid,
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* FAQ */
    .faq-question {
        font-size: 14px !important;
        padding: 14px !important;
    }
    
    .faq-answer {
        padding: 0 14px 14px !important;
        font-size: 13px !important;
    }
}

/* Extra small (320px) */
@media (max-width: 360px) {
    .lead-form-card {
        padding: 14px !important;
    }
    
    .phone-input-wrapper,
    .phone-group {
        grid-template-columns: 90px 1fr !important;
    }
    
    .country-code-select {
        max-width: 90px !important;
        font-size: 12px !important;
    }
    
    .hero h1, .hero-title {
        font-size: 24px !important;
    }
    
    .form-title,
    .lead-form-title {
        font-size: 20px !important;
    }
}

/* Fix scrollbar issues */
* {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on iOS when focusing inputs */
@media (max-width: 968px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}
