/* ========================================
   FORM SLIDE (Durr Dental)
   ======================================== */

.slide-content--form {
  background: var(--white);
}

.form-slide {
  width: 100%;
  max-width: 960px;
  padding: 56px 48px 56px;
  margin: 0 auto;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  max-width: 960px;
  width: 100%;
}

.form-header {
  grid-column: 1 / -1;
}

.form-header h1 {
  color: var(--primary-700);
  font-family: var(--font-family);
  font-size: var(--text-6xl);
  font-weight: var(--fw-light);
  line-height: 60px;
  margin: 0 0 12px;
}

.form-intro {
  color: var(--secondary-500);
  font-family: var(--font-family);
  font-size: var(--text-2xl);
  font-weight: var(--fw-book);
  line-height: 26px;
  margin: 0;
}

/* -- Form left (webform) -- */
.form-left {
  min-width: 0;
}

.webform-host {
  width: 100%;
}

/* -- Webform field styling -- */

.form-item-privacy input[type="checkbox"],
.form-type-checkbox input[type="checkbox"] {
  pointer-events: auto;
  position: relative;
  z-index: 5;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-item-privacy label,
.form-type-checkbox label {
  cursor: pointer;
}

.form-left label,
.webform-host label,
#drupal-webform-container label {
  display: block;
  color: var(--secondary-500);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-left input[type="text"],
.form-left input[type="email"],
.form-left input[type="tel"],
.form-left input[type="number"],
.form-left textarea,
.form-left select,
.webform-host input[type="text"],
.webform-host input[type="email"],
.webform-host input[type="tel"],
.webform-host input[type="number"],
.webform-host textarea,
.webform-host select,
#drupal-webform-container input[type="text"],
#drupal-webform-container input[type="email"],
#drupal-webform-container input[type="tel"],
#drupal-webform-container input[type="number"],
#drupal-webform-container textarea,
#drupal-webform-container select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--fw-book);
  color: var(--primary-950);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.form-left input:focus,
.form-left textarea:focus,
.form-left select:focus,
.webform-host input:focus,
.webform-host textarea:focus,
.webform-host select:focus,
#drupal-webform-container input:focus,
#drupal-webform-container textarea:focus,
#drupal-webform-container select:focus {
  border-bottom-color: var(--primary-500);
}

.form-left input::placeholder,
.form-left textarea::placeholder,
.webform-host input::placeholder,
.webform-host textarea::placeholder,
#drupal-webform-container input::placeholder,
#drupal-webform-container textarea::placeholder {
  color: var(--secondary-100);
}

/* -- Checkbox privacy -- */
.form-left .form-type-checkbox,
.webform-host .form-type-checkbox,
#drupal-webform-container .form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
}

.form-left .form-type-checkbox label,
.webform-host .form-type-checkbox label,
#drupal-webform-container .form-type-checkbox label {
  font-size: var(--text-sm);
  font-weight: var(--fw-book);
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary-500);
  line-height: 1.4;
}

/* -- Submit button -- */
.form-left input[type="submit"],
.form-left button[type="submit"],
.webform-host input[type="submit"],
.webform-host button[type="submit"],
#drupal-webform-container input[type="submit"],
#drupal-webform-container button[type="submit"],
.request-form .webform-button--submit,
.request-form .form-submit {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 16px 40px;
  background: var(--primary-500);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 24px;
}

.form-left input[type="submit"]:hover,
.form-left button[type="submit"]:hover,
.webform-host input[type="submit"]:hover,
.webform-host button[type="submit"]:hover,
#drupal-webform-container input[type="submit"]:hover,
#drupal-webform-container button[type="submit"]:hover {
  background: var(--primary-700);
}

/* -- Form right (selected products) -- */
.form-right {
  padding-top: 0;
}

.selected-products-panel h3 {
  color: var(--secondary-500);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.form-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-surface-soft);
  border-radius: 8px;
}

.form-product-item .form-product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--color-border);
  flex-shrink: 0;
}

.form-product-item .form-product-title {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--fw-book);
  color: var(--primary-950);
}

.form-product-item .form-product-category {
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--fw-book);
  color: var(--secondary-100);
}

.panel-description {
  color: var(--secondary-100);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--fw-book);
  line-height: 1.4;
  margin-top: 16px;
}

.no-products-selected {
  color: var(--secondary-100);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--fw-book);
}

/* -- Thank you state (replaces form after submit) -- */
.thank-you-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  padding: 80px 24px;
  background: var(--white);
}

.thank-you-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.thank-you-slide h1 {
  color: var(--primary-700);
  font-family: var(--font-family);
  font-size: var(--text-6xl);
  font-weight: var(--fw-light);
  line-height: 60px;
  margin: 0 0 16px;
}

.thank-you-slide p {
  color: var(--secondary-500);
  font-family: var(--font-family);
  font-size: var(--text-2xl);
  font-weight: var(--fw-book);
  line-height: 26px;
  max-width: 500px;
  margin: 0 0 32px;
}

.btn-back-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--primary-500);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back-catalog:hover {
  background: var(--primary-700);
}

.form-item__label.form-required::after { display: none; }

/* -- Selected products panel styling -- */
.selected-products-panel {
  padding: 0;
}


.form-product-item {
  background: var(--primary-50);
}

.no-products-selected {
  color: var(--secondary-500);
}

.panel-description {
  color: var(--secondary-500);
}

.form-intro {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

input[type="checkbox"] { margin-top: 0.7rem; }


/* ========================================
   RESPONSIVE
   ======================================== */


@media (max-width: 768px) {
  .form-slide {
    padding: 32px 24px 24px;
  }

  .form-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-header h1 {
    font-size: 42px;
    line-height: 46px;
  }

  .form-intro {
    font-size: 20px;
    line-height: 26px;
  }
}

@media (max-width: 480px) {
  .form-slide {
    padding: 24px 20px 20px;
  }

  .form-header h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .form-intro {
    font-size: 18px;
    line-height: 24px;
  }


}