:root {
  --primary: #f26d5b;
  --secondary: #0b4f6c;
  --accent: #f9d877;
  --text-light: #fefefe;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #1a1a24;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/g7jjt5/site/media/6ab2b06a8c2d68.91478282.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242, 109, 91, 0.4) 0%, rgba(11, 79, 108, 0.8) 100%);
  z-index: -1;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}

.card {
  background: rgba(25, 35, 45, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3.5rem;
  color: #9ec1d6;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--text-light);
}

.header p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 25px;
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 109, 91, 0.2);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

button[type="submit"] {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: #1a1a24;
  background: linear-gradient(135deg, #fef29a 0%, #f9d877 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(249, 216, 119, 0.4);
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 216, 119, 0.6);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-message {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fca5a5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

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

.text-center h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.text-center p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.share-panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 24px;
  margin-top: 25px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

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

.share-panel p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

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

.share-input-group input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-family: inherit;
}

.share-input-group button {
  padding: 0 20px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
  font-family: inherit;
}

.share-input-group button:hover {
  background: #0d6489;
}

.back-btn {
  margin-top: 30px;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: inline-block;
}

.back-btn:hover {
  background: rgba(249, 216, 119, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 216, 119, 0.2);
}

.status-message {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  width: 100%;
}

.hidden {
  display: none !important;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(26, 26, 36, 0.2);
  border-radius: 50%;
  border-top-color: #1a1a24;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#wbx-powered-by-slot {
  width: 100%;
  text-align: center;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 2.8rem;
  }
  .card {
    padding: 30px 20px;
  }
}