:root {
  --primary: #e63946; /* vibrant red */
  --primary-hover: #d62828;
  --secondary: #2a9d8f; /* leaf green */
  --bg-color: #f4f1de; /* warm paper white */
  --text-dark: #1d3557;
  --text-light: #f1faee;
  --font-main: 'Nunito', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background texture/pattern simulation */
.page-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(42, 157, 143, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(244, 162, 97, 0.08) 0%, transparent 50%);
  z-index: -1;
}

.main-container {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-layout {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(29, 53, 87, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .card-layout {
    flex-direction: row;
    min-height: 600px;
  }
}

.card-image {
  background-image: url('https://offertabs.s3.amazonaws.com/offer/qm2t64/site/media/6ad16a4e25ecc5.21218852.jpg');
  background-size: cover;
  background-position: center;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .card-image {
    flex: 1.2;
    min-height: auto;
  }
}

.image-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  width: 100%;
  padding: 40px 30px 30px;
  color: white;
}

.image-overlay h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.image-overlay p {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.95;
}

.card-content {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .card-content {
    flex: 1;
    padding: 60px 50px;
    max-width: 480px;
  }
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-instructions {
  color: #6c757d;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

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

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

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8fafc;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  margin-top: 10px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

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

.btn-secondary {
  padding: 14px 20px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #21867a;
}

.error-message {
  background: #fff0f0;
  color: #d62828;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #d62828;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.success-view {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.share-panel {
  margin-top: 40px;
  background: #f8fafc;
  padding: 24px;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
}

.share-panel h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.share-panel p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 16px;
}

.share-input-group {
  display: flex;
  gap: 8px;
}

.share-input-group input {
  flex: 1;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: #475569;
  font-family: monospace;
}

.status-message {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin: 40px auto;
  max-width: 600px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Utilities */
.hidden {
  display: none !important;
}

#wbx-powered-by-slot {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
}
