/**
 * Modal 2026 — Design overrides
 * Scoped to .homepage-2026 (or any 2026 template)
 * Reskins the existing .modal-wrapper system to match 2026 aesthetic
 * Font: Montserrat | Accent: #4739C2 | Dark: #0C0B0A
 */

/* ── Overlay: darker, blurred ── */
.homepage-2026 .modal-wrapper .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Container: smooth entrance ── */
.homepage-2026 .modal-wrapper {
  transition: opacity 0.35s ease-out;
}

.homepage-2026 .modal-wrapper.modal-opened {
  width: 100vw;
}

.homepage-2026 .modal-wrapper .modal-container {
  padding: 24px;
}

/* ── Modal card ── */
.homepage-2026 .modal-wrapper .modal,
.homepage-2026 .modal-wrapper .modal * {
  font-family: 'Montserrat', sans-serif;
}

.homepage-2026 .modal-wrapper .modal {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 3rem 2.5rem 2.5rem;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.25, 0, 0, 1);
}

.homepage-2026 .modal-wrapper.modal-opened .modal {
  transform: translateY(0);
}

/* ── Close button ── */
.homepage-2026 .modal-wrapper .modal .modal-close-button {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.homepage-2026 .modal-wrapper .modal .modal-close-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.homepage-2026 .modal-wrapper .modal .modal-close-button svg {
  width: 14px;
  height: 14px;
}

/* ── Title ── */
.homepage-2026 .modal-wrapper .modal h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0C0B0A;
  text-align: left;
  margin: 0 0 1.5rem;
}

/* ── HubSpot form overrides ── */

/* Labels */
.homepage-2026 .modal .hsfc-FieldLabel {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.813rem;
  font-weight: 500;
  color: #0C0B0A;
  margin-bottom: 6px;
}

/* Text inputs */
.homepage-2026 .modal .hsfc-TextInput,
.homepage-2026 .modal .hsfc-TextareaInput {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  background-color: #fafafa;
  border: 1px solid #f4f4f4;
  border-radius: 10px;
  padding: 12px 16px;
  color: #0C0B0A;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.homepage-2026 .modal .hsfc-TextInput:focus,
.homepage-2026 .modal .hsfc-TextareaInput:focus {
  border-color: #4739C2;
  box-shadow: 0 0 0 3px rgba(71, 57, 194, 0.1);
}

.homepage-2026 .modal .hsfc-TextInput::placeholder,
.homepage-2026 .modal .hsfc-TextareaInput::placeholder {
  color: #9C9C9C;
}

/* Dropdown inputs */
.homepage-2026 .modal .hsfc-DropdownInput > input {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  background-color: #fafafa;
  border: 1px solid #f4f4f4;
  border-radius: 10px;
  padding: 12px 16px;
  color: #0C0B0A;
}

/* Phone inputs */
.homepage-2026 .modal .hsfc-PhoneInput__FlagAndCaret {
  background-color: #fafafa;
  border-color: #f4f4f4;
  border-radius: 10px 0 0 10px;
}

/* Row spacing */
.homepage-2026 .modal .hsfc-Row {
  gap: 16px;
  margin-bottom: 16px;
}

/* Submit button */
.homepage-2026 .modal .hsfc-Button {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.813rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: #4739C2 !important;
  background-image: none !important;
  color: #fff !important;
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.homepage-2026 .modal .hsfc-Button:hover {
  background-color: #3a2ea6 !important;
  transform: none;
}

/* Navigation row (contains submit) */
.homepage-2026 .modal .hsfc-NavigationRow {
  margin-top: 8px;
}

/* Error messages */
.homepage-2026 .modal .hsfc-ErrorAlert {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: #e74c3c;
}

/* Required indicator */
.homepage-2026 .modal .hsfc-FieldLabel__RequiredIndicator {
  color: #e74c3c;
}

/* Step container — remove default padding/border */
.homepage-2026 .modal .hsfc-Step {
  border: none;
  background: none;
}

.homepage-2026 .modal .hsfc-Step .hsfc-Step__Content {
  padding: 0;
}

/* Rich text / descriptions */
.homepage-2026 .modal .hsfc-RichText,
.homepage-2026 .modal .hsfc-FieldDescription {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.813rem;
  color: #7B7B7B;
}

/* Checkboxes and radios */
.homepage-2026 .modal .hsfc-CheckboxInput,
.homepage-2026 .modal .hsfc-RadioInput {
  border-color: rgba(0, 0, 0, 0.15);
  background-color: #fafafa;
}

/* ── Thank-you state ── */
.homepage-2026 .modal .modal-form-submitted {
  font-family: 'Montserrat', sans-serif;
  color: #0C0B0A;
  text-align: center;
}

.homepage-2026 .modal .modal-form-submitted h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.homepage-2026 .modal .modal-form-submitted p {
  font-size: 1rem;
  color: #7B7B7B;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.homepage-2026 .modal .modal-form-submitted .btn {
  background-color: #4739C2;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.813rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── Legacy HubSpot v2 form overrides (hs-form class) ── */
.homepage-2026 .modal .hs-form label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.813rem;
  font-weight: 500;
  color: #0C0B0A;
}

.homepage-2026 .modal .hs-form .hs-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  background: #F6F5F4;
  border: 1px solid #f4f4f4;
  border-radius: 10px;
  padding: 12px 16px;
  color: #0C0B0A;
  width: 100% !important;
  box-sizing: border-box;
}

.homepage-2026 .modal .hs-form .hs-input:focus {
  border-color: #4739C2;
  box-shadow: 0 0 0 3px rgba(71, 57, 194, 0.1);
  outline: none;
}

.homepage-2026 .modal .hs-form .hs-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.813rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #4739C2 !important;
  color: #fff !important;
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.homepage-2026 .modal .hs-form .hs-button:hover {
  background: #3a2ea6 !important;
}

.homepage-2026 .modal .hs-form .hs-error-msgs {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: #e74c3c;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
  .homepage-2026 .modal-wrapper .modal {
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 16px;
    width: 92vw;
  }

  .homepage-2026 .modal-wrapper .modal h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .homepage-2026 .modal .hsfc-Row {
    flex-direction: column;
    gap: 12px;
  }
}
