/* ==========================================================================
   WIPRAEXA INTERNATIONAL COUNTRY LANDING PAGES STYLES
   UAE (/ae/) • UK (/uk/) • USA (/us/) • SAUDI ARABIA (/sa/)
   ========================================================================== */

/* 1. HERO SECTION */
.country-hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, rgba(147, 51, 234, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 80% 60%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
              #030712;
}

.country-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.country-hero-copy {
  position: relative;
  z-index: 2;
}

.country-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: #d8b4fe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.country-hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 22px;
}

.country-hero-title .gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.country-hero-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 620px;
}

.country-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.country-trust-chips {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.country-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

.country-trust-chip svg {
  color: #38bdf8;
}

/* 2. HERO VISUAL TELEMETRY CARD */
.country-hero-visual {
  position: relative;
  z-index: 2;
}

.country-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.country-cockpit-card {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(147, 51, 234, 0.2);
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.cockpit-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.radar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseRadar 1.8s infinite ease-in-out;
}

@keyframes pulseRadar {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.cockpit-tag {
  font-size: 0.72rem;
  font-family: 'Fira Code', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.cockpit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cockpit-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.metric-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-gain {
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 700;
}

.cockpit-scope-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.scope-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.scope-cities-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.city-pill {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.25);
  font-size: 0.76rem;
  color: #f1f5f9;
  font-weight: 600;
}

.cockpit-footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(192, 132, 252, 0.2);
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* 3. REGIONAL MARKET OVERVIEW & CHALLENGE SECTION */
.country-section {
  padding: 100px 0;
  position: relative;
}

.country-section-alt {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.country-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.country-cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.country-cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.country-cards-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.country-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.country-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(147, 51, 234, 0.2);
}

.card-badge-num {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.05em;
}

.country-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(192, 132, 252, 0.3);
  display: grid;
  place-items: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.country-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.country-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

.country-card-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.country-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.country-card-features svg {
  color: #4ade80;
  flex-shrink: 0;
}

.country-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #38bdf8;
  margin-top: auto;
  padding-top: 14px;
  transition: gap 0.2s ease;
}

.country-card:hover .country-card-link {
  gap: 10px;
  color: #c084fc;
}

/* 4. PROCESS STEP TIMELINE */
.process-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.process-step-card {
  position: relative;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
}

.step-num-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9333ea, #38bdf8);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.4);
}

.process-step-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.process-step-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* 5. FAQ ACCORDION */
.country-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 48px auto 0;
}

.country-faq-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.country-faq-item:hover,
.country-faq-item.active {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.country-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.country-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #38bdf8;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.country-faq-item.active .country-faq-icon {
  transform: rotate(45deg);
  background: rgba(147, 51, 234, 0.3);
  color: #d8b4fe;
}

.country-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
}

.country-faq-item.active .country-faq-content {
  max-height: 600px;
  padding: 0 24px 24px;
}

.country-faq-content p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
}

/* 6. CONVERSION ENQUIRY FORM SECTION */
.country-form-wrapper {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(147, 51, 234, 0.15);
  max-width: 920px;
  margin: 0 auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.form-label span.req {
  color: #f43f5e;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-select {
  background: #0f172a;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

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

.form-error-msg {
  font-size: 0.78rem;
  color: #f43f5e;
  display: none;
  margin-top: 4px;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

.form-group.has-error .form-error-msg {
  display: block;
}

/* Service / Project Type Radio Grid in Form */
.project-type-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.type-pill-btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-pill-btn:hover,
.type-pill-btn.active {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(192, 132, 252, 0.5);
  color: #ffffff;
}

.country-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #ffffff;
  margin-bottom: 24px;
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  display: grid;
  place-items: center;
  color: #052e16;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .country-cards-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .country-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .country-cards-grid-3,
  .country-cards-grid-4,
  .country-cards-grid-5,
  .process-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-type-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .country-hero {
    padding: 100px 0 60px;
  }
  .country-cards-grid-3,
  .country-cards-grid-2,
  .country-cards-grid-4,
  .country-cards-grid-5,
  .process-grid-4,
  .form-grid-2,
  .cockpit-metrics-grid {
    grid-template-columns: 1fr;
  }
  .country-form-wrapper {
    padding: 28px 20px;
  }
  .project-type-pills {
    grid-template-columns: 1fr;
  }
}
