/**
 * RørosHetta – Brochure form styles (Bootstrap 5.3 modal)
 */

/* ── Trigger button on cart page ── */
.rh-brochure-trigger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 9px 22px;
  border-radius: 0;
  transition: all 0.25s;
  border: 1px solid var(--soft-black);
  font-family: var(--var-font);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  background: transparent;
  color: var(--soft-black);
  cursor: pointer;
  text-decoration: none;
}

.rh-brochure-trigger:hover {
  background: var(--soft-black);
  color: var(--soft-white);
}

/* ── Modal chrome ── */
.rh-brochure-modal {
  border-radius: 1rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.rh-brochure-modal .modal-header {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 1.5rem;
}

.rh-brochure-modal .modal-header .modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.rh-brochure-modal .modal-header .btn-close {
  opacity: 0.5;
  transition: opacity 0.15s;
}

.rh-brochure-modal .modal-header .btn-close:hover {
  opacity: 1;
}

.rh-brochure-modal .modal-body {
  padding: 1.5rem;
}

.rh-brochure-modal .modal-footer {
  border-top: 1px solid #eee;
  padding: 1rem 1.5rem;
  justify-content: flex-end;
}

/* ── Form wrapper inside modal ── */
.rh-brochure-wrapper {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.rh-brochure-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rh-brochure-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.35rem;
}

.rh-brochure-fields .form-control {
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.rh-brochure-fields .form-control:focus {
  border-color: var(--warm-red);
  box-shadow: 0 0 0 0.2rem rgba(75, 37, 45, 0.15);
}

.rh-brochure-fields small {
  font-size: 0.75rem;
}

/* ── Generate button inside modal footer ── */
.rh-brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--warm-red);
  border-radius: 0;
  background: var(--warm-red);
  cursor: pointer;
  transition: all 0.25s;
  color: var(--soft-white);
}

.rh-brochure-btn:hover {
  background: transparent;
  border-color: var(--warm-red);
  color: var(--warm-red);
}

.rh-brochure-btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.rh-brochure-btn .spinner-border {
  width: 1em;
  height: 1em;
  border-width: 0.15em;
}
