/* Account, sign-up and legal screens (register, forgotten and reset password, verification, profile, company details,
   contacts, card, GDPR, consent, privacy, terms) and the announcements bar. Builds on portal.css; see ../../../../DESIGN.md. */

/* Sign-up: the welcome panel narrower, the form card wider (it has more to fill in). */
.ndc-auth.is-wide { max-width: 1180px; }
.ndc-auth.is-wide .ndc-auth-intro { flex: 1 1 300px; }
.ndc-auth.is-wide .ndc-auth-card { flex: 2 1 560px; max-width: 720px; }
.ndc-auth-intro .ndc-auth-language { max-width: 320px; border-top: 0; padding-top: 0; }
.ndc-auth-card .alert { border-radius: 12px; }
.ndc-auth-card .form-group:last-of-type { margin-bottom: 20px; }
.ndc-auth-card .verification-required-message { margin-bottom: 20px; }

/* Form sections inside a card: a heading, a line of help, then the fields. */
.ndc-required-note { color: var(--slate); margin: 0 0 8px; }
.ndc-form-section { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.ndc-required-note + .ndc-form-section { padding-top: 8px; margin-top: 0; border-top: 0; }
.ndc-form-section h2 { font-size: 22px; margin: 0 0 4px; }
.ndc-section-help { color: var(--slate); margin: 0 0 16px; }
.ndc-form-finish .checkbox { margin: 0 0 20px; }

/* Fields side by side where there is room, one under another on phones. */
.ndc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(240px, calc(50% - 12px)), 1fr)); gap: 0 24px; }
.ndc-card > .form-group:last-child { margin-bottom: 0; }
.ndc-fields > * { min-width: 0; }
body.customers .help-block { margin: 6px 0 0; }
body.customers .form-group label, body.customers .ndc-card label.control-label { margin-bottom: 6px; }
body.customers textarea.form-control { min-height: 96px; }
.ndc-subhead { font-size: 19px !important; margin: 8px 0 12px !important; }

/* Profile: the main form, with the password form beside it. */
.ndc-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ndc-split-main { flex: 999 1 560px; min-width: 0; }
.ndc-split-side { flex: 1 1 300px; min-width: 0; }
.ndc-card-foot { margin: 20px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--slate); }

/* Save row under a form's cards. */
.ndc-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin: 0 0 24px; }
@media (max-width: 560px) { .ndc-form-actions .btn { flex: 1 1 100%; } }

/* Profile image with a worded remove link. */
.ndc-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.ndc-photo .client-profile-image-thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.ndc-link-danger, .ndc-link-danger:hover { color: #A3195B !important; font-weight: 700; }

/* Checkbox lists (email notifications): a roomy grid. */
.ndc-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; }
.ndc-checks .checkbox { margin: 6px 0; }

/* Contacts list: picture and name together, Edit and Delete underneath. */
.ndc-person { display: inline-flex; align-items: center; gap: 10px; }
.ndc-person .client-profile-image-small { width: 32px; height: 32px; border-radius: 50%; }
.ndc-row-options { display: flex; gap: 16px; margin: 4px 0 0 42px; font-size: 16px; }

/* Saved card. */
.ndc-saved-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; }
.ndc-btn-danger { border-color: #A3195B !important; color: #A3195B !important; }
.ndc-btn-danger:hover { background: #A3195B !important; color: #FFFFFF !important; }
.ndc-btn-danger.disabled:hover { background: #FFFFFF !important; color: #A3195B !important; }
.credit-card .ndc-note { margin: 16px 0 0; }

/* GDPR rights: a card each. Perfex's .gdpr-right box is reset to our card. */
.ndc-rights { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ndc-rights .gdpr-right { display: flex; flex-direction: column; align-items: flex-start; text-align: left; margin: 0; padding: 22px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; }
.ndc-rights .gdpr-right .gdpr-right-heading { font-size: 21px; margin: 0 0 6px; }
.ndc-rights .gdpr-right p { color: var(--slate); margin: 0 0 16px; flex: 1 0 auto; }

/* Consent purposes: one card each, the status in words. */
.ndc-purpose.gdpr-purpose { padding: 24px; border-color: var(--line); border-radius: 20px; min-width: 0; }
.ndc-purpose legend.gdpr-purpose-heading { display: flex; width: 100%; float: left; border: 0; margin: 0 0 12px; padding: 0; font-family: "Lexend", Arial, sans-serif; font-size: 21px !important; font-weight: 600; color: var(--navy); }
.ndc-purpose legend + * { clear: both; }
.ndc-purpose .ndc-purpose-name { flex: 1 1 auto; }
.ndc-pill.is-yes { background: #E3F4E6; color: #1D6B2A; }
.ndc-pill.is-no { background: #F1F3F5; color: var(--slate); }
.ndc-purpose-choice { clear: both; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.ndc-purpose-choice .radio-inline { margin: 0 !important; padding-left: 0; }

/* Policy and terms text: comfortable reading width. */
.ndc-prose .tc-content { max-width: 72ch; }
.ndc-prose .tc-content:has(> .ndc-empty) { max-width: none; }
.ndc-prose .tc-content h1, .ndc-prose .tc-content h2, .ndc-prose .tc-content h3 { margin-top: 1.4em; }
.col-md-12 > .ndc-note { margin-bottom: 24px; }

/* Announcements bar. */
.ndc-announcements { margin-bottom: 8px; }
.ndc-announce { background: #FFFFFF; border: 1px solid var(--line); border-left: 6px solid var(--purple); border-radius: 16px; padding: 18px 22px; margin-bottom: 16px; font-size: 18px !important; }
.ndc-announce-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ndc-announce-head .ndc-eyebrow { margin: 0; }
.ndc-announce-date { color: var(--slate); font-weight: 400; letter-spacing: normal; text-transform: none; }
.ndc-announce-dismiss { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
body.customers .ndc-announce h2.announcement-name { font-size: 22px; margin: 8px 0 6px; }
.ndc-announce .announcement-message { color: var(--navy); }
.ndc-announce .announcement-message > :last-child { margin-bottom: 0; }
