/* Modern account, agency, site hub and map screens. Theme's public profile styles stay untouched. */
.dw-account-container,.dw-utility-container,.dw-agencies-container { box-sizing:border-box; width:84%; max-width:1580px; margin:0 auto; padding:30px 0 84px; color:#202b3d; }
.dw-account-container *,.dw-utility-container *,.dw-agencies-container * { box-sizing:border-box; }
.dw-account-container a,.dw-utility-container a,.dw-agencies-container a { transition:background .15s,border-color .15s,color .15s; }
.dw-account-ui { background:#f7f9fc; }
.dw-account-heading { margin:0 0 23px; }
.dw-account-heading nav,.dw-utility-crumbs,.dw-agency-crumbs { display:flex; gap:9px; align-items:center; flex-wrap:wrap; color:#8390a4; font-size:12px; margin:0 0 14px; }
.dw-account-heading nav a,.dw-utility-crumbs a,.dw-agency-crumbs a { color:#63748d; text-decoration:none; }
.dw-account-heading h1,.dw-utility-container h1,.dw-agencies-container h1 { font-size:clamp(27px,2.3vw,36px); line-height:1.17; margin:0 0 9px; letter-spacing:-.035em; color:#1c283a; font-weight:850; }
.dw-account-heading p,.dw-hub-intro,.dw-map-hero p,.dw-agency-intro { margin:0; color:#67768c; font-size:14px; line-height:1.65; }
.dw-account-navigation { display:flex; align-items:center; gap:7px; overflow-x:auto; scrollbar-width:thin; padding:0 0 18px; margin:0 0 10px; }
.dw-account-navigation a { flex:0 0 auto; padding:10px 13px; border:1px solid #dfe5ef; background:#fff; border-radius:9px; color:#40516e; font-size:13px; line-height:1.25; font-weight:750; text-decoration:none; }
.dw-account-navigation a:hover,.dw-account-navigation a[aria-current="page"] { border-color:#f8a0bc; background:#fff2f7; color:#b93266; }
.dw-account-navigation .dw-account-logout { margin-left:auto; color:#8b455c; }
.dw-legacy-account-nav { box-sizing:border-box; width:84%; max-width:1580px; margin:18px auto -7px; }
.dw-legacy-account-nav .dw-account-navigation { margin:0; }
.dw-dashboard-greeting { display:flex; align-items:center; justify-content:space-between; gap:22px; background:linear-gradient(115deg,#292d39,#354b70); color:#fff; padding:28px 31px; border-radius:18px; margin-bottom:19px; }
.dw-dashboard-greeting h2 { color:#fff; font-size:clamp(23px,2vw,30px); margin:5px 0 9px; line-height:1.2; font-weight:820; }
.dw-dashboard-greeting p { color:#e0e6f2; font-size:13px; line-height:1.6; margin:0; }
.dw-dashboard-eyebrow,.dw-utility-eyebrow { color:#fa699e; font-size:11px; font-weight:850; text-transform:uppercase; letter-spacing:.1em; }
.dw-dashboard-avatar { display:grid; place-items:center; flex:0 0 62px; width:62px; height:62px; border-radius:17px; background:#ff568c; color:#fff; font-size:32px; font-weight:850; }
.dw-dashboard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dw-dashboard-card { min-width:0; padding:22px; background:#fff; border:1px solid #e3e8f1; border-radius:15px; display:flex; flex-direction:column; align-items:flex-start; }
.dw-dashboard-card-primary { background:#fff8eb; border-color:#f4dfb2; }
.dw-dashboard-card-icon { display:grid; place-items:center; width:39px; height:39px; border-radius:10px; background:#ecf1fd; color:#426fd5; font-size:22px; margin-bottom:12px; }
.dw-dashboard-card h2 { margin:0 0 8px; color:#273447; font-size:19px; font-weight:850; line-height:1.25; }
.dw-dashboard-card p { color:#677589; font-size:13px; line-height:1.55; margin:0 0 20px; }
.dw-dashboard-status { display:inline-flex; align-items:center; gap:7px; padding:5px 9px; margin-bottom:11px; background:#e7f6ee; border-radius:6px; color:#296d47; font-size:11px; font-weight:780; }
.dw-status-dot { width:7px; height:7px; border-radius:50%; background:#27b46a; }
.dw-dashboard-button,.dw-dashboard-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:39px; padding:10px 15px; margin-top:auto; border-radius:9px; text-decoration:none; font-size:13px; font-weight:790; }
.dw-dashboard-button { background:#426fd5; color:#fff; }
.dw-dashboard-button:hover { color:#fff; background:#315cc1; }
.dw-dashboard-secondary { background:#edf3ff; color:#315cb4; border:1px solid #dce7fb; }
.dw-dashboard-secondary:hover { background:#dce8ff; }
.dw-dashboard-card-primary .dw-dashboard-secondary { margin-top:10px; }
.dw-dashboard-note { display:flex; align-items:center; gap:14px; background:#f0f3f9; color:#667487; padding:14px 17px; margin-top:18px; border-radius:11px; font-size:12px; line-height:1.5; }
.dw-dashboard-note strong { color:#27354b; }

/* Main registration selection: cards instead of old gradient columns. */
.dw-registration-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.dw-registration-choice { display:flex; flex-direction:column; min-width:0; padding:25px; background:#fff; border:1px solid #e0e7f0; border-radius:16px; }
.dw-choice-featured { border-color:#ffc0d2; background:linear-gradient(180deg,#fff6f9,#fff 43%); }
.dw-choice-symbol { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#edf2ff; color:#426fd5; font-size:28px; margin-bottom:14px; }
.dw-choice-featured .dw-choice-symbol { background:#ffe3ec; color:#f14d83; }
.dw-choice-label { font-size:11px; font-weight:850; color:#8d6a7a; text-transform:uppercase; letter-spacing:.06em; }
.dw-registration-choice h2 { margin:8px 0; color:#223047; font-size:23px; line-height:1.24; font-weight:850; }
.dw-registration-choice p { color:#687588; font-size:13px; line-height:1.6; margin:0 0 16px; }
.dw-registration-choice ul { list-style:none; padding:0; margin:0 0 20px; display:grid; gap:10px; }
.dw-registration-choice li { padding-left:22px; position:relative; color:#38475c; font-size:13px; line-height:1.4; }
.dw-registration-choice li::before { content:'✓'; position:absolute; left:0; color:#2eaa77; font-weight:900; }
.dw-choice-button { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:12px 14px; min-height:45px; background:#426fd5; color:#fff!important; border-radius:9px; margin-top:auto; font-size:13px; font-weight:800; text-decoration:none; }
.dw-choice-featured .dw-choice-button { background:#ff5588; }
.dw-choice-button:hover { filter:brightness(.95); }
.dw-registration-signin { padding:22px 0; text-align:center; color:#65748a; font-size:14px; }
.dw-registration-signin a { color:#426fd5; font-weight:800; }

/* Registration and editing retain all original field names, POST actions and validation. */
.dw-registration-layout { display:grid; grid-template-columns:minmax(0,1fr) 275px; align-items:start; gap:20px; }
.dw-registration-form-card { min-width:0; background:#fff; border:1px solid #e1e6ef; border-radius:16px; padding:24px; }
.dw-edit-form-card { max-width:1060px; }
.dw-form-card-heading { margin-bottom:18px; padding-bottom:15px; border-bottom:1px solid #edf0f5; }
.dw-step-pill { color:#c83a71; background:#fff0f5; display:inline-flex; padding:6px 9px; border-radius:7px; font-size:11px; font-weight:850; letter-spacing:.03em; }
.dw-form-card-heading h2 { color:#243145; font-size:21px; margin:10px 0 6px; line-height:1.25; font-weight:850; }
.dw-form-card-heading p { color:#66758b; font-size:13px; line-height:1.55; margin:0; }
.dw-registration-aside { background:#fff; border:1px solid #e3e7f0; border-radius:15px; padding:21px; position:sticky; top:18px; }
.dw-registration-aside h2 { color:#27364c; font-size:18px; margin:0 0 12px; }
.dw-registration-aside p,.dw-registration-aside li { color:#65738a; font-size:13px; line-height:1.6; }
.dw-registration-aside ul { list-style:none; margin:14px 0; padding:0; }
.dw-registration-aside li { position:relative; padding:0 0 7px 18px; }
.dw-registration-aside li::before { content:'✓'; position:absolute; left:0; color:#2fad78; }
.dw-privacy-tip { background:#eef4ff; padding:13px; border-radius:9px; color:#3f5d90; font-size:12px; line-height:1.5; }
.dw-form-success { background:#edfbf3; border:1px solid #bce8cf; border-radius:10px; padding:13px; color:#245e41; font-size:14px; }
.dw-form-success a { color:#315fb8; }
.dw-account-ui .register-form { float:none; width:100%; max-width:100%; }
.dw-account-ui .register-form > .mandatory { display:block; float:none; width:auto; color:#69758a; font-size:12px; margin:0 0 15px; }
.dw-account-ui .register-form .dw-registration-field { display:grid; grid-template-columns:minmax(140px,30%) minmax(0,1fr); gap:15px; padding:14px 16px; background:#f8fafc; border-color:#e3eaf3; box-shadow:none; border-radius:11px; }
.dw-account-ui .register-form .dw-registration-field:focus-within { background:#fff; border-color:#f6a0bb; box-shadow:0 0 0 2px rgba(255,85,136,.09); }
.dw-account-ui .register-form .dw-registration-field > .form-label label { color:#29384d; font-weight:800; font-size:13px; }
.dw-account-ui .register-form .dw-registration-field > .form-label small { color:#788599; font-size:12px; }
.dw-account-ui .register-form .dw-registration-field .form-input .input.longinput,
.dw-account-ui .register-form .dw-registration-field .form-input select,
.dw-account-ui .register-form .dw-registration-field .form-input textarea { width:100%; max-width:100%; min-height:44px; border:1px solid #dce4ef; background:#fff; border-radius:8px; padding:10px 12px; color:#243145; font-size:14px; }
.dw-account-ui .register-form .dw-registration-field .form-input textarea { min-height:140px; }
.dw-account-ui .register-form .dw-registration-field .form-input input[type=radio],
.dw-account-ui .register-form .dw-registration-field .form-input input[type=checkbox] { accent-color:#ff5588; }
.dw-account-ui .register-form .dw-registration-field .form-input .input.smallinput { width:95px; max-width:95px; min-height:43px; }
.dw-account-ui .register-form #register_submit { background:#ff5588; border:0; border-radius:10px; color:#fff; min-height:46px; padding:12px 30px; font-size:15px; font-weight:800; cursor:pointer; }
.dw-account-ui .register-form #register_submit:hover { background:#ee4479; }
.dw-account-ui .register-form .dw-register-services { width:100%; }
.dw-account-ui form.form-styling .dw-registration-field { display:grid; grid-template-columns:minmax(140px,30%) minmax(0,1fr); gap:15px; align-items:center; padding:14px 16px; margin:0 0 10px; border:1px solid #e3eaf3; background:#f8fafc; border-radius:11px; }
.dw-account-ui form.form-styling .dw-registration-field:focus-within { border-color:#f6a0bb; background:#fff; }
.dw-account-ui form.form-styling .dw-registration-field > .form-label,
.dw-account-ui form.form-styling .dw-registration-field > .form-input { float:none; min-width:0; width:100%; }
.dw-account-ui form.form-styling .dw-registration-field > .form-label label { font-weight:800; color:#29384d; font-size:13px; }
.dw-account-ui form.form-styling .dw-registration-field > .form-label small { color:#788599; font-size:12px; }
.dw-account-ui form.form-styling .dw-registration-field > .formseparator { display:none; }
.dw-account-ui form.form-styling .dw-registration-field > .form-input input.input:not([type=radio]):not([type=checkbox]),
.dw-account-ui form.form-styling .dw-registration-field > .form-input textarea,
.dw-account-ui form.form-styling .dw-registration-field > .form-input select { max-width:100%; border:1px solid #dce4ef; color:#243145; background:#fff; min-height:43px; border-radius:8px; padding:9px 11px; font-size:14px; box-sizing:border-box; }
.dw-account-ui form.form-styling .dw-registration-field > .form-input .longinput { width:100%; }
.dw-account-ui .register-form-ag #dw-agency-area,
.dw-account-ui .register-form-ag .dw-registration-field .form-input > .select2-container { width:100%!important; max-width:100%; min-width:0; }
.dw-account-ui .register-form-ag .dw-registration-field .form-input > .select2-container .select2-selection { min-height:43px; display:flex; align-items:center; border-radius:8px; border-color:#dce4ef; }
.dw-account-ui .register-form-ag .dw-registration-field .dw-area-hint { display:block; margin-top:9px; color:#b02f57; font-size:12px; }
.dw-account-ui form.form-styling .registersubmit { background:#ff5588; color:#fff; border:0; border-radius:9px; padding:12px 26px; min-height:45px; font-size:14px; font-weight:800; cursor:pointer; }

/* Bring other existing role-specific account tools into the same visual system. */
body.dw-account-ui .contentwrapper { float:none; width:100%; }
body.dw-account-ui .contentwrapper > .body { width:84%; max-width:1580px; margin:28px auto 55px; padding:0; box-sizing:border-box; }
body.dw-account-ui .contentwrapper > .body > .bodybox { background:#fff; border:1px solid #e1e8f1; border-radius:15px; padding:25px; box-sizing:border-box; overflow:visible; }
body.dw-account-ui .contentwrapper > .body > .bodybox > h3 { color:#243144; font-size:23px; font-weight:850; }
body.dw-account-ui .sidebar-left { display:none!important; }
body.dw-account-ui .sidebar-right { display:none!important; }

/* Private location picker; map never returns the typed address to public visitors. */
.dw-account-ui .dw-registration-field.dw-map-location-field { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; align-items:stretch; }
.dw-account-ui .dw-map-location-field > .form-label,
.dw-account-ui .dw-map-location-field > .form-input { grid-column:1/-1; width:100%; min-width:0; }
.dw-account-ui .dw-map-location-field > .form-label label { line-height:1.3; margin-bottom:5px; }
.dw-account-ui .dw-map-location-field > .form-label small { line-height:1.45; }
.dw-map-form { display:block; width:100%!important; max-width:100%; min-width:0!important; float:none!important; box-sizing:border-box; }
.dw-map-form-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:stretch; width:100%; }
.dw-map-form-controls input[type=text] { width:100%!important; min-width:0; max-width:none!important; box-sizing:border-box; }
.dw-map-form-controls button,.dw-utility-action { flex:0 0 auto; padding:10px 15px; border-radius:9px; border:0; color:#fff; background:#426fd5; cursor:pointer; font-weight:800; font-size:13px; }
.dw-map-form-controls button:disabled { opacity:.6; cursor:wait; }
.dw-map-picker { display:block; height:300px; width:100%; min-width:0; max-width:100%; box-sizing:border-box; border:1px solid #dfe6f0; border-radius:10px; overflow:hidden; background:#eef2f8; color:#69788b; margin:10px 0; }
.dw-map-results { font-size:12px; color:#5a6a81; line-height:1.5; margin:8px 0; }
.dw-map-result { display:block; width:100%; background:#f3f6fb; border:1px solid #dfe6f0; border-radius:8px; padding:10px; font-size:12px; color:#273a57; text-align:left; margin:5px 0; cursor:pointer; }
.dw-map-result:hover { background:#e6edfc; }
.dw-map-consent { display:flex; align-items:center; gap:9px; color:#33455e; font-size:13px; font-weight:750; padding:11px 0 5px; }
.dw-map-private-note { display:block; color:#6f7e92; font-size:11px; line-height:1.55; }

/* Public category hubs and agencies. */
.dw-hub-page,.dw-map-page,.dw-agencies-container { background:#fff; }
.dw-hub-intro { margin:0 0 23px; }
.dw-hub-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.dw-hub-card { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 18px; background:#f7f9fd; border:1px solid #e4eaf3; border-radius:12px; color:#27364a; text-decoration:none; font-size:14px; font-weight:750; }
.dw-hub-card:hover { background:#edf3ff; color:#2c60c5; border-color:#b8c9e9; }
.dw-hub-arrow { color:#ff5588; font-size:19px; }
.dw-hub-footer { margin-top:28px; }
.dw-hub-footer a { color:#426fd5; font-weight:800; }
.dw-hub-empty { background:#f5f8fc; border-radius:12px; padding:18px; color:#65748a; }
.dw-map-hero { display:flex; justify-content:space-between; align-items:center; gap:22px; margin-bottom:18px; }
.dw-map-hero p { max-width:680px; }
.dw-public-map { height:min(65vh,620px); min-height:350px; border:1px solid #dfe6f0; border-radius:16px; overflow:hidden; background:#f0f3f9; }
.dw-map-status { color:#67768b; font-size:13px; margin:14px 0 21px; }
.dw-map-subheading { color:#223047; font-size:23px; margin:20px 0 13px; }
.dw-map-profile-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.dw-map-profile-link { display:flex; flex-direction:column; gap:5px; min-width:0; padding:14px; border:1px solid #e1e8f2; border-radius:11px; background:#fff; text-decoration:none; }
.dw-map-profile-link strong { color:#27364b; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dw-map-profile-link span { color:#72839b; font-size:12px; }
.dw-map-profile-link:hover { border-color:#95b5ee; background:#f6f9ff; }
.dw-map-disclaimer { color:#8c98ab; font-size:11px; margin:24px 0 0; }
.dw-map-disclaimer a { color:#617cae; }

.dw-agency-intro { margin-bottom:20px; }
.dw-agency-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dw-agency-card { min-width:0; border:1px solid #e3e9f1; border-radius:15px; background:#fff; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 3px 18px rgba(32,48,76,.04); }
.dw-agency-photo { display:block; height:185px; width:100%; background:linear-gradient(120deg,#cfd9ef,#f8d9e4); overflow:hidden; }
.dw-agency-photo img { height:100%; width:100%; object-fit:cover; display:block; }
.dw-agency-placeholder { height:100%; display:grid; place-items:center; color:#7a4967; font-size:45px; font-weight:800; }
.dw-agency-card-body { padding:19px; display:flex; flex-direction:column; flex:1; }
.dw-agency-card-body h2 { color:#223047; font-size:19px; margin:0 0 7px; line-height:1.3; }
.dw-agency-card-body .dw-agency-location { color:#486cc2; font-size:12px; font-weight:750; margin:0 0 11px; }
.dw-agency-card-body p { color:#66748a; line-height:1.6; font-size:13px; margin:0 0 18px; }
.dw-agency-card-body a { align-self:stretch; margin-top:auto; text-align:center; display:block; background:#426fd5; border-radius:9px; color:#fff; font-weight:800; text-decoration:none; padding:11px; }
.dw-agency-pagination { display:flex; gap:8px; margin-top:22px; flex-wrap:wrap; }
.dw-agency-pagination .page-numbers { padding:9px 12px; border:1px solid #dfe6f0; border-radius:8px; text-decoration:none; color:#4162a2; font-size:13px; }
.dw-agency-pagination .current { background:#ff5588; color:#fff; border-color:#ff5588; }

@media (max-width:1200px) { .dw-registration-choices { grid-template-columns:repeat(2,minmax(0,1fr)); } .dw-hub-cards,.dw-map-profile-list { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) { .dw-registration-layout { grid-template-columns:1fr; } .dw-registration-aside { position:static; } .dw-dashboard-grid,.dw-agency-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .dw-legacy-account-nav { width:calc(100% - 28px); margin:14px auto -7px; }
  .dw-account-container,.dw-utility-container,.dw-agencies-container { width:calc(100% - 28px); padding:20px 0 100px; }
  body.dw-account-ui .contentwrapper > .body { width:calc(100% - 28px); margin:18px auto 90px; }
  body.dw-account-ui .contentwrapper > .body > .bodybox { padding:16px; }
  .dw-dashboard-greeting { padding:20px; }
  .dw-dashboard-grid { gap:11px; }
  .dw-registration-form-card { padding:15px; }
  .dw-account-ui .register-form .dw-registration-field { grid-template-columns:1fr; gap:8px; padding:13px; }
  .dw-account-ui form.form-styling .dw-registration-field { grid-template-columns:1fr; gap:8px; padding:13px; }
  .dw-account-ui .register-form .dw-registration-field .form-input select { max-width:100%; }
  .dw-registration-choices { grid-template-columns:1fr; }
  .dw-hub-cards,.dw-map-profile-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dw-public-map { min-height:330px; height:55dvh; }
  .dw-map-hero { align-items:flex-start; flex-direction:column; }
  .dw-agency-grid { grid-template-columns:1fr; }
}
@media (max-width:500px) {
  .dw-account-heading h1,.dw-utility-container h1,.dw-agencies-container h1 { font-size:26px; }
  .dw-dashboard-greeting { padding:20px 17px; }
  .dw-dashboard-avatar { width:45px; height:45px; flex-basis:45px; border-radius:12px; font-size:24px; }
  .dw-dashboard-grid { grid-template-columns:1fr; }
  .dw-dashboard-card { padding:18px; }
  .dw-dashboard-note { flex-direction:column; align-items:flex-start; gap:5px; }
  .dw-hub-cards { gap:7px; }
  .dw-hub-card { padding:13px 10px; font-size:12px; }
  .dw-map-form-controls { grid-template-columns:minmax(0,1fr); }
  .dw-map-form-controls button { width:100%; }
  .dw-map-picker { height:255px; }
  .dw-registration-aside { display:none; }
}
