/* ==========================================================================
   Novay AI - Premium Contact Form Design System
   Matches novay.ai brand styling, colors, gradients & glassmorphism
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

:root {
  /* Brand Color Palette */
  --primary-bg: #0b0514;
  --secondary-bg: #150926;
  --card-bg: rgba(26, 13, 46, 0.65);
  --card-bg-hover: rgba(36, 18, 64, 0.78);
  --card-border: rgba(160, 36, 182, 0.22);
  --card-border-glow: rgba(184, 51, 204, 0.55);
  
  --accent-purple: #9b22b1;
  --accent-purple-light: #cf78e6;
  --accent-purple-glow: rgba(160, 36, 182, 0.4);
  --accent-gradient: linear-gradient(135deg, #a024b6 0%, #692c92 50%, #4a1a5c 100%);
  --accent-gradient-hover: linear-gradient(135deg, #b833cc 0%, #7e35af 50%, #581f6d 100%);
  --button-primary: #692c92;
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #f3e8f8;
  --text-muted: #bdc3c7;
  --text-dim: #9aa0a6;
  
  /* Status Colors */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);
  --error: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.25);
  --warning: #f59e0b;
  
  /* Layout & Sizing */
  --container-max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 30px rgba(160, 36, 182, 0.28);
  --shadow-glow-strong: 0 0 45px rgba(160, 36, 182, 0.45);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #2d1b4e 0%,
    #4a1a5c 25%,
    #6b2d7a 50%,
    #8b4298 75%,
    #b45bb8 100%
  );
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-white);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* LTR override for English */
html[lang="en"] body {
  font-family: "Montserrat", sans-serif;
}

/* Dark atmospheric backdrop tint */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 15%, rgba(160, 36, 182, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(74, 26, 92, 0.35) 0%, transparent 60%),
              rgba(10, 4, 18, 0.65);
  pointer-events: none;
  z-index: -1;
}

/* Ambient animated blur orbs */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(160, 36, 182, 0.35) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -150px;
  left: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(105, 44, 146, 0.3) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, -30px) scale(0.95); }
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(18, 7, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(160, 36, 182, 0.2);
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  transition: transform 0.25s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(160, 36, 182, 0.15);
  border: 1px solid rgba(160, 36, 182, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-purple-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.website-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: var(--text-white);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(105, 44, 146, 0.35);
}

.website-btn:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 36, 182, 0.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 50px 0 35px 0;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(160, 36, 182, 0.25), rgba(105, 44, 146, 0.15));
  border: 1px solid rgba(184, 51, 204, 0.35);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #e9bbf5;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(160, 36, 182, 0.2);
  animation: pulsePill 3s infinite;
}

@keyframes pulsePill {
  0%, 100% { box-shadow: 0 0 15px rgba(160, 36, 182, 0.2); }
  50% { box-shadow: 0 0 28px rgba(184, 51, 204, 0.45); }
}

.hero-pill i {
  color: #cf78e6;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e8c4f5 50%, #cf78e6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-light);
  opacity: 0.88;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Main Content Layout (Two Columns)
   ========================================================================== */

.main-content {
  flex: 1;
  padding-bottom: 70px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: stretch;
}

/* ==========================================================================
   Side Info Card (Left)
   ========================================================================== */

.info-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.info-header {
  margin-bottom: 28px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple-light);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.info-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 10px;
}

.info-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Feature bullets */
.info-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(160, 36, 182, 0.15);
  border: 1px solid rgba(160, 36, 182, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.feature-item:hover .feature-icon-box {
  background: var(--accent-gradient);
  color: var(--text-white);
  transform: scale(1.05);
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Contact channels list */
.contact-channels {
  border-top: 1px solid rgba(160, 36, 182, 0.2);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(18, 7, 34, 0.45);
  border: 1px solid rgba(160, 36, 182, 0.15);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.25s ease;
}

.channel-link:hover {
  background: rgba(160, 36, 182, 0.18);
  border-color: rgba(184, 51, 204, 0.4);
  transform: translateX(-4px);
}

html[lang="en"] .channel-link:hover {
  transform: translateX(4px);
}

.channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(160, 36, 182, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
  font-size: 15px;
  flex-shrink: 0;
}

.channel-text {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.channel-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .channel-value.rtl-text {
  direction: rtl;
  text-align: right;
}

/* ==========================================================================
   Form Card (Right)
   ========================================================================== */

.form-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-title i {
  color: var(--accent-purple-light);
  font-size: 22px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Notice / Status alerts */
.alert-box {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  animation: slideDown 0.3s ease;
}

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

.alert-box.active {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  box-shadow: 0 4px 14px var(--error-glow);
}

.alert-box.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.alert-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  box-shadow: 0 4px 14px var(--success-glow);
}

.alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form Groups & Inputs */
.form-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label .required-mark {
  color: #f43f5e;
  margin: 0 3px;
  font-weight: bold;
}

.field-label .optional-hint {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 16px;
  color: var(--accent-purple-light);
  font-size: 15px;
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 2;
}

html[lang="en"] .input-icon {
  right: auto;
  left: 16px;
}

.form-control {
  width: 100%;
  padding: 13px 44px 13px 16px;
  background: rgba(18, 7, 34, 0.85);
  border: 1px solid rgba(160, 36, 182, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  font-size: 14.5px;
  transition: all 0.25s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

html[lang="en"] .form-control {
  padding: 13px 16px 13px 44px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13.5px;
}

.form-control:focus {
  border-color: var(--accent-purple-light);
  background: rgba(26, 13, 46, 0.95);
  box-shadow: 0 0 0 3px rgba(160, 36, 182, 0.25);
}

.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-glow);
}

.form-control.is-valid {
  border-color: var(--success);
}

textarea.form-control {
  padding-top: 14px;
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.textarea-icon {
  align-self: flex-start;
  top: 16px;
}

/* Helper text & validation messages */
.field-feedback {
  font-size: 12px;
  color: #f87171;
  min-height: 17px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.2s ease;
}

.field-feedback.active {
  opacity: 1;
  transform: translateY(0);
}

.textarea-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.char-counter {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: "Montserrat", sans-serif;
  direction: ltr;
}

/* ==========================================================================
   Voice Dictation & Speech-to-Text Styling
   ========================================================================== */

.voice-actions-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voice-dictate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(160, 36, 182, 0.28) 0%, rgba(105, 44, 146, 0.45) 100%);
  border: 1px solid rgba(207, 120, 230, 0.4);
  color: #f3e8f8;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.voice-dictate-btn:hover {
  background: linear-gradient(135deg, rgba(184, 51, 204, 0.45) 0%, rgba(126, 53, 175, 0.6) 100%);
  border-color: rgba(207, 120, 230, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160, 36, 182, 0.35);
}

.voice-mic-icon {
  font-size: 13px;
  color: #cf78e6;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Animated Sound Wave Equalizer Bars */
.voice-wave-bars {
  display: none;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.v-bar {
  display: inline-block;
  width: 2.5px;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  animation: waveEqualizer 0.8s ease-in-out infinite alternate;
}

.v-bar:nth-child(1) { animation-delay: 0.1s; }
.v-bar:nth-child(2) { animation-delay: 0.35s; }
.v-bar:nth-child(3) { animation-delay: 0.2s; }
.v-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveEqualizer {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Active Recording State */
.voice-dictate-btn.is-recording {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #fca5a5 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 35px rgba(239, 68, 68, 0.3) !important;
  animation: pulseRecording 1.5s infinite alternate;
}

.voice-dictate-btn.is-recording .voice-mic-icon {
  color: #ffffff;
  transform: scale(1.15);
}

.voice-dictate-btn.is-recording .voice-wave-bars {
  display: inline-flex;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.85), 0 0 45px rgba(239, 68, 68, 0.4); }
}

/* Voice Recording Live Feedback Panel */
.voice-status-panel {
  display: none;
  background: linear-gradient(135deg, rgba(38, 14, 52, 0.95), rgba(24, 8, 36, 0.98));
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.2);
  animation: slideDown 0.25s ease;
}

.voice-status-panel.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  flex-shrink: 0;
  animation: blinkDot 1s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.voice-status-text {
  font-size: 13px;
  font-weight: 600;
  color: #fecaca;
  white-space: nowrap;
}

.voice-interim-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  font-style: italic;
}

.voice-stop-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.voice-stop-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Field-Level Voice Button (inside inputs) */
.field-voice-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(160, 36, 182, 0.18);
  border: 1px solid rgba(160, 36, 182, 0.35);
  color: var(--accent-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  padding: 0;
  outline: none;
}

html[lang="en"] .field-voice-btn {
  left: auto;
  right: 12px;
}

.field-voice-btn:hover {
  background: rgba(160, 36, 182, 0.4);
  color: #ffffff;
  border-color: rgba(207, 120, 230, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.field-voice-btn.is-recording {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
  animation: pulseRecording 1.4s infinite alternate;
}

.input-container.has-voice .form-control {
  padding-left: 48px;
}

html[lang="en"] .input-container.has-voice .form-control {
  padding-left: 44px;
  padding-right: 48px;
}


/* ==========================================================================
   Submit Button & Actions
   ========================================================================== */

.submit-btn {
  width: 100%;
  padding: 15px 28px;
  margin-top: 10px;
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(105, 44, 146, 0.4), 0 0 25px rgba(160, 36, 182, 0.25);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(160, 36, 182, 0.55), 0 0 35px rgba(207, 120, 230, 0.35);
}

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

.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.btn-spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-spinner {
  display: inline-block;
}

.submit-btn.loading .btn-text {
  opacity: 0.9;
}

.submit-btn.loading .btn-icon {
  display: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-footer-hint {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-footer-hint i {
  color: var(--success);
}

/* ==========================================================================
   Success Modal Overlay
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 3, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-card {
  background: linear-gradient(180deg, rgba(32, 14, 58, 0.95) 0%, rgba(18, 7, 34, 0.98) 100%);
  border: 1px solid rgba(184, 51, 204, 0.4);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 42px 36px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(160, 36, 182, 0.35);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

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

.success-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 36px;
  box-shadow: 0 0 30px var(--success-glow);
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.modal-message {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-details-box {
  background: rgba(10, 4, 18, 0.55);
  border: 1px solid rgba(160, 36, 182, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: right;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[lang="en"] .modal-details-box {
  text-align: left;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.detail-key {
  color: var(--text-dim);
}

.detail-val {
  color: var(--text-light);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  flex: 1;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.modal-btn-primary {
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(105, 44, 146, 0.4);
}

.modal-btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: rgba(11, 5, 20, 0.85);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(160, 36, 182, 0.2);
  padding: 30px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-purple-light);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .info-card {
    order: 2;
  }
  
  .form-card {
    order: 1;
    padding: 34px 28px;
  }
  
  .hero-section {
    padding: 35px 0 25px 0;
  }
}

/* Tablets & Mobile */
@media (max-width: 768px) {
  /* Set font-size to 16px to prevent iOS Safari auto-zoom on input focus */
  .form-control,
  input.form-control,
  textarea.form-control {
    font-size: 16px !important;
  }
}

/* Mobile Screens */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  .site-header {
    padding: 10px 0;
  }

  .nav-wrapper {
    gap: 8px;
  }
  
  .brand-logo {
    height: 32px;
  }

  .header-badge {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .website-btn {
    padding: 6px 14px;
    font-size: 12px;
    gap: 5px;
  }

  .hero-section {
    padding: 24px 0 20px 0;
  }

  .hero-pill {
    font-size: 12px;
    padding: 5px 14px;
    margin-bottom: 14px;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 4px;
  }
  
  .form-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .form-header {
    margin-bottom: 20px;
  }

  .form-title {
    font-size: 20px;
  }

  .form-body {
    gap: 16px;
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }
  
  .info-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .info-title {
    font-size: 20px;
  }

  .info-desc {
    font-size: 13.5px;
  }

  .contact-channels {
    gap: 10px;
    padding-top: 18px;
  }

  .channel-link {
    padding: 10px 12px;
  }

  .modal-card {
    padding: 28px 18px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .modal-btn {
    width: 100%;
    min-height: 46px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  
  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}

/* Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  .brand-logo {
    height: 28px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .website-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .form-card,
  .info-card {
    padding: 20px 12px;
  }

  .form-title,
  .info-title {
    font-size: 18px;
  }

  .feature-item {
    gap: 10px;
  }

  .feature-icon-box {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

