/* BSP Referral Form - Shared Styles */
/* Brand Colors: Dark Navy #1B2E4A, Teal #3D8B8B, Dark Azul Teal #25606B, White, Light Gray */

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

:root {
  --bsp-navy: #1B2E4A;
  --bsp-teal: #3D8B8B;
  --bsp-teal-dark: #25606B;
  --bsp-white: #FFFFFF;
  --bsp-gray-light: #F4F6F8;
  --bsp-gray-mid: #E2E8EF;
  --bsp-gray-text: #6B7A8D;
  --bsp-navy-light: #243B55;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(27, 46, 74, 0.15);
  --shadow-lg: 0 8px 40px rgba(27, 46, 74, 0.22);
  --transition: 0.2s ease;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bsp-gray-light);
  color: var(--bsp-navy);
  line-height: 1.6;
}

/* ===== FORM CARD ===== */
.bsp-referral-form {
  background: var(--bsp-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  font-family: var(--font-sans);
}

.bsp-referral-form .form-header {
  background: var(--bsp-navy);
  padding: 28px 32px 24px;
  text-align: center;
  border-bottom: 3px solid var(--bsp-teal);
}

.bsp-referral-form .form-header img.bsp-logo {
  height: 72px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: brightness(0) invert(1);
}

.bsp-referral-form .form-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--bsp-white);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.bsp-referral-form .form-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.bsp-referral-form .form-body {
  padding: 28px 32px 32px;
}

.bsp-referral-form .form-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bsp-teal-dark);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bsp-gray-mid);
}

.bsp-referral-form .form-group {
  margin-bottom: 16px;
}

.bsp-referral-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bsp-navy);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.bsp-referral-form input,
.bsp-referral-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--bsp-gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--bsp-navy);
  background: var(--bsp-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.bsp-referral-form input:focus,
.bsp-referral-form textarea:focus {
  border-color: var(--bsp-teal);
  box-shadow: 0 0 0 3px rgba(61, 139, 139, 0.12);
}

.bsp-referral-form input::placeholder,
.bsp-referral-form textarea::placeholder {
  color: #B0BAC6;
}

.bsp-referral-form textarea {
  resize: vertical;
  min-height: 90px;
}

.bsp-referral-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bsp-referral-form .form-divider {
  height: 1px;
  background: var(--bsp-gray-mid);
  margin: 20px 0;
}

.bsp-referral-form .btn-submit {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: var(--bsp-teal);
  color: var(--bsp-white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 8px;
}

.bsp-referral-form .btn-submit:hover {
  background: var(--bsp-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 96, 107, 0.3);
}

.bsp-referral-form .btn-submit:active {
  transform: translateY(0);
}

.bsp-referral-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success / Error States */
.bsp-referral-form .form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.bsp-referral-form .form-message.success {
  background: #EAF5F2;
  border: 1.5px solid #2B9D7A;
  color: #1A6651;
}

.bsp-referral-form .form-message.error {
  background: #FEF0F0;
  border: 1.5px solid #D9534F;
  color: #9B2929;
}

.bsp-referral-form .form-success-panel {
  display: none;
  text-align: center;
  padding: 40px 32px;
}

.bsp-referral-form .form-success-panel .success-icon {
  width: 56px;
  height: 56px;
  background: #EAF5F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.bsp-referral-form .form-success-panel .success-icon svg {
  width: 28px;
  height: 28px;
  color: #2B9D7A;
}

.bsp-referral-form .form-success-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--bsp-navy);
  margin-bottom: 10px;
  font-weight: 400;
}

.bsp-referral-form .form-success-panel p {
  font-size: 0.9rem;
  color: var(--bsp-gray-text);
  line-height: 1.6;
}

/* Spinner */
.bsp-referral-form .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* ===== LANDING PAGE SPECIFIC ===== */
.lp-body {
  background: var(--bsp-navy);
  min-height: 100vh;
}

.lp-hero {
  background: linear-gradient(135deg, var(--bsp-navy) 0%, var(--bsp-navy-light) 100%);
  padding: 48px 24px 0;
  text-align: center;
  border-bottom: 3px solid var(--bsp-teal);
}

.lp-hero .hero-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
  filter: brightness(0) invert(1);
}

.lp-hero h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--bsp-white);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.lp-hero h1 span {
  color: var(--bsp-teal);
}

.lp-hero p.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.lp-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.lp-info {
  color: var(--bsp-white);
}

.lp-info h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bsp-white);
  margin-bottom: 16px;
  line-height: 1.35;
}

.lp-info p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 16px;
}

.lp-info .value-list {
  list-style: none;
  margin: 24px 0;
}

.lp-info .value-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

.lp-info .value-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--bsp-teal);
  border-radius: 50%;
  margin-top: 2px;
  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='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.lp-info .divider-line {
  width: 48px;
  height: 2px;
  background: var(--bsp-teal);
  margin: 24px 0;
}

.lp-info blockquote {
  border-left: 3px solid var(--bsp-teal);
  padding-left: 16px;
  margin: 0;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.65;
}

.lp-form-col .bsp-referral-form {
  position: sticky;
  top: 32px;
  max-width: 100%;
}

/* Footer */
.lp-footer {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.lp-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.lp-footer a:hover {
  color: var(--bsp-teal);
}

/* ===== EMBEDDED FORM (Widget) ===== */
.bsp-referral-widget {
  font-family: var(--font-sans);
  max-width: 520px;
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 840px) {
  .lp-content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 60px;
  }

  .lp-form-col .bsp-referral-form {
    position: static;
  }

  .lp-hero h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 540px) {
  .bsp-referral-form .form-row {
    grid-template-columns: 1fr;
  }

  .bsp-referral-form .form-header {
    padding: 22px 20px 18px;
  }

  .bsp-referral-form .form-body {
    padding: 20px 20px 24px;
  }

  .lp-hero {
    padding: 36px 16px 0;
  }
}
