/* CSS Reset & Variables */
:root {
  --primary: #FF8BA7; /* Warm bright coral pink */
  --primary-hover: #ff7294;
  --secondary: #00B4D8; /* Fresh water blue */
  --dark: #03045E;
  --text: #333333;
  --bg-color: #F8F9FA;
  --card-bg: #FFFFFF;
  --error: #E63946;
  --success: #2A9D8F;
  --border: #E5E7EB;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(135deg, #CAF0F8 0%, #FFD6E0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

/* Layout */
.main-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Countdown Banner */
.countdown-banner {
  background: var(--dark);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.countdown-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

.countdown-timer {
  display: flex;
  gap: 12px;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 8px;
  min-width: 65px;
  border: 1px solid rgba(255,255,255,0.05);
}

.time-box span {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  font-family: monospace;
}

.time-box small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.8;
}


.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}

/* Left Column: Content */
.content-panel {
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.hero-image {
  height: 350px;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/h62a2s/site/media/6a95e3a84389e6.87831222.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

.text-content {
  padding: 30px 40px 40px;
  flex: 1;
}

.tag {
  display: inline-block;
  background: rgba(255, 139, 167, 0.15);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.text-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

/* Prizes */
.prizes-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.prize-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.prize-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prize-image {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--border);
}

.prize-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prize-details h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 4px;
}

.prize-details p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

/* Right Column: Form */
.interaction-panel {
  padding: 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-header {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.step-header h3 {
  font-size: 1.3rem;
  color: var(--dark);
}

.form-row {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: #f9fafb;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

/* Custom Radio Buttons for Quiz */
.question-group {
  margin-bottom: 28px;
}

.question-group > label {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.radio-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.radio-label input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.radio-label:has(input:checked) {
  border-color: var(--secondary);
  background: rgba(0, 180, 216, 0.05);
}
.radio-label:has(input:checked) .radio-text {
  font-weight: 600;
  color: var(--dark);
}

.radio-text {
  font-size: 0.95rem;
}

/* Custom Radio Label with Text Input */
.custom-radio-label {
  flex-direction: column;
  align-items: stretch;
}

.custom-radio-label .radio-top {
  display: flex;
  align-items: center;
}

.custom-radio-label .custom-text-input {
  margin-top: 10px;
  margin-left: 30px;
  width: calc(100% - 30px);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: all 0.2s;
}

.custom-radio-label .custom-text-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

/* Checkbox specific styling */
.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.checkbox-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.checkbox-label:has(input:checked) {
  border-color: var(--secondary);
  background: rgba(0, 180, 216, 0.05);
}

.checkbox-label:has(input:checked) .checkbox-text {
  font-weight: 600;
  color: var(--dark);
}

.checkbox-text {
  font-size: 0.95rem;
}

.step-desc {
  margin-bottom: 16px;
  color: #555;
  font-size: 0.95rem;
}

.confirm-text {
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

/* Disclaimer Text */
.disclaimer-group {
  margin-top: 32px;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.disclaimer-text p {
  margin-bottom: 10px;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

.disclaimer-text a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
}

.disclaimer-text a:hover {
  color: var(--dark);
}

.disclaimer-checkbox {
  margin-bottom: 12px;
  background: #f8fafc;
}

.disclaimer-checkbox .checkbox-text {
  font-size: 0.85rem;
}


/* Button */
.cta-button {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  box-shadow: 0 4px 14px rgba(255, 139, 167, 0.4);
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 139, 167, 0.5);
}

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

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

/* Reset Button */
.reset-btn {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
  box-shadow: none;
  margin-top: 20px;
}

.reset-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: none;
  transform: translateY(-2px);
}

/* Error Message */
.error-message {
  background: #FEF2F2;
  color: var(--error);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #FECACA;
}

/* Thank You Screen */
.result-card {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

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

.success-prizes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.success-prize-img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
}

.result-card h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.result-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 32px;
}

.post-entry-step {
  text-align: left;
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.post-entry-step h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.post-entry-step p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.social-btn:hover { opacity: 0.9; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tiktok { background: #000000; }
.facebook { background: #1877F2; }

.bonus-highlight {
  background: rgba(0, 180, 216, 0.1);
  color: var(--dark);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.share-input-group {
  display: flex;
  gap: 10px;
}

.share-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: monospace;
  font-size: 0.9rem;
  color: #555;
}

.copy-btn {
  padding: 0 20px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #020a2e;
}

.copy-feedback {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Status Message (Ended/Coming Soon) */
.status-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.status-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.status-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.status-card p {
  font-size: 1.1rem;
  color: #555;
}

/* Footer Wrapper for Powered By */
.footer-wrapper {
  padding: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 860px) {
  .layout-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-image {
    height: 250px;
  }
  
  .content-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .text-content {
    padding: 24px;
  }
  
  .text-content h1 {
    font-size: 2rem;
  }
  
  .interaction-panel {
    padding: 24px;
  }
  
  .share-input-group {
    flex-direction: column;
  }
  
  .copy-btn {
    padding: 12px;
  }
  
  .countdown-banner {
    flex-direction: column;
    gap: 12px;
  }
}
