:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --accent-color: #111111;
  --focus-ring: rgba(17, 17, 17, 0.2);
  --error-color: #d32f2f;
  --neon-green: #39ff14;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { 
  display: none !important; 
}

.page-container {
  max-width: 650px;
  margin: 40px auto;
  background: var(--bg-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-image-wrapper {
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.content {
  padding: 40px;
}

.headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
  text-align: center;
  color: #111;
}

.prize-details {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.prize-item {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #111;
}

.prize-count {
  font-weight: 700;
  font-size: 1.125rem;
  color: #111;
}

.rules-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.form-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #111;
}

/* Form Styles */
.form-section {
  background: #ffffff;
}

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

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

.form-row {
  display: flex;
  gap: 16px;
}

.form-row input {
  flex: 1;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  color: var(--text-color);
  outline: none;
  transition: all 0.2s;
}

input[readonly] {
  background-color: #f5f5f5 !important;
  color: var(--text-muted);
  cursor: not-allowed;
}

input[readonly]:focus {
  outline: none;
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

input[type="text"]:focus:not([readonly]),
input[type="email"]:focus,
select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.full-width {
  width: 100%;
}

.select-wrapper {
  position: relative;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Social Follow */
.social-follow-section {
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.social-follow-item {
  margin-bottom: 20px;
}

.social-follow-item p {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111;
}

.btn-instagram, .btn-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-youtube {
  background: #FF0000;
}

.btn-instagram:hover, .btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Checkboxes */
.checkbox-group {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  line-height: 1.4;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.checkbox-label:hover input ~ .checkmark {
  border-color: #999;
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.check-text {
  padding-top: 2px;
  color: var(--text-color);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-color);
  color: #fff;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-msg {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: -8px;
  margin-bottom: 16px;
  font-weight: 500;
  background: #ffebee;
  padding: 12px;
  border-radius: 6px;
}

.status-message {
  padding: 16px;
  margin-bottom: 24px;
  font-size: 1.125rem;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
}

/* Success View */
.thank-you-banner {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 60px 20px;
  text-align: center;
}

.thank-you-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-text {
  font-family: 'Montserrat', sans-serif;
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ty-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  font-style: italic;
  color: var(--neon-green);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

.success-content {
  padding: 40px;
  text-align: center;
}

.share-prompt {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

.share-box {
  display: flex;
  max-width: 400px;
  margin: 0 auto 32px;
}

.share-box input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  background: #f9f9f9;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
  outline: none;
}

.share-box button {
  padding: 14px 24px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.share-box button:hover {
  background: #333;
}

.social-shares {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.fb-btn { background: #1877f2; }
.x-btn { background: #000000; }
.email-btn { background: #ea4335; }


/* Global Footer */
.site-footer {
  padding: 32px 40px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.woobox-inline-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111;
  font-weight: 600;
  margin: 0 4px;
}

.text-link {
  background: none;
  border: none;
  color: var(--accent-color);
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  color: #666;
}

#wbx-powered-by-slot {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-color);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: var(--text-color);
}

.modal-content h2 {
  padding: 24px 32px 16px;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 1em;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .page-container {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  .hero-image {
    height: 240px;
  }
  .content, .success-content, .site-footer {
    padding: 32px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  .ty-headline {
    font-size: 1.75rem;
  }
  .brand-text {
    font-size: 1.25rem;
  }
}
