.elara-password-field { position: relative; }
.elara-password-field input.form-control { padding-inline-end: 58px; }
.elara-password-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.elara-password-toggle img { width: 24px; height: 24px; filter: invert(78%) sepia(26%) saturate(1489%) hue-rotate(292deg) brightness(100%); }
.elara-password-toggle:hover { background: #ff7cb921; }
.elara-password-toggle:focus-visible { outline: 2px solid #ff85bf; outline-offset: 1px; }
.elara-password-toggle .password-hide-icon, .elara-password-toggle[aria-pressed="true"] .password-show-icon { display: none; }
.elara-password-toggle[aria-pressed="true"] .password-hide-icon { display: block; }
.elara-password-field:has(.is-invalid) + .invalid-feedback { display: block; }
.elara-contact-number { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
.elara-contact-number .form-control { min-width: 0; width: 100%; }
.elara-contact-number select.form-control { padding-inline: 12px 24px; font-size: 16px; color-scheme: dark; }
.elara-contact-number select option { color: #fff5fb; background: #25172f; }

.elara-legal-dialog { width: min(760px, calc(100% - 32px)); max-height: min(85dvh, 880px); padding: 0; border: 1px solid #86527e; border-radius: 20px; background: #201329; color: #fff5fb; font-family: "DM Sans", sans-serif; box-shadow: 0 24px 100px #0009; }
.elara-legal-dialog::backdrop { background: #090510c9; backdrop-filter: blur(5px); }
.elara-legal-dialog[open] { display: flex; flex-direction: column; }
.elara-legal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid #65405e; }
.elara-legal-header h2 { margin: 0; font-size: 24px; font-weight: 700; color: #fff5fb; }
.elara-legal-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #86527e; border-radius: 50%; color: #fff; background: transparent; font-size: 20px; cursor: pointer; }
.elara-legal-content { padding: 24px 26px; overflow-y: auto; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.elara-legal-content h1, .elara-legal-content h2, .elara-legal-content h3 { color: #fff5fb; font-family: inherit; font-weight: 700; line-height: 1.4; }
.elara-legal-content a { color: #ff96ca; text-decoration: underline; }
.elara-legal-footer { padding: 16px 26px; border-top: 1px solid #65405e; }
.elara-legal-footer button { width: 100%; min-height: 48px; border: 1px solid #f576b3; border-radius: 10px; background: #bd226a; color: #fff; font: 700 16px "DM Sans", sans-serif; cursor: pointer; }
.elara-legal-dialog button:focus-visible { outline: 2px solid #ff96ca; outline-offset: 3px; }
@media (max-width: 480px) { .elara-legal-header, .elara-legal-content, .elara-legal-footer { padding: 16px; } .elara-legal-header h2 { font-size: 21px; } }

.elara-dial-picker { position: relative; min-width: 0; }
.elara-dial-picker select.form-control { appearance: none; -webkit-appearance: none; color: transparent !important; background-image: none; cursor: pointer; }
.elara-dial-value { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: #fff5fb; font-size: 16px; pointer-events: none; }
.elara-dial-picker::after { content: ""; position: absolute; inset-inline-end: 12px; top: calc(50% - 4px); width: 7px; height: 7px; border-right: 1.5px solid #d9b8d4; border-bottom: 1.5px solid #d9b8d4; transform: rotate(45deg); pointer-events: none; }
