/* ==========================================================================
   MUŠKA SNAGA - KOMPONENTE (COMPONENTS CSS)
   Kolačići, Kalkulator vitalnosti, Lead forma, Paketi, Bedževi
   ========================================================================== */

/* ==========================================================================
   COOKIE CONSENT BANNER (GDPR / ePrivacy direktiva za Hrvatsku)
   ========================================================================== */

.cookie-consent-overlay {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 580px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-border);
  padding: 1.75rem;
  z-index: 99999;
  display: none;
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cookie-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.cookie-header h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.cookie-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}

.btn-cookie-accept:hover {
  background: var(--primary-light);
}

.btn-cookie-decline {
  background: var(--bg-light);
  color: var(--text-main);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.btn-cookie-decline:hover {
  background: #e2e8f0;
}

.btn-cookie-settings {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-left: auto;
}

/* ==========================================================================
   INTERAKTIVNI KALKULATOR ŽIVOTNE VITALNOSTI
   ========================================================================== */

.calculator-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.calc-step {
  margin-bottom: 2rem;
}

.calc-question {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calc-q-num {
  background: var(--accent);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.calc-option-label {
  display: block;
  cursor: pointer;
  position: relative;
}

.calc-option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.calc-option-box {
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calc-option-label input[type="radio"]:checked + .calc-option-box {
  border-color: var(--primary-light);
  background: var(--primary-subtle);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.calc-opt-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.calc-opt-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-result-box {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #0b1638 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  text-align: center;
  display: none;
}

.calc-score-display {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

.calc-score-status {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-light);
}

.calc-recommendation {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   STRANICA ZA NARUDŽBU & PAKETI (ORDER PACKAGES & FORM)
   ========================================================================== */

.order-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.package-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.package-card.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
  background: #fffdfa;
}

.package-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.package-title {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.package-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.package-price-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.package-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.2rem;
}

.package-price-current {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.package-savings {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

.package-benefits {
  font-size: 0.85rem;
  color: var(--text-main);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.package-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.package-select-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.package-card.selected .package-select-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   LEAD FORMA (SAMO 2 POLJA: IME I TELEFON)
   ========================================================================== */

.lead-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--primary-border);
  padding: 2.5rem;
  position: relative;
}

.lead-form-badge {
  position: absolute;
  top: -15px;
  right: 2rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.65rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.form-label span.req {
  color: #e11d48;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light);
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.75rem;
  font-family: inherit;
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.invalid-feedback {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.4rem;
  font-weight: 500;
}

.form-control.is-invalid + .invalid-feedback {
  display: block;
}

.form-guarantees {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   STRANICA ZAHVALE (THANK YOU PAGE)
   ========================================================================== */

.thank-you-card {
  max-width: 680px;
  margin: 3rem auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--success);
  padding: 3rem 2.5rem;
  text-align: center;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--success);
}

.thank-you-steps {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-row:last-child {
  margin-bottom: 0;
}

.step-num {
  background: var(--primary);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   KONTAKT FORMA
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: linear-gradient(135deg, #0b1638 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Responzivnost komponenti */
@media (max-width: 768px) {
  .cookie-consent-overlay {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 1.25rem;
  }

  .calc-options-grid {
    grid-template-columns: 1fr;
  }

  .order-packages-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .lead-form-wrapper {
    padding: 1.75rem 1.25rem;
  }
}
