/* CA Legal 2026.10.24.5 | Forms / login / shared controls / dialogs */

.card-header:first-child {
  background-color: #1f4770;
}

.card-header {
  color: #ffffff;
  padding: .4rem 1.5rem;
  border-radius: 6px !important;
}

.customModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  overflow: auto;
  text-align: center;
  padding-top: 5%;
}

.customModalImg {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 20px #000;
  border-radius: 8px;
}

.customClose, .customClose2 {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.price-div {
  border: 1px solid #c8cbcf;
  background-color: #ebebeb;
  border-radius: 8px;
  padding: 10px 25px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #3f80c1;
  outline-offset: 3px;
}

.site-main :is(.card, .alert, .price-div) {
  border-radius: var(--site-radius);
}

.site-main .card {
  border-color: var(--site-border);
  box-shadow: var(--ca-shadow);
  border: 1px solid #e2e7ea;
}

.site-main .card-header {
  border-radius: var(--site-radius) var(--site-radius) 0 0 !important;
}

.site-main .card-header:first-child {
  background-color: var(--site-blue);
  background: #173a56 !important;
  border-radius: 0 !important;
  padding: 13px 18px;
}

.site-main .card-header :is(a, h1, h2, h3, h4) {
  color: #fff;
}

.site-main .card-body {
  padding: clamp(1rem, 2.1vw, 1.4rem);
}

.site-main .btn {
  white-space: normal;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 650;
  padding: 9px 16px;
}

.site-main .btn-primary {
  background-color: #233f5b;
  border-color: #233f5b;
}

.site-main .btn-primary:hover {
  background-color: var(--site-blue-dark);
  border-color: #1b344b;
  background: #1b344b;
}

.site-main .form-control, .site-main .form-select {
  min-width: 0;
  border-color: #bdccd9;
  border-radius: 8px;
}

.site-main .form-control:focus, .site-main .form-select:focus {
  border-color: #456e8a;
  box-shadow: 0 0 0 .18rem rgba(28,75,108,.1);
}

.site-main :is(.pagination, .input-group, .d-flex) {
  max-width: 100%;
}

.site-main .pagination {
  flex-wrap: wrap;
  gap: 4px;
}

.site-main :is(input, textarea, select) {
  max-width: 100%;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ca-bronze) !important;
  outline-offset: 3px;
}

.site-main :is(.ratio,.card,.price-div) {
  overflow: hidden;
  border-radius: var(--ca-radius);
}

.site-main .card-header :is(h1,h2,h3,h4,a) {
  color: white !important;
}

.site-main :is(.form-control,.form-select) {
  min-height: 45px;
  border-color: #ccd6de;
  font-size: 16px;
  border-radius: 2px;
}

.site-main .form-label {
  font-size: 15px;
  font-weight: 750;
  color: #4d6071;
}

.site-main .btn-sm {
  padding: 5px 10px;
}

.site-main .btn-secondary {
  background: #718193;
  border-color: #718193;
}

.site-main .alert {
  border-radius: 9px;
  font-size: 14px;
}

.site-main .page-link {
  color: #24445f;
  border-color: #dce3e8;
  border-radius: 5px;
}

.site-main .active > .page-link {
  background-color: var(--ca-navy);
  border-color: var(--ca-navy);
}

.site-main input[type=radio], .site-main input[type=checkbox] {
  accent-color: #264761;
}

.site-main > .container.login-page {
  padding-top: clamp(35px, 5vw, 80px);
  padding-bottom: clamp(60px, 7vw, 105px);
}

.login-shell {
  display: grid;
  grid-template-columns: .9fr 1fr;
  border: 1px solid #e1e7e9;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(19,39,58,.07);
  max-width: 930px;
  margin-inline: auto;
}

.login-side {
  background: #153650;
  color: #e7eff5;
  padding: clamp(30px, 5vw, 65px);
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.login-side::after {
  content: "";
  width: 340px;
  height: 340px;
  position: absolute;
  right: -180px;
  top: -100px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
}

.site-main .login-side h1 {
  font-size: clamp(30px, 3vw, 42px) !important;
  color: #fff !important;
  margin: 19px 0 11px;
  font-weight: 400;
}

.login-side p {
  font-size: 14px;
  color: #cbd9e3;
}

.login-side .eyebrow {
  color: #dfc198;
}

.login-side-mark {
  color: #738ca0;
  font-weight: 800;
  letter-spacing: .2em;
  margin-top: 78px;
  font-size: 12px;
}

.login-form-panel {
  padding: clamp(28px, 5vw, 60px);
  background: #fff;
}

.site-main .login-form-panel h2 {
  font-size: 31px !important;
  color: var(--ca-navy) !important;
  margin: 14px 0 29px;
  font-weight: 400;
}

.login-form-panel .form-label {
  display: block;
}

.login-form-panel .form-control {
  min-height: 49px;
}

.login-form-panel .login-submit {
  min-height: 49px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.login-help {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 26px;
  font-size: 13px;
}

.login-help a {
  color: #52677a;
}

button,input,select,textarea {
  font-family: inherit;
}

::selection {
  background: #b8d0e0;
  color: #0d283f;
}

.site-main :is(.card) {
  border-radius: 2px;
}

.site-main .login-shell {
  border-radius: 2px;
  border-color: #dce2e2;
  box-shadow: 0 20px 52px rgba(16,42,64,.1);
}
