@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  color: #212529;
  background: #ffffff;
}

/* Funnel Container */
.funnel-container {
  min-height: 100vh;
  display: block;
  background: url('../images/background.jpg') no-repeat center center / cover;
  background-attachment: fixed;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

/* Header */
.funnel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.funnel-header .hero {
  width: 200px;
  height: auto;
  border-radius: 5px;
  object-fit: fill;
  background: #fff;
  padding: 15px;
  box-sizing: content-box;
}

/* Content */
.funnel-content {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0 50px;
  background: #ffffff;
}

/* Question */
.question {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #212529;
  margin: 20px 0 0;
  padding: 0 48px;
  font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {
  .question { font-size: 20px; padding: 0 16px; }
}

/* Options Grid */
.options-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding: 0 48px;
  margin: 20px 0 0;
}

@media (max-width: 768px) {
  .options-grid { padding: 0 16px; }
}

/* Option Card */
.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 50%;
  box-sizing: border-box;
}

.option-card:hover { opacity: 0.8; }

.option-card img {
  width: 100%;
  max-width: 214px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.option-card p {
  margin: 0;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #212529;
}

@media (max-width: 576px) {
  .option-card img { max-width: 150px; }
  .option-card p { font-size: 12px; }
}

/* Footer */
.funnel-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  margin: 100px 0 30px;
  background: transparent;
}

.funnel-footer .footer-col {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.funnel-footer .footer-logo {
  max-width: 200px;
  height: auto;
}

.funnel-footer .copyright {
  color: #ffffff;
  font-size: 10px;
  text-align: center;
}

.funnel-footer .links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.funnel-footer .links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}

.funnel-footer .links a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .funnel-footer {
    flex-direction: column;
    gap: 1rem;
    padding: 20px 16px;
    margin: 40px 0 20px;
  }
  .funnel-footer .footer-col { width: 100%; }
}

/* PLZ Input */
.plz-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

.plz-input input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  text-align: center;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  outline: none;
}

.plz-input input:focus { border-color: #e94e1b; }

.plz-input button {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: #e94e1b;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.plz-input button:hover { background: #c9451a; }
.plz-input button:disabled { background: #d0d0d0; cursor: not-allowed; }

@media (max-width: 768px) { .plz-input { padding: 0 16px; } }

/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 48px;
}

.loading-container .spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e9ecef;
  border-top-color: #e94e1b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-container p {
  font-size: 1.2rem;
  color: #212529;
  font-weight: 500;
}

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

/* Success Banner */
.success-banner {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 48px;
}

.success-banner .checkmark {
  font-size: 2.5rem;
  color: #198754;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.success-banner h2 {
  font-size: 1.5rem;
  color: #212529;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.success-banner p { color: #6c757d; font-size: 1rem; }

/* Contact Form */
.contact-form {
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form .form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
}

.contact-form input, .contact-form select {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  outline: none;
}

.contact-form input:focus, .contact-form select:focus {
  border-color: #e94e1b;
  box-shadow: 0 0 0 0.2rem rgba(233, 78, 27, 0.15);
}

.contact-form .phone-row { display: flex; gap: 0.5rem; }
.contact-form .phone-row select { width: auto; min-width: 120px; }
.contact-form .phone-row input { flex: 1; }

.contact-form button[type="submit"] {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: #e94e1b;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.contact-form button[type="submit"]:hover { background: #c9451a; }

.contact-form button[type="submit"] .subtext {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.contact-form .disclaimer {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .contact-form { padding: 0 16px; }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
}

.modal-dialog {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.176);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #dee2e6;
}

.modal-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
}

.modal-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  line-height: 1;
}

.modal-header .close-btn:hover { color: #212529; }

.modal-body {
  padding: 16px;
  font-size: 16px;
  color: #212529;
  max-height: 70vh;
  overflow-y: auto;
  line-height: 1.6;
}

.modal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

.modal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #212529;
}

.modal-body p { margin-bottom: 0.75rem; }
.modal-body strong { font-weight: 700; }

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

/* Error text */
.error-text { color: #dc3545; font-size: 0.8rem; }