@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #ffc627;       /* Bright Yellow */
  --primary-hover: #e5b223;
  --secondary: #000000;     /* Black */
  --bg: #f8fafc;            /* Light slate */
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #cbd5e1;
  --error: #ef4444;
  --success: #10b981;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* LAYOUT */
#hero-panel {
  flex: 1;
  position: relative;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/d32skh/site/media/69cbe3f2e9a026.77096136.jpg');
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 60px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 600px;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
  align-self: flex-start;
  z-index: 10;
}

.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  align-self: flex-start;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.0rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

#content-panel {
  width: 100%;
  max-width: 750px;
  background: var(--surface);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 60px;
  position: relative;
  z-index: 20;
  overflow-y: auto;
  max-height: 100vh;
}

/* TYPOGRAPHY & UTILS */
.section-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.text-sm { font-size: 0.875rem; }
.font-normal { font-weight: 400; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-auto { margin-left: auto; }
.text-center { text-align: center; }

/* ERROR MESSAGE */
#error-message {
  background: #fef2f2;
  border-left: 4px solid var(--error);
  color: #b91c1c;
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
  font-weight: 500;
}

/* PROGRESS BAR */
.progress-bar-container {
  margin-bottom: 40px;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
}

/* STEPS */
.step-section {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.step-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.3;
}

/* OPTIONS GRID */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.05rem;
  font-weight: 500;
}

.option-label:hover {
  border-color: var(--secondary);
  background: #f8fafc;
}

.option-label.selected {
  border-color: var(--secondary);
  background: #f8fafc;
  color: var(--secondary);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
  margin-right: 16px;
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.option-label input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.option-label.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: var(--bg);
}

/* INPUTS & SELECTS */
.text-input {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s;
  color: var(--text-main);
}

.text-input:focus {
  outline: none;
  border-color: var(--secondary);
}

.label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.rank-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%;
  padding: 16px;
  padding-right: 48px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 16px center;
  transition: border-color 0.2s;
  font-weight: 500;
}

.rank-select:focus {
  outline: none;
  border-color: var(--secondary);
}

/* BUTTONS */
.form-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px; /* Default button radius */
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}

.btn-primary, .btn-secondary {
  background: #03a9f4;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled), .btn-secondary:hover:not(:disabled) {
  background: #0288d1;
  transform: none;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* SUCCESS ICON */
.success-icon {
  color: var(--success);
  margin: 0 auto;
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SCROLL TO TOP BUTTON */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--text-main);
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }
  
  #hero-panel {
    min-height: 250px;
    flex: none;
  }
  
  .hero-content {
    padding: 40px 30px;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  #content-panel {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    margin-top: -30px;
    padding: 40px 24px;
    max-height: none;
    overflow-y: visible;
  }
  
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 40px 20px;
  }

  .hero-logo {
    max-width: 150px;
    margin-bottom: 20px;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  #content-panel {
    padding: 30px 16px;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .step-question {
    font-size: 1.25rem;
  }
  
  .option-label {
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  .option-label input[type="radio"],
  .option-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
  }
  
  .text-input, .rank-select {
    padding: 14px;
    font-size: 0.95rem;
  }
  
	.name-row{
		display:flex;
		gap: 12px;
	}
	
	.name-row .text-input{
		flex:1;
	}
	
	@media (max-width: 600px) {
  .name-row {
    flex-direction: column;
  }
}
	
  .rank-select {
    padding-right: 40px;
  }
  
  .form-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }
	
	.opt-in-group{
		margin-top:24px;
	}
  
  .btn {
    width: 100%;
    margin-left: 0 !important;
    padding: 16px;
  }
  
  .progress-bar-container {
    margin-bottom: 24px;
  }
}