/* =========================================================
   Marriage Application Form — professional theme
   Navy (#08264A) + Gold (#C99A2E) on light background
   ========================================================= */

.marriage-page {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

/* ----- Cards ----- */
.marriage-card {
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgba(8, 38, 74, 0.08);
  overflow: hidden;
}

.marriage-intro {
  padding: 2.5rem 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .marriage-intro { padding: 1.35rem 1rem 1.5rem; }
}

/* ----- Header / Ayah block ----- */
.marriage-header {
  position: relative;
  background:
    linear-gradient(135deg, rgba(8, 38, 74, 0.98), rgba(20, 61, 110, 0.96)),
    url('');
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 2rem 1.5rem;
  color: #fff;
  text-align: center;
}

.marriage-header--compact {
  padding: 1.75rem 1.5rem 1.5rem;
}

.marriage-title {
  font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.35;
  word-wrap: break-word;
}

.marriage-bismillah {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f3d984;
  letter-spacing: 0.01em;
}

.marriage-ayah {
  margin: 0 auto;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #dbe7f5;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.marriage-ayah--sm {
  font-size: 0.9rem;
}

.marriage-ayah-trans {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  overflow-wrap: anywhere;
}

.marriage-ayah-trans--sm {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* ----- Intro body ----- */
.marriage-intro-body {
  margin-top: 1.75rem;
}

.marriage-intro-heading {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: #08264a;
  margin-bottom: 0.6rem;
}

.marriage-intro-body p {
  color: #4a5a72;
  line-height: 1.8;
  margin: 0 auto 0.6rem;
  max-width: 44rem;
}

.marriage-intro-privacy {
  display: block;
  background: #eef4fb;
  border: 1px solid #dbe7f5;
  color: #0f3a6b !important;
  border-radius: 0.75rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: start;
}

/* ----- Gender select ----- */
.marriage-gender-select {
  margin-top: 2rem;
}

.marriage-gender-select h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #55657c;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.marriage-gender-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto;
}

.marriage-gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-height: 3.25rem;
  border-radius: 0.9rem;
  border: 2px solid #dbe3ee;
  background: #fff;
  color: #08264a;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.marriage-gender-btn:hover {
  border-color: #c99a2e;
  background: #fffaf0;
}

.marriage-gender-btn.is-active,
.marriage-gender-btn[aria-pressed="true"] {
  border-color: #c99a2e;
  background: linear-gradient(135deg, #08264a, #0f3a6b);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 38, 74, 0.25);
}

.marriage-gender-btn iconify-icon {
  font-size: 1.35rem;
  color: #c99a2e;
  flex-shrink: 0;
}

.marriage-gender-btn.is-active iconify-icon {
  color: #f3d984;
}

/* ----- Buttons ----- */
.marriage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.9rem 1.4rem;
  min-height: 3rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.marriage-btn--primary {
  background: linear-gradient(135deg, #0f3a6b, #08264a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 38, 74, 0.25);
}

.marriage-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #123f73, #0b2c54);
}

.marriage-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.marriage-btn--ghost {
  background: transparent;
  border: 1px solid #dbe3ee;
  color: #4a5a72;
}

.marriage-btn--ghost:hover {
  border-color: #c99a2e;
  color: #08264a;
  background: #fffaf0;
}

.marriage-btn--wide {
  width: 100%;
  margin-top: 1.5rem;
}

/* ----- Form ----- */
.marriage-form-wrap {
  margin-top: 0.5rem;
}

.marriage-form {
  padding: 0.25rem 2rem 2rem;
}

.marriage-section {
  padding: 1.35rem 0;
  border-bottom: 1px dashed #e2e9f3;
}

.marriage-section:last-of-type {
  border-bottom: none;
}

.marriage-form { counter-reset: marriage-step; }

.marriage-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #08264a;
  margin: 0 0 1rem;
}

/* Numbered step badge — keeps the official form feel */
.marriage-section-title::before {
  counter-increment: marriage-step;
  content: counter(marriage-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #08264a, #14417a);
  color: #f3d984;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(8, 38, 74, 0.22);
}

.marriage-privacy .marriage-section-title::before { display: none; }

.marriage-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c99a2e, transparent);
}

/* ----- Fields grid ----- */
.marriage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.marriage-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #33455f;
  min-width: 0;
}

.marriage-field--full { grid-column: 1 / -1; }

.marriage-field--inline {
  margin-inline-start: 0.25rem;
  flex: 1;
  min-width: 8rem;
}

.marriage-field--grow { flex-grow: 1; }

.marriage-field input,
.marriage-field textarea,
.marriage-field select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d3deec;
  background: #fbfcfe;
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 1rem; /* prevents iOS zoom on focus */
  color: #0f2c52;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.marriage-field textarea { resize: vertical; min-height: 2.6rem; }

.marriage-field input:hover,
.marriage-field textarea:hover,
.marriage-field select:hover {
  border-color: #b9c9de;
}

.marriage-field input:focus,
.marriage-field textarea:focus,
.marriage-field select:focus {
  outline: none;
  border-color: #c99a2e;
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.18);
  background: #fff;
}

/* Mark required fields discreetly, like an official paper form */
.marriage-field:has(input[required]) > span::after,
.marriage-field:has(textarea[required]) > span::after {
  content: '*';
  color: #c0392b;
  margin-inline-start: 0.2rem;
  font-weight: 800;
}

.marriage-field input.is-invalid,
.marriage-field textarea.is-invalid {
  border-color: #d14d4d;
  background: #fff7f7;
}

/* ----- Fieldset / radio groups ----- */
.marriage-fieldset {
  border: none;
  padding: 0;
  margin: 1rem 0 0;
}

.marriage-fieldset legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: #33455f;
  margin-bottom: 0.5rem;
  padding: 0;
}

.marriage-fieldset.is-invalid legend { color: #d14d4d; }
.marriage-fieldset.is-invalid .marriage-options {
  border: 1px solid #f0b6b6;
  background: #fff8f8;
}

.marriage-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem;
  background: #f7fafd;
  border: 1px solid #e6edf6;
  border-radius: 0.75rem;
}

.marriage-options--wrap { flex-wrap: wrap; }

.marriage-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  min-height: 2.6rem;
  border: 1px solid #e0e8f2;
  background: #fff;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #33455f;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.marriage-check:hover { border-color: #c99a2e; }

/* Selected chip state */
.marriage-check:has(input:checked) {
  border-color: #c99a2e;
  background: linear-gradient(135deg, #fffaf0, #fff6e4);
  color: #08264a;
  box-shadow: 0 3px 10px rgba(201, 154, 46, 0.18);
}

.marriage-check input {
  accent-color: #c99a2e;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.marriage-check--block {
  display: flex;
  width: 100%;
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
}

.marriage-check--inline {
  align-items: center;
  flex: 1 1 auto;
}

.marriage-check.is-invalid { border-color: #d14d4d; }

/* ----- Notes ----- */
.marriage-note {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.marriage-note--bold {
  font-weight: 700;
  color: #08264a;
}

/* ----- Details (extra reference) ----- */
.marriage-details {
  margin-top: 0.75rem;
  border: 1px solid #e4edf6;
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: #fbfcfe;
}

.marriage-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f3a6b;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.marriage-details .marriage-grid { margin-top: 0.75rem; }

/* ----- Pledge list ----- */
.marriage-pledges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ----- Privacy box ----- */
.marriage-privacy {
  background: linear-gradient(135deg, #0b2c54, #123f77);
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;
  margin: 0.5rem 0;
}

.marriage-privacy .marriage-section-title { color: #fff; }
.marriage-privacy .marriage-section-title::after { background: linear-gradient(90deg, #c99a2e, #c99a2e00); }

.marriage-privacy-list {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: #dbe7f5;
  font-size: 0.86rem;
  line-height: 1.75;
}

.marriage-privacy-list li { margin-bottom: 0.35rem; }

/* ----- Actions ----- */
.marriage-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.marriage-actions .marriage-btn { flex: 1; min-width: 8rem; }

/* ----- Message ----- */
.marriage-form-message {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.marriage-form-message.is-success {
  background: #e9f8ef;
  color: #1d7a43;
  border: 1px solid #b6e4c8;
}

.marriage-form-message.is-error {
  background: #fdeeee;
  color: #b13b3b;
  border: 1px solid #f2c2c2;
}

/* =========================================================
   Photos section
   ========================================================= */
.marriage-rules {
  border: 1px solid #f0dcae;
  background: linear-gradient(135deg, #fffaf0, #fffdf8);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.marriage-rules-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: #8a6410;
  margin-bottom: 0.6rem;
}

.marriage-rules-head iconify-icon {
  font-size: 1.15rem;
  color: #c99a2e;
  flex-shrink: 0;
}

.marriage-rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.marriage-rules-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #55524a;
  font-weight: 600;
}

.marriage-rules-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #c99a2e;
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.18);
}

/* ----- Dropzone ----- */
.marriage-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 2px dashed #c8d6e8;
  border-radius: 1rem;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.marriage-dropzone:hover,
.marriage-dropzone.is-dragging {
  border-color: #c99a2e;
  background: #fffaf0;
}

.marriage-dropzone.has-files {
  padding: 1.15rem 1rem;
}

.marriage-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #08264a, #0f3a6b);
  color: #f3d984;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.marriage-dropzone-title {
  margin: 0;
  font-weight: 800;
  color: #08264a;
  font-size: 0.98rem;
}

.marriage-dropzone-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #6b7c93;
  font-weight: 600;
}

.marriage-btn--gold {
  background: linear-gradient(135deg, #d8a733, #c99a2e);
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 154, 46, 0.28);
  padding: 0.7rem 1.25rem;
  min-height: 2.7rem;
  font-size: 0.92rem;
}

.marriage-btn--gold:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e0b03c, #cf9f30);
}

/* ----- Thumbnails ----- */
.marriage-thumbs {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}

.marriage-thumb {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  background: #fff;
  box-shadow: 0 6px 16px rgba(8, 38, 74, 0.08);
  aspect-ratio: 3 / 4;
}

.marriage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marriage-thumb__meta {
  position: absolute;
  inset-inline-start: 0.4rem;
  bottom: 0.4rem;
  background: rgba(8, 38, 74, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
}

.marriage-thumb__remove {
  position: absolute;
  inset-inline-end: 0.4rem;
  top: 0.4rem;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(209, 77, 77, 0.92);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.marriage-thumb__remove:hover { background: #b13b3b; }

.marriage-photo-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  background: #fdeeee;
  border: 1px solid #f2c2c2;
  color: #b13b3b;
  font-size: 0.85rem;
  font-weight: 700;
}

.marriage-consent {
  margin-top: 1rem;
  background: #f7fafd;
  border-color: #dbe5f1;
  align-items: flex-start;
  line-height: 1.6;
}

.marriage-consent.is-invalid {
  border-color: #d14d4d;
  background: #fff8f8;
}

.marriage-photo-privacy {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  background: #eef4fb;
  border: 1px solid #dbe7f5;
  color: #0f3a6b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
}

/* =========================================================
   Pre-upload notice modal
   ========================================================= */
.marriage-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.marriage-modal[hidden] { display: none; }

.marriage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 43, 0.6);
  backdrop-filter: blur(2px);
}

.marriage-modal__dialog {
  position: relative;
  width: min(34rem, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 24px 60px rgba(6, 22, 43, 0.35);
  animation: marriage-modal-in 0.22s ease;
}

@keyframes marriage-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.marriage-modal__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #08264a, #0f3a6b);
  color: #fff;
  border-radius: 1.15rem 1.15rem 0 0;
}

.marriage-modal__head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.marriage-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(243, 217, 132, 0.16);
  color: #f3d984;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.marriage-modal__body { padding: 1.25rem 1.35rem 0.5rem; }

.marriage-modal__lead {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4a5a72;
  font-weight: 600;
}

.marriage-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.marriage-modal__list li {
  position: relative;
  padding: 0.6rem 0.8rem;
  padding-inline-start: 2.1rem;
  border-radius: 0.6rem;
  background: #f8fbff;
  border: 1px solid #e6edf6;
  font-size: 0.85rem;
  line-height: 1.65;
  font-weight: 600;
  color: #33455f;
}

.marriage-modal__list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0.7rem;
  top: 0.62rem;
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c99a2e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.marriage-modal__note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: #6b7c93;
  font-weight: 600;
  line-height: 1.7;
}

.marriage-modal__foot {
  display: flex;
  gap: 0.65rem;
  padding: 1.1rem 1.35rem 1.35rem;
}

.marriage-modal__foot .marriage-btn { flex: 1; }

body.marriage-modal-open { overflow: hidden; }

/* ----- Hidden gender-specific fields ----- */
[data-show].gender-hidden {
  display: none !important;
}

/* Motion */
.marriage-gender-btn, .marriage-btn { will-change: transform; }

/* ========== Mobile / phone ========== */
@media (max-width: 640px) {
  .marriage-header {
    padding: 1.35rem 1rem 1.2rem;
    border-radius: 1rem 1rem 0 0;
  }

  .marriage-header--compact {
    padding: 1.2rem 1rem 1rem;
  }

  .marriage-bismillah {
    font-size: 0.95rem;
  }

  .marriage-ayah {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .marriage-ayah--sm {
    font-size: 0.8rem;
  }

  .marriage-ayah-trans {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }

  .marriage-form {
    padding: 0.15rem 1rem 1.35rem;
  }

  .marriage-section {
    padding: 1.1rem 0;
  }

  .marriage-section-title {
    font-size: 0.98rem;
    flex-wrap: wrap;
  }

  .marriage-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .marriage-gender-btns {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .marriage-options {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .marriage-check {
    width: 100%;
    border-radius: 0.75rem;
    justify-content: flex-start;
  }

  .marriage-check--inline {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .marriage-field--inline {
    margin-inline-start: 0;
    width: 100%;
  }

  .marriage-privacy {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .marriage-privacy-list {
    font-size: 0.82rem;
    padding-inline-start: 1rem;
  }

  .marriage-actions {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }

  .marriage-actions .marriage-btn {
    width: 100%;
    min-width: 0;
  }

  .marriage-intro-privacy {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .marriage-card {
    border-radius: 1rem;
  }

  .marriage-rules { padding: 0.85rem 0.9rem; }
  .marriage-rules-list li { font-size: 0.82rem; }

  .marriage-dropzone { padding: 1.35rem 0.9rem; }

  .marriage-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 0.6rem;
  }

  .marriage-modal { padding: 0.75rem; align-items: flex-end; }

  .marriage-modal__dialog {
    max-height: 92vh;
    border-radius: 1rem;
  }

  .marriage-modal__head { border-radius: 1rem 1rem 0 0; padding: 1rem; }
  .marriage-modal__body { padding: 1rem 1rem 0.35rem; }
  .marriage-modal__foot { flex-direction: column-reverse; padding: 0.9rem 1rem 1.1rem; }

  .marriage-section-title::before {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .marriage-title {
    font-size: 1.05rem;
  }

  .marriage-gender-btn {
    font-size: 0.9rem;
    padding: 0.9rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marriage-gender-btn,
  .marriage-btn {
    transition: none;
    will-change: auto;
  }

  .marriage-btn--primary:hover:not(:disabled) {
    transform: none;
  }
}
