/* ==========================================================================
   PU PRIME OPT-IN FORM - CLEAN & MINIMALIST
   ========================================================================== */

:root {
  --pu-blue-primary: #006BFF;
  --pu-blue-hover: #0056D2;
  --pu-blue-dark: #0044A8;
  --pu-blue-light: #EBF3FF;
  --pu-blue-glow: rgba(0, 107, 255, 0.4);

  --pu-dark-bg: #0A0E17;
  --pu-dark-card: #0F1624;
  --pu-dark-border: rgba(255, 255, 255, 0.08);

  --pu-white: #FFFFFF;
  --pu-gray-50: #F8FAFC;
  --pu-gray-100: #F1F5F9;
  --pu-gray-200: #E2E8F0;
  --pu-gray-300: #CBD5E1;
  --pu-gray-400: #94A3B8;
  --pu-gray-500: #64748B;
  --pu-gray-700: #334155;
  --pu-gray-900: #0F172A;

  --pu-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pu-radius: 10px;
  --pu-shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --pu-shadow-btn: 0 4px 16px rgba(0, 107, 255, 0.4);
  --pu-shadow-btn-hover: 0 6px 24px rgba(0, 107, 255, 0.6);

  --pu-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: var(--pu-font);
  background-color: var(--pu-dark-bg);
  color: var(--pu-white);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* AMBIENT GLOWS */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.glow-top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 107, 255, 0.4), transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-bottom {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  bottom: -100px;
  right: 10%;
}

/* HEADER: ONLY LOGO CENTERED */
.simple-header {
  position: relative;
  z-index: 10;
  padding: 32px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper {
  display: inline-block;
}

.pu-logo-svg {
  height: 42px;
  width: auto;
  display: block;
}

/* PAGE CONTAINER */
.page-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 48px;
}

/* OPTIN CARD */
.optin-card {
  background: var(--pu-white);
  color: var(--pu-gray-900);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 470px;
  box-shadow: var(--pu-shadow-card);
  position: relative;
  transition: var(--pu-transition);
}

/* HEADLINE */
.card-intro {
  text-align: center;
  margin-bottom: 28px;
}

.headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.4px;
  color: var(--pu-gray-900);
}

.headline .highlight {
  color: var(--pu-blue-primary);
  position: relative;
  display: inline;
}

/* FORM STYLING */
.optin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pu-gray-700);
  letter-spacing: 0.1px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 12px 16px 12px 44px;
  font-size: 15.5px;
  font-family: var(--pu-font);
  color: var(--pu-gray-900);
  background-color: var(--pu-gray-50);
  border: 1.5px solid var(--pu-gray-200);
  border-radius: var(--pu-radius);
  outline: none;
  transition: var(--pu-transition);
}

.form-input::placeholder {
  color: var(--pu-gray-400);
  font-size: 14.5px;
}

.form-input:hover {
  border-color: var(--pu-gray-300);
}

.form-input:focus {
  background-color: var(--pu-white);
  border-color: var(--pu-blue-primary);
  box-shadow: 0 0 0 3.5px rgba(0, 107, 255, 0.15);
}

/* PHONE ROW */
.phone-input-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 10px;
}

.country-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.country-select {
  width: 100%;
  height: 52px;
  padding: 10px 24px 10px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--pu-font);
  color: var(--pu-gray-900);
  background-color: var(--pu-gray-50);
  border: 1.5px solid var(--pu-gray-200);
  border-radius: var(--pu-radius);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--pu-transition);
}

.country-select:focus {
  background-color: var(--pu-white);
  border-color: var(--pu-blue-primary);
  box-shadow: 0 0 0 3.5px rgba(0, 107, 255, 0.15);
}

.select-chevron {
  position: absolute;
  right: 10px;
  font-size: 12px;
  color: var(--pu-gray-500);
  pointer-events: none;
}

.phone-wrapper .form-input {
  padding-left: 14px;
}

/* ERROR STATE */
.form-group.has-error .form-input,
.form-group.has-error .country-select {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.form-group.has-error .form-input:focus {
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.15);
}

.error-msg {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
  margin-top: 2px;
}

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

/* SUBMIT BUTTON */
.pu-submit-btn {
  width: 100%;
  height: 54px;
  background: var(--pu-blue-primary);
  color: var(--pu-white);
  border: none;
  border-radius: var(--pu-radius);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: var(--pu-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--pu-shadow-btn);
  transition: var(--pu-transition);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.pu-submit-btn:hover {
  background: var(--pu-blue-hover);
  box-shadow: var(--pu-shadow-btn-hover);
  transform: translateY(-1px);
}

.pu-submit-btn:active {
  background: var(--pu-blue-dark);
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.2s ease;
  font-size: 17px;
}

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

/* LOADING SPINNER */
.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.pu-submit-btn.is-loading .btn-text,
.pu-submit-btn.is-loading .btn-arrow {
  display: none;
}

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

.pu-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

/* MINIMAL FOOTER */
.minimal-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px 20px 32px;
  color: var(--pu-gray-500);
  font-size: 12px;
  line-height: 1.5;
}

.risk-text {
  max-width: 500px;
  margin: 0 auto 6px;
  color: var(--pu-gray-500);
}

.copyright-text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

/* RESPONSIVE */
@media (max-width: 520px) {
  .simple-header {
    padding: 24px 16px 12px;
  }

  .pu-logo-svg {
    height: 36px;
  }

  .optin-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .headline {
    font-size: 19px;
  }

  .phone-input-row {
    grid-template-columns: 105px 1fr;
    gap: 8px;
  }

  .country-select {
    padding-left: 8px;
    padding-right: 18px;
    font-size: 12.5px;
  }

  .form-input {
    font-size: 15px;
  }

  .pu-submit-btn {
    height: 50px;
    font-size: 15px;
  }
}
