:root {
  --cream: #fdf5e6;
  --burgundy: #7d1128;
  --orange: #d9531e;
  --text-dark: #333333;
  --border-light: #e5d9c5;
  --bg-card: #ffffff;
  
  --font-serif: 'Merriweather', serif;
  --font-sans: 'DM Sans', sans-serif;
}

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

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.status-banner {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  padding: 1rem;
  font-weight: 500;
}

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

.hero-image-slot img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding: 3rem 0 4rem;
}

.text-center {
  text-align: center;
}

.intro-text {
  margin-bottom: 3rem;
}

.headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.subhead {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.details {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.form-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(125, 17, 40, 0.08);
  border: 1px solid var(--border-light);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  transition: all 0.2s ease;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  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 12px center;
  padding-right: 2.5rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--orange);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.15);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  padding-left: 2rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
}

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

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 1.25rem;
  width: 1.25rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.2s;
}

.checkbox-label:hover input ~ .checkmark {
  border-color: var(--orange);
}

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

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

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

.rules-link {
  color: var(--burgundy);
  text-decoration: underline;
}

.rules-link:hover {
  color: var(--orange);
}

.submit-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #bf4516;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 83, 30, 0.3);
}

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

.error-msg {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  color: #d13030;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.site-footer {
  background: #ffffff;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  color: #666;
  font-size: 0.875rem;
}

.site-footer p {
  margin-bottom: 0.75rem;
}

.hidden {
  display: none !important;
}

#wbx-powered-by-slot {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .headline {
    font-size: 2rem;
  }
  
  .form-card {
    padding: 1.5rem;
  }
}


/* Official Rules */
.official-rules {
  padding: 48px 0 56px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4a3f35;
}
.official-rules h2 {
  font-family: var(--font-serif);
  color: var(--burgundy);
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.official-rules p {
  margin: 0 0 12px;
}
.official-rules a {
  color: var(--burgundy);
  word-break: break-all;
}


/* Winner pickup note */
.winner-note {
  margin-top: 16px;
  color: var(--burgundy);
}

.winner-note a {
  color: var(--burgundy);
  text-decoration: underline;
}
