.modal-open{overflow:hidden}
.modal-overlay{position:fixed;inset:0;z-index:100;display:none;place-items:center;overflow:auto;padding:24px;background:#111914c9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.modal-overlay.active{display:grid}
.legal-modal{z-index:110}
.modal-overlay .modal{width:min(100%,690px);max-height:min(90svh,900px);overflow:auto;overscroll-behavior:contain;background:#eeece5;color:#25241f;border:1px solid #b9b4a6;border-radius:20px;box-shadow:0 28px 90px #090d0a88}
.modal-header{display:flex;align-items:start;justify-content:space-between;gap:24px;padding:32px 36px 25px;border-bottom:1px solid #c8c4b8}
.modal-title{font:400 clamp(38px,5vw,58px)/1 Georgia,serif;letter-spacing:-.055em;margin:0}
.modal-subtitle{margin:14px 0 0;color:#666359;font:16px/1.5 Arial,sans-serif}
.modal-close{flex:none;width:40px;height:40px;border:1px solid #b4aea0;border-radius:50%;background:transparent;color:#25241f;font:28px/1 Arial,sans-serif;cursor:pointer}
.modal-close:hover,.modal-close:focus-visible{background:#dcd6c7}
.modal-body{padding:28px 36px 36px}
.modal-body form{display:grid;gap:20px}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.form-group{display:grid;gap:8px}
.form-group label,.checkbox-group label{font:600 13px/1.45 Arial,sans-serif;letter-spacing:.02em}
.form-group input,.form-group select,.form-group textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid #aaa69c;border-radius:9px;background:#f9f8f2;color:#25241f;font:16px/1.4 Arial,sans-serif;outline:none}
.form-group textarea{min-height:110px;resize:vertical}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#9c8246;box-shadow:0 0 0 3px #bda46940}
.checkbox-group{display:flex;gap:12px;align-items:flex-start}
.checkbox-group input{width:19px;height:19px;flex:none;margin:1px 0 0;accent-color:#9b8247}
.checkbox-group a,.legal-content a{color:#6f5b2c;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#formStatus:not(:empty){color:#884235;font:14px/1.5 Arial,sans-serif}
.submit-btn,.success-close-btn{min-height:51px;padding:0 24px;border:0;border-radius:999px;background:#253028;color:#f4f0e6;font:600 14px/1 Arial,sans-serif;cursor:pointer}
.submit-btn:hover,.success-close-btn:hover{background:#3d4b3f}
.submit-btn:disabled{opacity:.55;cursor:wait}
.success-modal .modal{max-width:650px;text-align:center}
.success-modal .modal-body{padding:45px 42px}
.success-icon-large{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 25px;border:1px solid #b59a58;border-radius:50%;color:#9b8247;font:32px/1 Georgia,serif}
.success-icon-large:after{content:'✓'}
.success-greeting{font:400 clamp(37px,5vw,55px)/1 Georgia,serif;letter-spacing:-.05em;margin:0 0 18px}
.success-message-text,.success-next-steps p{color:#5d5a52;line-height:1.65}
.dua-container{margin:30px 0;padding:25px;border:1px solid #d0bd88;border-radius:12px;background:#e5dfd0}
.dua-arabic{margin:0 0 14px;color:#715d2b;font:30px/1.7 Georgia,serif;text-align:center}
.success-modal .dua-translation{display:block;margin:0 0 10px;font:23px/1.35 Georgia,serif}
.dua-reference{margin:0;color:#74653f;font:12px/1.4 Arial,sans-serif;letter-spacing:.1em}
.success-next-steps{margin:30px 0 0}.success-next-steps h4{margin:0 0 8px;font:28px/1 Georgia,serif}
.success-close-btn{margin-top:28px}
.legal-modal .modal{max-width:760px}.legal-content h3{margin:25px 0 10px;font:30px/1.15 Georgia,serif;letter-spacing:-.035em}.legal-content h3:first-child{margin-top:0}.legal-content p,.legal-content li{color:#57544d;font:15px/1.65 Arial,sans-serif}.legal-content ul{padding-left:22px}
@media(max-width:600px){.modal-overlay{padding:9px;align-items:end}.modal-overlay .modal{max-height:94svh;border-radius:18px 18px 10px 10px}.modal-header{padding:23px 22px 20px}.modal-body{padding:22px}.form-row{grid-template-columns:1fr}.success-modal .modal-body{padding:36px 22px}.dua-arabic{font-size:25px}}
.age-gate-overlay{z-index:105}
.age-gate-card{position:relative;isolation:isolate;width:min(100%,530px);padding:38px clamp(25px,5vw,46px) 31px;overflow:hidden;border:1px solid #b9ad8d;border-radius:22px;background:#e9e8e2;color:#25231f;box-shadow:0 35px 110px #0b130d6e}
.age-gate-card:before{content:"";position:absolute;z-index:-1;right:-115px;top:-135px;width:340px;height:340px;border:1px solid #b8a76c4a;border-radius:50%;pointer-events:none}
.age-gate-close{position:absolute;right:18px;top:16px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #aaa69a;border-radius:50%;background:transparent;color:inherit;font:28px/1 Arial,sans-serif;cursor:pointer}
.age-gate-mark{display:grid;place-items:center;width:58px;height:58px;border:2px solid #a9904e;border-radius:50%;color:#9c8041;font:40px/1 Georgia,serif}
.age-gate-kicker{margin:28px 0 15px;color:#746d5e;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.2em}
.age-gate-card h2{max-width:430px;margin:0;font:400 clamp(42px,6vw,61px)/.98 Georgia,serif;letter-spacing:-.065em}
.age-gate-card h2:focus{outline:none}
.age-gate-card>p:not(.age-gate-kicker){max-width:425px;margin:22px 0 25px;color:#5d5a52;font:16px/1.58 Arial,sans-serif}
.age-gate-choices{display:grid;gap:10px}.age-gate-choices button,.age-gate-done{min-height:55px;width:100%;padding:12px 19px;border-radius:100px;font:600 14px/1.35 Arial,sans-serif;text-align:left;cursor:pointer}
.age-gate-yes{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #34332e;background:#34332e;color:#f9f7ef}
.age-gate-no,.age-gate-done{border:1px solid #9c998d;background:transparent;color:#25231f}
.age-gate-ineligible{padding:16px 18px;border:1px solid #b9ad8d;border-radius:12px;background:#ffffff63}
.age-gate-choices[hidden],.age-gate-ineligible[hidden],.age-gate-done[hidden],.age-inline-error[hidden]{display:none!important}
.age-inline-error{margin:3px 0 0;color:#934a3d;font:14px/1.45 Arial,sans-serif}
html[data-theme="dark"] .age-gate-card{background:#222923;color:#f2eee4;border-color:#757362}
html[data-theme="dark"] .age-gate-kicker,html[data-theme="dark"] .age-gate-card>p:not(.age-gate-kicker){color:#c5bfb1}
html[data-theme="dark"] .age-gate-close,html[data-theme="dark"] .age-gate-no,html[data-theme="dark"] .age-gate-done{border-color:#75796d;color:#f2eee4}
html[data-theme="dark"] .age-gate-yes{background:#d8c99f;border-color:#d8c99f;color:#20241f}
html[data-theme="dark"] .age-gate-ineligible{background:#ffffff12}
html[data-theme="dark"] .age-inline-error{color:#e2aa9c}
@media(max-width:600px){.age-gate-overlay{padding:0}.age-gate-card{width:100%;max-height:94svh;overflow:auto;border-radius:22px 22px 0 0;padding:34px 24px calc(20px + env(safe-area-inset-bottom))}}
/* Frosted, softly lit application surfaces in light appearance. */
.modal-overlay{background:#141b17af;backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.modal-overlay .modal,.age-gate-card{background:rgba(245,243,235,.88);border-color:#ffffffbd;box-shadow:inset 0 1px 0 #fff,0 26px 85px #090e0c57;backdrop-filter:blur(30px) saturate(145%);-webkit-backdrop-filter:blur(30px) saturate(145%)}
.modal-overlay .modal{color:#25241f}
.modal-header{border-color:#b7b2a694}
.form-group input,.form-group select,.form-group textarea{background:#fffdf9c9;border-color:#a9a59ba8;box-shadow:inset 0 1px 0 #fff9}
.dua-container{background:#e8e1d5c7}
/* The whole form, its controls, and its companion dialogs follow dark mode. */
html[data-theme="dark"] .modal-overlay{background:#070d09c9}
html[data-theme="dark"] .modal-overlay .modal,html[data-theme="dark"] .age-gate-card{background:rgba(34,42,36,.91);border-color:#697467ae;color:#f2eee4;box-shadow:inset 0 1px 0 #ffffff20,0 28px 90px #020604b8}
html[data-theme="dark"] .modal-header{border-color:#6b746677}
html[data-theme="dark"] .modal-subtitle,html[data-theme="dark"] .success-message-text,html[data-theme="dark"] .success-next-steps p,html[data-theme="dark"] .legal-content p,html[data-theme="dark"] .legal-content li{color:#c8c4b9}
html[data-theme="dark"] .modal-close{border-color:#879082;color:#f2eee4}
html[data-theme="dark"] .modal-close:hover,html[data-theme="dark"] .modal-close:focus-visible{background:#ffffff1b}
html[data-theme="dark"] .form-group input,html[data-theme="dark"] .form-group select,html[data-theme="dark"] .form-group textarea{background:#19221edb;border-color:#737d70;color:#f2eee4;box-shadow:inset 0 1px 0 #ffffff0c}
html[data-theme="dark"] .form-group input::placeholder,html[data-theme="dark"] .form-group textarea::placeholder{color:#b7b7aa}
html[data-theme="dark"] .form-group select option{background:#202922;color:#f2eee4}
html[data-theme="dark"] .checkbox-group a,html[data-theme="dark"] .legal-content a{color:#e1cc92}
html[data-theme="dark"] .submit-btn,html[data-theme="dark"] .success-close-btn{background:#d8c99f;color:#20241f}
html[data-theme="dark"] .submit-btn:hover,html[data-theme="dark"] .success-close-btn:hover{background:#ebddb6}
html[data-theme="dark"] .dua-container{background:#394036c9;border-color:#8d845e}
html[data-theme="dark"] .dua-arabic,html[data-theme="dark"] .dua-reference{color:#e0c990}
html[data-theme="dark"] .success-icon-large{color:#ddc88e}
