:root {
  --bg-color: #f8f7f4;
  --text-color: #111111;
  --text-muted: #666666;
  --border-color: #d1d0cb;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { 
  display: none !important; 
}

.page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image-wrapper {
  width: 100%;
  margin-bottom: 48px;
}

.hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.headline {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Form Styles */
.inline-form {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.input-group {
  flex: 1;
}

.inline-form input {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-right: none;
  background: transparent;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.inline-form input:focus {
  border-color: var(--text-color);
}

.inline-form input::placeholder {
  color: #999;
}

.submit-btn {
  padding: 16px 32px;
  background: var(--text-color);
  color: var(--bg-color);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--text-color);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.submit-btn:hover {
  background: #333;
  border-color: #333;
}

.submit-btn:disabled {
  background: #999;
  border-color: #999;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .inline-form {
    flex-direction: column;
    gap: 12px;
  }
  .inline-form input {
    border-right: 1px solid var(--border-color);
  }
}

.error-msg {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.status-message, .success-message {
  padding: 16px 0;
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.success-message h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.success-message p {
  color: var(--text-muted);
  font-size: 1rem;
}

.share-panel {
  margin-top: 32px;
  padding: 24px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.share-panel p {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-color);
  font-weight: 500;
}

.share-row {
  display: flex;
}

.share-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-right: none;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
}

.share-row button {
  padding: 12px 24px;
  background: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.share-row button:hover {
  background: #333;
}

/* Footer & Divider */
.divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 48px 0 24px;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.text-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  color: var(--text-color);
}

#wbx-powered-by-slot {
  margin-top: 40px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-color);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 8px;
}

.modal-close:hover {
  color: var(--text-color);
}

.modal-content h2 {
  padding: 24px 32px 16px;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
