/* 
  Theme Colors:
  Warm Camel: #d6a76a
  Deep Navy: #1e3a5f
  Kraft Paper: #f5deb3
  Soft Cream: #fffaf0
*/
:root {
  --camel: #d6a76a;
  --camel-light: rgba(214, 167, 106, 0.2);
  --navy: #1e3a5f;
  --navy-hover: #152945;
  --kraft: #f5deb3;
  --cream: #fffaf0;
  --white: #ffffff;
  --text-main: #1e3a5f;
  --text-muted: #6b7a90;
  --error: #d9534f;
  
  --font-display: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-color: var(--kraft);
}

.page-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/xes84m/site/media/69f11504160e85.90860005.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.hero-header {
  text-align: center;
  margin-bottom: 40px;
}

.hero-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
  margin-bottom: 24px;
}

.hero-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero-header p {
  font-size: 1.05rem;
  color: var(--text-main);
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(214, 167, 106, 0.4);
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.05);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.08);
}

.question-label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.muted {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stars Rating */
.star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
  padding: 0;
}

.star-btn:hover,
.star-btn:focus {
  transform: scale(1.1);
  outline: none;
}

.star-btn.active,
.star-btn.hover-active {
  color: var(--camel);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(214, 167, 106, 0.2);
  transition: background 0.2s ease, border-color 0.2s;
}

.custom-checkbox:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(214, 167, 106, 0.5);
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: var(--white);
  border: 1px solid var(--camel);
  border-radius: 4px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--navy);
  border-color: var(--navy);
}

.checkmark:after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.label-text {
  font-size: 1rem;
}

/* Form Inputs */
textarea, input[type="text"], input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--navy);
  transition: all 0.3s ease;
}

textarea:focus, input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--camel);
  box-shadow: 0 0 0 3px var(--camel-light);
}

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

.input-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 480px) {
  .input-row {
    flex-direction: row;
  }
  .input-group {
    flex: 1;
  }
}

/* Footer & Submit */
.form-footer {
  text-align: center;
  margin-top: 32px;
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.submit-btn {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
  background: var(--navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 95, 0.2);
}

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

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}

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

.error-msg {
  color: var(--error);
  background: rgba(217, 83, 79, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
}

/* Result View */
.result-card {
  padding: 48px 32px;
}

.success-icon {
  margin-bottom: 24px;
}

.result-card h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.result-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.discount-box {
  background: rgba(214, 167, 106, 0.1);
  border: 2px dashed var(--camel);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.discount-box p {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1rem;
}

.discount-box strong {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: 2px;
}

.small-text {
  font-size: 0.85rem !important;
}

/* Share Panel */
.share-panel {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
}

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

.share-input-group {
  display: flex;
  margin-top: 16px;
}

.share-input-group input {
  flex: 1;
  border-radius: 8px 0 0 8px;
  background: rgba(255,255,255,0.5);
}

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

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

/* Powered By */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}
