:root {
  --primary: #C05A35;       /* Earthy Outback Red */
  --primary-hover: #A04A2A;
  --secondary: #3B4B35;     /* Eucalyptus Dark Green */
  --bg-color: #F4EFEB;      /* Sand */
  --card-bg: #FFFFFF;
  --text-main: #2D3748;
  --text-light: #718096;
  --border: #E2E8F0;
  --error: #E53E3E;
  --success: #38A169;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 5rem;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/k2gep2/site/media/6a052b09b3a117.58502899.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.3) 0%, rgba(10,10,10,0.7) 100%);
}

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

.hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-highlight {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #F6AD55; /* Soft Orange */
}

.hero-cta {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main Container & Card */
.main-container {
  max-width: 800px;
  margin: -80px auto 40px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  padding: 3.5rem 4rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .card {
    padding: 2.5rem 1.5rem;
  }
}

.intro-text {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.intro-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.intro-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

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

textarea {
  resize: vertical;
  min-height: 80px;
}

input[type="text"]:focus, 
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #FFF;
  box-shadow: 0 0 0 3px rgba(192, 90, 53, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #A0AEC0;
}

/* File Upload Box */
.file-upload-box {
  border: 2px dashed #CBD5E0;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: #FFFaf8;
}

.file-upload-box.dragover {
  border-color: var(--primary);
  background: #FFFaf8;
  transform: scale(1.02);
}

.file-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: #A0AEC0;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.file-upload-box:hover .upload-icon {
  color: var(--primary);
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.upload-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
}

.upload-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
}

.upload-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #A0AEC0;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  position: relative;
  z-index: 20;
}

.file-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

#file-name-display {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: #FFF5F5;
}

/* Terms Checkboxes */
.terms-section {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms-group {
  margin: 0;
  padding: 1.25rem;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.terms-group:focus-within {
  border-color: var(--primary);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  margin-right: 14px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.terms-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 400;
}

.terms-text p {
  margin-bottom: 0;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1.125rem;
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(192, 90, 53, 0.2);
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(192, 90, 53, 0.3);
}

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

/* Messages */
.error-message {
  background: #FFF5F5;
  color: var(--error);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid var(--error);
}

.status-message {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Success State */
.success-container {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #F0FDF4;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 10px rgba(56, 161, 105, 0.1);
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-container h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.success-container p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Powered by slot */
#wbx-powered-by-slot {
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  width: 100%;
}