/* Approved 22 October 2026. Scoped to the Suggest a Mandir form page. */
.approved-mandir-form-page { overflow-x: visible; }
.approved-form-section {
  padding: 28px 16px 56px;
  background: #f5ead5 url('../images/suggest-a-mandir/golden-jali-pattern.webp?v=20261022') center top / 100% auto repeat-y;
}
.approved-pattern-shell {
  max-width: 1200px; margin: 0 auto; padding: 18px; border-radius: 24px;
}
#approved-mandir-form {
  --submission-ink: #28221b; --submission-muted: #745e46; --submission-border: #e4d4bb;
  --submission-focus: #925b15; --submission-error: #a32922;
  container: approvedform / inline-size;
  max-width: 1040px; min-width: 0; margin: 0 auto; border: 1px solid rgba(255,255,255,.96); border-radius: 24px;
  background: linear-gradient(125deg,rgba(255,252,246,.95),rgba(254,246,231,.86) 58%,rgba(246,232,204,.90));
  box-shadow: 0 10px 30px rgba(98,65,24,.12); color: #28221b; font: 400 15px/1.5 Inter,Roboto,Arial,sans-serif;
}
#approved-mandir-form *, #approved-mandir-form *::before, #approved-mandir-form *::after { box-sizing: border-box; }
#approved-mandir-form [hidden] { display: none !important; }
#approved-mandir-form :where(h1,h2,h3) { font-family: 'Playfair Display',Georgia,serif; font-weight: 600; }
#approved-mandir-form :where(p,label,legend,summary,input,select,textarea,button,a,span) { font-family: Inter,Roboto,Arial,sans-serif; }
#approved-mandir-form :where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #925b15; outline-offset: 3px; }
#approved-mandir-form :where(fieldset) { min-width: 0; padding: 0; margin: 0; border: 0; }
#approved-mandir-form legend.visually-hidden { display: block; position: absolute; width: 1px !important; max-width: 1px; min-width: 0; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#approved-mandir-form .approved-form-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 16px; padding: 24px 28px 10px; }
#approved-mandir-form .approved-title-group { display: flex; min-width: 0; gap: 12px; align-items: flex-start; }
#approved-mandir-form .approved-title-group img { flex: none; width: 40px; height: 40px; object-fit: contain; margin-top: 1px; }
#approved-mandir-form h1 { min-width: 0; margin: 0; font: 600 34px/1.2 'Playfair Display',Georgia,serif; letter-spacing: .5px; color: #211c16; }
#approved-mandir-form h1::after { content: ''; display: block; width: 54px; height: 2px; margin-top: 9px; background: #bf8b40; }
#approved-mandir-form .approved-form-header p { max-width: 55ch; margin: 12px 0 0; color: #745e46; font-size: 15px; line-height: 1.5; }
#approved-mandir-form .approved-account { text-align: right; font-size: 13px; color: #745e46; }
#approved-mandir-form .approved-account > span { display: block; margin-bottom: 5px; }
#approved-mandir-form .approved-account a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid #ddc7a5; border-radius: 999px; background: rgba(255,253,248,.88); color: #87510f; font-weight: 500; }
#approved-mandir-form form { padding: 16px 28px 26px; margin: 0; }
#approved-mandir-form .contribution-modes { margin-bottom: 16px; }
#approved-mandir-form .contribution-modes legend { float: none; width: auto; margin: 0 0 8px; font-size: 15px; font-weight: 500; color: #28221b; }
#approved-mandir-form .contribution-mode-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#approved-mandir-form .contribution-mode-options label { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 50px; margin: 0; padding: 12px 16px; border: 1px solid #ddc7a5; border-radius: 14px; background: rgba(255,255,255,.90); color: #63411f; font-size: 15px; font-weight: 500; cursor: pointer; }
#approved-mandir-form .contribution-mode-options label:has(:checked) { border-color: #bd8c43; background: #f3e5c7; color: #573818; }
#approved-mandir-form .contribution-mode-options label:focus-within { outline: 3px solid #925b15; outline-offset: 3px; }
#approved-mandir-form input[type=radio] { appearance: auto; flex: none; width: 18px; height: 18px; padding: 0; margin: 0; accent-color: #a36a17; }
#approved-mandir-form .contribution-modes p { margin: 8px 0 0; color: #745e46; font-size: 14px; }
#approved-mandir-form .approved-form-intro { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; color: #745e46; font-size: 13px; }
#approved-mandir-form .form-grid { align-items: start; gap: 18px 20px; }
#approved-mandir-form .form-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
#approved-mandir-form .form-field { min-width: 0; margin: 0; }
#approved-mandir-form .form-field label { margin: 0 0 7px; color: #5c4027; font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
#approved-mandir-form .optional-marker { color: #795f42; font-size: 13px; font-weight: 400; }
#approved-mandir-form .form-field label .optional-marker { float: right; margin-left: 6px; }
#approved-mandir-form .group-required-marker { display: none; }
#approved-mandir-form .required { color: #8a4b27; font-weight: 400; }
#approved-mandir-form :where(input[type=text],input[type=email],input[type=tel],input[type=url],select,textarea) {
  display: block; width: 100%; min-width: 0; max-width: 100%; height: 50px; min-height: 50px; margin: 0; padding: 12px 14px;
  border: 1px solid #9f8c73; border-radius: 12px; background: #fffdfa; color: #28221b; -webkit-text-fill-color: #28221b;
  caret-color: #28221b; font: 400 16px/24px Inter,Roboto,Arial,sans-serif; opacity: 1; box-shadow: 0 2px 4px rgba(96,61,19,.025); color-scheme: light;
}
#approved-mandir-form select { padding-right: 32px; }
#approved-mandir-form select option { color: #28221b; background: #fffdfa; }
#approved-mandir-form :where(input,textarea)::placeholder { color: #796b5b; -webkit-text-fill-color: #796b5b; opacity: 1; }
#approved-mandir-form :where(input,textarea):-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fffdfa inset; -webkit-text-fill-color: #28221b; caret-color: #28221b; }
#approved-mandir-form :where(input,select,textarea)[aria-invalid=true] { border-color: #a32922; }
#approved-mandir-form textarea { height: auto; min-height: 96px; resize: vertical; overflow-y: hidden; }
#approved-mandir-form .character-count { font-size: 13px; color: #745e46; }
#approved-mandir-form .form-help { margin: 6px 0 0; color: #745e46; font-size: 13px; line-height: 1.5; }
#approved-mandir-form .form-field > .form-help:has(+input), #approved-mandir-form .form-field > .form-help:has(+textarea) { margin: 0 0 7px; }
#approved-mandir-form .form-error { margin: 6px 0; color: #a32922; font-size: 14px; }
#approved-mandir-form .approved-location-grid { margin-top: 18px; }
#approved-mandir-form .approved-contact { margin-top: 22px; padding-top: 20px; border-top: 1px solid #dbc5a3; }
#approved-mandir-form #contact-method { margin-top: 10px; font-size: 14px; }
#approved-mandir-form #contact-method i { margin-right: 5px; }
#approved-mandir-form .conditional-panel { margin: 18px 0 0; padding: 14px; border: 1px solid #e2cfaf; border-radius: 14px; background: rgba(255,251,241,.78); }
#approved-mandir-form .conditional-panel > p { margin: 0 0 12px; }
#approved-mandir-form .approved-photos { margin-top: 22px; padding: 18px 0; border-top: 1px solid #dbc5a3; }
#approved-mandir-form .approved-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
#approved-mandir-form .approved-photo-heading h2 { margin: 0; color: #5c4027; font: 500 15px/1.5 Inter,Roboto,Arial,sans-serif; }
#approved-mandir-form .approved-photo-heading p { margin: 4px 0 0; color: #745e46; font-size: 14px; }
#approved-mandir-form .photo-picker__controls { display: flex; flex-wrap: wrap; gap: 8px; }
#approved-mandir-form .approved-file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; max-width: 100%; margin: 0; padding: 10px 15px; border: 1px solid #dfbb82; border-radius: 999px; background: #fffaf0; color: #87510f; font-size: 14px; font-weight: 500; cursor: pointer; }
#approved-mandir-form .approved-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
#approved-mandir-form .approved-file-button:focus-within { outline: 3px solid #925b15; outline-offset: 3px; }
#approved-mandir-form .photo-preview-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
#approved-mandir-form .photo-preview-list:empty { display: none; }
#approved-mandir-form .photo-preview { display: block; min-width: 0; border: 1px solid #e2d1b4; border-radius: 14px; overflow: hidden; background: #fffdfa; }
#approved-mandir-form .photo-preview img { display: block; width: 100%; height: 124px; object-fit: cover; }
#approved-mandir-form .photo-preview__details { padding: 8px 10px; font-size: 13px; overflow-wrap: anywhere; }
#approved-mandir-form .photo-preview__details > span { display: block; }
#approved-mandir-form .photo-preview__remove { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #87510f; font-size: 14px; }
#approved-mandir-form .photo-total { margin: 8px 0 0; color: #745e46; font-size: 13px; }
#approved-mandir-form .photo-total:empty { display: none; }
#approved-mandir-form .approved-more { margin: 0 0 18px; border: 1px solid #ddc7a5; border-radius: 14px; background: rgba(255,251,241,.78); }
#approved-mandir-form .approved-more > summary { display: flex; align-items: center; gap: 7px; min-height: 50px; padding: 13px 16px; list-style: none; color: #5c4027; font-size: 15px; font-weight: 500; cursor: pointer; }
#approved-mandir-form .approved-more > summary::-webkit-details-marker { display: none; }
#approved-mandir-form .approved-more > summary::after { content: '+'; margin-left: auto; color: #925b15; font-size: 22px; }
#approved-mandir-form .approved-more[open] > summary::after { content: '−'; }
#approved-mandir-form .approved-more-body { padding: 18px 16px; border-top: 1px solid #e4d4bb; background: rgba(255,253,248,.45); border-radius: 0 0 14px 14px; }
#approved-mandir-form .optional-details { margin: 16px 0 0; border-color: #dfccac; border-radius: 12px; }
#approved-mandir-form .optional-details summary { min-height: 48px; color: #5c4027; background: transparent; font-size: 15px; font-weight: 500; }
#approved-mandir-form .optional-details__content { padding: 16px; background: rgba(255,253,248,.45); }
#approved-mandir-form .optional-details__content > .form-field + .form-field, #approved-mandir-form .form-grid + .form-field { margin-top: 18px; }
#approved-mandir-form .submission-secondary-action { min-height: 44px; color: #87510f; border-color: #ddc7a5; background: #fffaf0; font-weight: 500; }
#approved-mandir-form .approved-consents { padding: 9px 14px; border: 1px solid #e2cfaf; border-radius: 16px; background: rgba(255,253,248,.62); }
#approved-mandir-form .consent-item { margin: 0; padding: 0; border: 0; background: transparent; }
#approved-mandir-form .consent-item label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin: 0; padding: 8px 0; color: #5d432c; font-size: 14px; line-height: 1.55; font-weight: 400; cursor: pointer; }
#approved-mandir-form .consent-item input { appearance: auto; flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: #a36a17; }
#approved-mandir-form .consent-item label > span { min-width: 0; overflow-wrap: anywhere; }
#approved-mandir-form .approved-review-note { margin: 12px 0 0; font-size: 13px; color: #745e46; }
#approved-mandir-form .approved-form-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
#approved-mandir-form .approved-form-bottom a { color: #795f42; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
#approved-mandir-form [data-submit-button] { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px 20px; border: 1px solid #925b15; border-radius: 999px; background: #925b15; color: white; font-size: 15px; font-weight: 500; line-height: 1.4; box-shadow: 0 3px 7px rgba(96,61,19,.10); cursor: pointer; }
#approved-mandir-form [data-submit-button] span { color: white; }
#approved-mandir-form [data-submit-button]:hover { background: #784a13; }
#approved-mandir-form [data-submit-status] { margin: 10px 0 0; color: #745e46; font-size: 14px; }
#approved-mandir-form [data-submit-status]:empty { display: none; }
#approved-mandir-form .error-summary { margin: 16px 28px; border-radius: 12px; }
#approved-mandir-form .information-notice { margin: 12px 28px; }
#approved-mandir-form .location-suggestions { border-radius: 12px; background: #fffdfa; }
#approved-mandir-form .selected-choice-caption { font-size: 13px; color: #745e46; margin: 6px 0 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .approved-form-section { padding: 18px 12px 40px; }
  .approved-pattern-shell { padding: 14px; }
}
@media (max-width: 480px) {
  .approved-form-section { padding: 14px 8px 32px; }
  .approved-pattern-shell { padding: 10px; }
}
@container approvedform (max-width: 640px) {
  #approved-mandir-form .approved-form-header { grid-template-columns: minmax(0,1fr); padding: 22px 20px 8px; gap: 10px; }
  #approved-mandir-form .approved-title-group img { width: 36px; height: 36px; }
  #approved-mandir-form h1 { font-size: 30px; }
  #approved-mandir-form .approved-account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; text-align: left; }
  #approved-mandir-form .approved-account > span { margin: 0; }
  #approved-mandir-form form { padding: 14px 20px 22px; }
  #approved-mandir-form .form-grid--two { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #approved-mandir-form .contribution-mode-options { gap: 10px; }
  #approved-mandir-form .contribution-mode-options label { padding: 11px 12px; font-size: 14px; }
  #approved-mandir-form .photo-picker__controls { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #approved-mandir-form .approved-file-button { padding: 10px 8px; }
  #approved-mandir-form .photo-preview-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #approved-mandir-form .approved-form-bottom { flex-direction: column; align-items: stretch; }
  #approved-mandir-form .approved-form-bottom a { text-align: center; }
  #approved-mandir-form [data-submit-button] { width: 100%; order: -1; }
}
@container approvedform (max-width: 360px) {
  #approved-mandir-form .approved-form-header { padding: 18px 16px 8px; }
  #approved-mandir-form h1 { font-size: 27px; }
  #approved-mandir-form .approved-title-group { gap: 9px; }
  #approved-mandir-form .approved-title-group img { width: 34px; height: 34px; }
  #approved-mandir-form form { padding: 14px 16px 18px; }
  #approved-mandir-form .contribution-mode-options { gap: 8px; }
  #approved-mandir-form .contribution-mode-options label { padding: 11px 9px; gap: 7px; }
  #approved-mandir-form .approved-more-body, #approved-mandir-form .optional-details__content { padding: 16px 12px; }
  #approved-mandir-form .approved-title-group h1 { overflow-wrap: normal; }
}
