:root {
  --x-uid: "RGVzaWduZWQgYnkgZ293aXRoc3ViaGE=";
  --x-build: "Z293aXRoc3ViaGE=";
  --primary: #ca20fd;
  --secondary: #f27839;
  --accent-pink: #eb4f74;
  --accent-purple: #a86689;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #fdf8ff;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius-lg: 22px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  background-image:
    radial-gradient(900px 380px at 5% 10%, rgba(202, 32, 253, 0.12), transparent 60%),
    radial-gradient(800px 320px at 90% 15%, rgba(242, 120, 57, 0.14), transparent 60%),
    radial-gradient(900px 420px at 50% 85%, rgba(235, 79, 116, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(253, 248, 255, 0.98));
  overflow-x: hidden;
  overflow-anchor: none;
}

#header .navbar a,
#header .navbar a:focus {
  color: var(--text-dark);
}

#header .navbar a:hover,
#header .navbar .active,
#header .navbar .active:focus,
#header .navbar li:hover > a {
  color: #ff4a17;
}

#header .navbar .getstarted:hover,
#header .navbar .getstarted:focus:hover,
#header .navbar li:hover > .getstarted {
  color: #ffffff;
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.page-main {
  margin-top: 100px;
  padding: 30px 0 80px;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.oec-form-section {
  padding: 20px 0 60px;
}

.oec-form-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px 36px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.oec-form-hero {
  margin: -8px -8px 20px;
  border-radius: 18px;
  overflow: hidden;
}

.oec-form-hero img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 22px;
  color: var(--text-dark);
}

.oec-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.oec-progress-track {
  width: 100%;
  height: 16px;
  background: rgba(202, 32, 253, 0.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(202, 32, 253, 0.18);
}

.oec-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #ca20fd, #f27839);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.oec-progress-text {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
}

.oec-progress[data-progress="20"] .oec-progress-fill { width: 20%; }
.oec-progress[data-progress="33"] .oec-progress-fill { width: 33%; }
.oec-progress[data-progress="40"] .oec-progress-fill { width: 40%; }
.oec-progress[data-progress="60"] .oec-progress-fill { width: 60%; }
.oec-progress[data-progress="66"] .oec-progress-fill { width: 66%; }
.oec-progress[data-progress="80"] .oec-progress-fill { width: 80%; }
.oec-progress[data-progress="100"] .oec-progress-fill { width: 100%; }

.section-subtitle {
  font-size: 1.05rem;
  margin: 12px 0 8px;
  color: var(--text-dark);
}

.oec-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.error {
  display: none;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
}

.success {
  display: none;
  margin-top: 6px;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 600;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.18) !important;
}

.dob-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-group {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-field input,
.form-field textarea {
  border-radius: 50px;
  border: 2px solid var(--primary);
  padding: 12px 20px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  background: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(202, 32, 253, 0.1);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 6px 20px rgba(242, 120, 57, 0.15);
}

.dropdown-modern {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: left;
}

.dropdown-toggle-modern {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--primary);
  padding: 12px 20px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(202, 32, 253, 0.1);
}

.dropdown-toggle-modern .current-selection {
  color: var(--text-light);
  font-weight: 400;
}

.dropdown-modern.has-value .current-selection {
  color: var(--text-dark);
}

.dropdown-toggle-modern:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 20px rgba(242, 120, 57, 0.15);
}

.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--primary);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.dropdown-modern.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu-modern {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f2f2f2;
}

.dropdown-menu-modern::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu-modern::-webkit-scrollbar-track {
  background: #f2f2f2;
  border-radius: 999px;
}

.dropdown-menu-modern::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
  border: 2px solid #f2f2f2;
}

.dropdown-modern.open .dropdown-menu-modern {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-modern li {
  padding: 12px 22px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
}

.dropdown-menu-modern li:hover {
  background: rgba(202, 32, 253, 0.1);
  color: var(--primary);
}

.dropdown-menu-modern li.selected {
  background: linear-gradient(135deg, rgba(202, 32, 253, 0.08) 0%, rgba(242, 120, 57, 0.08) 100%);
  color: var(--primary);
  font-weight: 600;
}

.dropdown-menu-modern li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-menu-modern li.selected::before {
  opacity: 1;
}

.required {
  color: #e63757;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .tag-pill {
  text-align: left;
}

.tag-pill {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.tag-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-pill.is-selected {
  border-color: var(--primary);
  background: rgba(202, 32, 253, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  gap: 12px;
}

.secondary-btn {
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--white);
  color: var(--primary);
  transition: var(--transition);
}

.secondary-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 10px 22px rgba(242, 120, 57, 0.18);
}

.primary-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f3516a, #ff7a45);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(243, 81, 106, 0.25);
  transition: var(--transition);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(202, 32, 253, 0.3);
}

.primary-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .page-main {
    padding-top: 24px;
  }

  .oec-form-shell {
    padding: 24px;
  }
}

/* Animated Success Checkmark */
.animated-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  display: block;
}
.animated-check .check-circle {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: spin-draw 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.animated-check .check-line {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: check-draw 0.4s 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes spin-draw {
  0% { stroke-dashoffset: 160; transform: rotate(0deg); transform-origin: center; }
  50% { stroke-dashoffset: 80; transform: rotate(270deg); transform-origin: center; }
  100% { stroke-dashoffset: 0; transform: rotate(360deg); transform-origin: center; }
}
@keyframes check-draw {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}
