/* ==============================
   RESET / BASE
   ============================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: #000;
}

/* ==============================
   CTA BUTTONS (Hero)
   ============================== */

.btn-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  padding: 1.125rem 2.25rem;
  min-width: 240px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  background: transparent;
  border: 1px solid #ED6025;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta:hover {
  background: rgba(237, 96, 37, 0.12);
  border-color: #ED6025;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(237, 96, 37, 0.15);
}

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

/* ==============================
   FORM INPUTS (Modal)
   ============================== */

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(237, 96, 37, 0.5);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
  border-color: #ED6025;
  box-shadow: 0 0 0 3px rgba(237, 96, 37, 0.15);
}

.form-input.error {
  border-color: #FF6B6B;
  background: rgba(255, 0, 0, 0.04);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-input.valid {
  border-color: #4ADE80;
}

.form-input.valid:focus {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* Select arrow custom */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-input option {
  background: #1a1a1a;
  color: #fff;
}

/* ==============================
   PAGE-LOAD ANIMATIONS
   ============================== */

.animate-fade-in-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.7s ease-out 0.2s forwards;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.9s forwards;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==============================
   MODAL ANIMATIONS (JS-driven)
   ============================== */

body.modal-open #modal-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open #modal-content {
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   SUCCESS CHECK ANIMATION
   ============================== */

.check-circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawCircle 0.6s ease-out forwards;
}

.check-mark {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s 0.6s ease-out forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

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

@media (max-width: 640px) {
  .btn-cta {
    width: 100%;
    min-width: 0;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .form-input {
    font-size: 0.875rem;
    padding: 0.75rem 0.875rem;
  }
}

@media (max-width: 380px) {
  #modal-content {
    padding: 1.5rem;
    border-radius: 12px;
  }
}
