/* ── Reset & Base ── */
*, ::before, ::after { box-sizing: border-box; }

:root {
  --primary:       #D4AF37;
  --primary-hover: #B5952F;
  --bg-light:      #F8F9FA;
  --card-light:    #FFFFFF;
  --text-800:      #1f2937;
  --text-700:      #374151;
  --text-500:      #6b7280;
  --text-400:      #9ca3af;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
}

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-800);
  min-height: 100vh;
  height: auto !important;
  display: block !important;
  transition: background-color 0.3s;
}

/* Override login layout defaults that force fixed-height wrapper */
#wrapper {
  height: auto !important;
  min-height: 0 !important;
}

/* ════════════════════════
   MAIN
════════════════════════ */
.su-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}

/* ════════════════════════
   CARD — max-w-5xl, rounded-xl, shadow-lg
════════════════════════ */
.su-card {
  background: var(--card-light);
  width: 100%;
  max-width: 64rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}
@media (min-width: 768px) {
  .su-card { flex-direction: row; }
}

/* ── Left image panel ── */
.su-img-panel {
  width: 100%;
  position: relative;
  background-color: #d1d5db; /* bg-gray-200 */
  min-height: 260px;
}
@media (min-width: 768px) {
  .su-img-panel { width: 50%; min-height: unset; }
}
.su-img-panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* vibrant-ocean-filter from reference */
  filter: brightness(1.15) contrast(1.1) saturate(1.3);
}
.su-img-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.10);
}
.su-img-text {
  position: absolute;
  bottom: 2rem; left: 2rem;
  color: #fff;
  z-index: 10;
  padding-right: 2rem;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}
.su-img-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.su-img-desc {
  font-size: 0.875rem;
  opacity: 0.95;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.5;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
}

/* ── Right form panel ── */
.su-form-panel {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .su-form-panel { width: 50%; padding: 3rem; }
}
@media (min-width: 1024px) {
  .su-form-panel { padding: 4rem; }
}

/* Heading */
.su-heading-wrap {
  margin-bottom: 2rem;
  width: 100%;
  text-align: center;
}
.su-heading-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-800);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  /* title-lock: 32px mobile, 36px desktop */
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.25;
}
@media (min-width: 768px) {
  .su-heading-wrap h2 { font-size: 36px; }
}
.su-heading-wrap p {
  color: var(--text-500);
  font-size: 0.875rem;
}

/* Alert */
.su-alert {
  border-radius: 0.5rem;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: #b53a3a;
  background: #ffeaea;
  border: 1px solid #f5c2c2;
}

/* ── Buttons (space-y-4) ── */
.su-btn-list { display: flex; flex-direction: column; gap: 1rem; }

/* .btn-hover-gold from reference */
.su-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* space-x-3 */
  background: var(--card-light);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.75rem 1rem; /* py-3 px-4 */
  color: var(--text-700);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s ease;
  line-height: 1.5;
}
.su-btn:hover {
  border-color: var(--primary);
  color: var(--text-800);
  text-decoration: none;
}
/* disabled state */
.su-btn.disabled-link {
  pointer-events: none;
  opacity: 0.6;
  color: var(--text-400);
}
.su-btn img {
  width: 1.25rem; height: 1.25rem;
  object-fit: contain; flex-shrink: 0;
  opacity: 1;
}
.su-btn .fa-apple {
  font-size: 1.125rem;
  color: var(--text-700);
  opacity: 1;
}
.su-btn .fa-envelope {
  font-size: 1.125rem;
  color: var(--text-700);
}
.su-btn span { color: var(--text-700); } /* btn-text-style */

.su-btn.disabled-link img,
.su-btn.disabled-link .fa-apple,
.su-btn.disabled-link .fa-envelope {
  opacity: 0.6;
  color: var(--text-400);
}

.su-btn.disabled-link span {
  color: var(--text-400);
}

/* ── Divider "Eligibility" ── */
.su-eligibility-divider {
  position: relative;
  margin: 2rem 0;
}
.su-eligibility-divider .line {
  position: absolute; inset: 0;
  display: flex; align-items: center;
}
.su-eligibility-divider .line div {
  width: 100%;
  border-top: 1px solid var(--gray-200);
}
.su-eligibility-divider .label {
  position: relative;
  display: flex; justify-content: center;
  font-size: 0.875rem;
}
.su-eligibility-divider .label span {
  padding: 0 0.5rem;
  background: var(--card-light);
  color: var(--text-500);
}

/* ── Checkbox rows (space-y-4) ── */
.su-checks { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.su-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.su-check-row label {
  color: var(--text-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.su-check-row label a {
  color: var(--text-700);
  text-decoration: none;
}
.su-check-row label a:hover { text-decoration: underline; color: var(--primary); }

.su-check-right {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
  flex-shrink: 0;
}
.su-check-right span {
  font-size: 0.875rem;
  color: var(--text-500);
}

/* Custom gold checkbox */
.su-checkbox {
  width: 1.25rem; height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-300);
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  transition: background-color 0.15s, border-color 0.15s;
}
.su-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.su-checkbox:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--primary);
}

/* ── Cancel ── */
.su-cancel {
  text-align: center;
  margin-top: auto;
}
.su-cancel a {
  display: inline-block;
  color: var(--text-400);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.su-cancel a:hover {
  color: var(--text-700);
  border-bottom-color: var(--text-400);
  text-decoration: none;
}
