:root {
  --primary-color: #f76300; /* B&Q Orange */
  --primary-hover: #d95700;
  --secondary-color: #0d4632; /* Festive Green */
  --accent-color: #d4af37; /* Gold */
  
  --bg-color: #0d4632;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  
  --error-color: #ef4444;
  --success-color: #10b981;
  
  /* Fonts */
  --font-heading: Arial, sans-serif;
  --font-body: Arial, sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 8px;
  --shadow-subtle: 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.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image: url('https://offertabs.s3.amazonaws.com/offer/ko6kmf/site/media/6b07f7e733d101.32082693.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Page Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, rgba(13, 70, 50, 0.7), rgba(0, 0, 0, 0.9));
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #fff;
}

.brand-logo {
  display: block;
  margin: 0 auto 24px auto;
  max-width: 150px;
  height: auto;
}

.eyebrow {
  display: block;
  letter-spacing: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.card-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

/* Forms */
.form-header {
  text-align: center;
  padding: 40px 40px 20px;
  border-bottom: 1px solid #eee;
}

.form-header h2 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 12px;
}

.form-header p {
  color: var(--text-light);
}

.form-content {
  padding: 30px 40px 40px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section h3 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 4px;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #f9fafb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(247, 99, 0, 0.15);
  background-color: #fff;
}

.field-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.4;
}

/* Custom Checkbox styles for Step 1 */
.selection-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.selection-box {
  display: block;
  cursor: pointer;
  margin: 0;
}

.selection-box input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.selection-box .box-content {
  display: flex;
  align-items: center;
  padding: 24px;
  border: 2px solid #d1d5db;
  border-radius: var(--radius-md);
  background: #f9fafb;
  transition: all 0.2s ease;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.selection-box:hover .box-content {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.selection-box input[type="radio"]:focus-visible + .box-content {
  box-shadow: 0 0 0 3px rgba(247, 99, 0, 0.3);
}

.selection-box input[type="radio"]:checked + .box-content {
  border-color: var(--primary-color);
  background: rgba(247, 99, 0, 0.05);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.custom-checkbox-large {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s;
}

.selection-box input[type="radio"]:checked + .box-content .custom-checkbox-large {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.selection-box input[type="radio"]:checked + .box-content .custom-checkbox-large::after {
  content: "";
  width: 8px;
  height: 16px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-bottom: 4px;
}


/* Checkboxes standard */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  font-weight: normal;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  flex-shrink: 0;
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  margin-right: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox:after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label input[type="checkbox"]:focus-visible ~ .custom-checkbox {
  box-shadow: 0 0 0 3px rgba(13, 70, 50, 0.2);
}

.terms-section {
  background: #f9fafb;
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.terms-section a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.terms-section a:hover {
  text-decoration: none;
}

/* Word Count */
.word-count {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.word-count.over-limit {
  color: var(--error-color);
}

/* Buttons */
.form-actions {
  margin-top: 40px;
}

.btn-primary {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(247, 99, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(247, 99, 0, 0.3);
}

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

.btn-secondary {
  background-color: #fff;
  color: var(--text-dark);
  border: 1px solid #d1d5db;
  padding: 16px 24px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

/* Loader */
.loader {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success View */
.success-card {
  padding: 60px 40px;
  text-align: center;
}

.success-icon {
  color: var(--success-color);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.success-card h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 16px;
}

.success-card p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

.festive-divider {
  margin-top: 40px;
  color: var(--accent-color);
  font-size: 1.5rem;
  letter-spacing: 10px;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 40px 0;
  font-weight: 500;
}

.alert.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* T&Cs Section */
.tnc-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.tnc-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
}

.tnc-body {
  font-size: 0.875rem;
  color: var(--text-light);
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
}

.tnc-body p {
  margin-bottom: 12px;
}

.tnc-body::-webkit-scrollbar {
  width: 6px;
}
.tnc-body::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
.tnc-body::-webkit-scrollbar-thumb {
  background: #ccc; 
  border-radius: 10px;
}

/* Contact Info */
.contact-info {
  text-align: center;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--accent-color);
}

/* Powered By */
#wbx-powered-by-slot {
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 20px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  .form-header {
    padding: 24px;
  }
  
  .form-content {
    padding: 24px;
  }
  
  .success-card, .tnc-section {
    padding: 30px 24px;
  }
}
