/* Base & Reset */
:root {
  --primary-blue: #0284c7;
  --primary-blue-dark: #0369a1;
  --primary-green: #059669;
  --primary-green-light: #10b981;
  --bg-color: #f0fdf4;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --error: #ef4444;
  --border-radius: 16px;
  --input-radius: 12px;
  --shadow-sm: 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);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Utility Classes */
.hidden {
  display: none !important;
}
.text-center {
  text-align: center;
}

/* Background Hero */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background-image: linear-gradient(to bottom, rgba(2, 132, 199, 0.7), rgba(5, 150, 105, 0.6)), url('https://offertabs.s3.amazonaws.com/offer/uggg38/69c42101c1fef5.06278081.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(240, 253, 244, 0), var(--bg-color));
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-grow: 1;
}

/* Header */
.header-section {
  text-align: center;
  color: var(--white);
  padding: 20px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.header-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.header-section p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.section-title {
  color: var(--primary-blue-dark);
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

/* Custom Select styling */
.select-wrapper {
  position: relative;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  border: none;
  border-radius: var(--input-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

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

.btn-secondary {
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 600;
  color: var(--primary-blue-dark);
  background: #e0f2fe;
  border: none;
  border-radius: var(--input-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #bae6fd;
}

/* Error Messages */
.error-message {
  background-color: #fef2f2;
  color: var(--error);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--error);
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Post-Entry & Success State */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--primary-green);
}

#thank-you-message {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Share Panel */
.share-panel {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 30px;
}

.share-panel h3 {
  color: var(--primary-blue-dark);
  margin-bottom: 10px;
}

.share-panel p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.share-controls input {
  flex-grow: 1;
  margin-bottom: 0;
  background-color: var(--white);
}

/* Powered By */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 640px) {
  .header-section h1 {
    font-size: 2.2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .card {
    padding: 30px 20px;
  }
  
  .share-controls {
    flex-direction: column;
  }
}