/*
Theme Name:   LEA Ejerskifteportal
Theme URI:    http://supertusch.dk/theme/leaejer/
Description:  Basically Bootstrap 5 Child Theme created for LEA
Author:       Supertusch
Author URI:   http://supertusch.dk
Template:     basically-bootstrap-5
Version:      1.0.0
Domain Path: /languages/
Text Domain:  leaejer
*/



@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@500&display=swap');





/* ---------------------------------- */
/*   VARIABLES                        */
/* ---------------------------------- */


/* === COLORS === */

.dash-content {
  --color-bg: #F8F6F4;
  /* Light background for containers */
  --color-bg-accent: #EDE8E3;
  /* Slightly darker variation of bg, for hovers or accents  */
  --color-bg-gray: #F4F4F5;
  /* Gray used for table heading background, disabled inputs, various backgrounds */
  --color-white: #ffffff;
  /* Full white, used for body background */


  --color-primary: #6F3272;
  /* Main brand purple – used for buttons, logo, etc. */
  --color-primary-light: #893D8E;
  /* Lighter variation of brand purple - used for hovers */
  --color-primary-lightest: #C06CC9;
  /* Lighter variation of brand purple - used for hovers */
  --color-primary-dark: #3C143E;
  /* Darker variation of brand purple - used for contrast */


  --color-text-heading: #3C143E;
  /* Dark purple – heading text */
  --color-text-body: #796E6B;
  /* Brown tone – standard paragraph text */
  --color-text-light: #9C9CA2;
  /* Light gray – placeholders, hints */
  --color-text-medium: #52525B;
  /* Gray – subheadings, tooltip icons */
  --color-text-dark: #18181B;
  /* Near-black – high contrast text */


  --color-red: #EF4444;
  /* Red used for validation */
  --color-red-light: #FEE2E2;
  /* Lighter variation of red used for validation */
  --color-green: #10B981;
  /* Green used for validation */

  --color-border: #E4E4E7;
  /* Light gray – borders, dividers, accents */
}


/* === TYPOGRAPHY === */
.dash-content {
  --font: "Inter Tight", sans-serif;
  --font-mono: "Geist Mono", monospace;
  --font-display: "Rebond", sans-serif;
  --font-block: "DM sans", sans-serif;

  --font-h1-hero: clamp(2rem, 5vw + 1rem, 4.5rem);
  /* 72px max */
  --font-h1: clamp(2rem, 4vw + 1rem, 2.5rem);
  /* 40px max */
  --font-h2: clamp(1.75rem, 3.5vw + 0.5rem, 2rem);
  /* 32px max */
  --font-h3: clamp(1.5rem, 2.5vw + 0.5rem, 1.5rem);
  /* 24px fixed */

  --font-body: clamp(1rem, 1.5vw + 0.25rem, 1rem);
  /* 16px fixed */
  --font-body-small: clamp(0.875rem, 1vw + 0.2rem, 0.875rem);
  /* 14px */
  --font-body-large: clamp(1.125rem, 2vw + 0.25rem, 1.125rem);
  /* 18px */

  --font-label: clamp(0.875rem, 1vw + 0.2rem, 0.875rem);
  /* 14px */
  --font-input: clamp(1rem, 1.5vw + 0.25rem, 1rem);
  /* 16px */
  --font-placeholder: clamp(1rem, 1.5vw + 0.25rem, 1rem);
  /* 16px */
}




/* === OTHER === */

.dash-content {
  --border: 1px solid var(--color-border);
  --border-dashed: 1px dashed var(--color-border);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-round: 1000px;

  --box-shadow: 0px 1px 2px 0px rgba(18, 18, 23, 0.05);


  --tagify-dd-color-primary: var(--color-primary);
  /* --tagify-dd-bg-color	    : var(--color-primary); */
}







/* ---------------------------------- */
/*   FONTS                            */
/* ---------------------------------- */




body {
  font-family: var(--font);
  font-weight: 500;
}

.dash-content {
  font-family: var(--font);
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: var(--font-h1);
  color: var(--color-text-heading);
}

h2 {
  font-size: var(--font-h2);
  color: var(--color-text-heading);
}

h3 {
  font-size: var(--font-h3);
  color: var(--color-text-heading);
}

h3.quote {
  line-height: 140%;
}

p,
span {
  font-size: var(--font-body);
  color: var(--color-text-body);
}

small,
p.small,
a.small,
span.small {
  font-size: var(--font-body-small);
}

small {
  color: var(--color-text-medium);
}

p.large,
a.large {
  font-size: var(--font-body-large);
}

p:last-child,
blockquote,
figure {
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: var(--color-text-body);
  font-weight: 500;
}

a.download {
  color: var(--color-primary-light);
  display: flex;
  grid-gap: 8px;
  align-items: center;
}

a.download:hover {
  color: var(--color-primary);
}


/* ---------------------------------- */
/*   GENERAL / CONTAINERS             */
/* ---------------------------------- */

main {
  width: 100%;
}

.dash-content main {
  margin-left: 260px;
  /* WIDTH OF SIDEBAR / ASIDE */

}


body.page-template-page-login {
  height: 100vh;
  /* overflow: hidden; */
}

body.page-template-page-login main {
  margin-left: 0;
}

section {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}


.content-wrapper,
.centered-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.content-wrapper {
  padding: 40px;
}

.content-wrapper.centered {
  align-items: center;
}

.centered-wrapper {
  max-width: 700px;
}

.header-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.header-grid {
  display: flex;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}





/* ---------------------------------- */
/*   QUOTE PAGE HEADER                */
/* ---------------------------------- */
#page-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.logo .site-logo {
  display: block;
}

.logo,
.logo img {
  width: 55px;
}

h1.small {
  font-size: 18px;
}

.help-frame {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-frame i,
.help-frame p {
  color: var(--color-primary-light);
}

.offer-wrapper {
  display: flex;
}

.offer-body {
  padding: 40px;
}

.offer-sidebar {
  padding: 64px 40px;
  position: sticky;
  top: 24px;
}

.offer-details {
  display: flex;
  padding: 24px 80px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex: 1 0 0;
}

section.offer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  align-self: stretch;
}

section.offer-info .intro-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insurance-price-box {
  width: 100%;
  margin-top: 15px;
}

.insurance-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.insurance-details-row {
  display: flex;
  padding: 16px 0;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-bottom: var(--border);
}

.insurance-details-row:last-child {
  border-bottom: none;
}

.insurance-details-row p {
  font-size: var(--font-body) !important;
  color: var(--color-text-dark) !important;
}

.insurance-details-row span.purple,
.insurance-details-row i {
  color: var(--color-primary-light) !important;
}

h4.daekning-label {
  margin-left: 10px;
  margin-bottom: 0;
  font-size: var(--font-body) !important;
}

h4.daekning-label-info {
  margin-left: 36px !important;
  font-size: 12px !important;
  color: var(--color-text-body) !important;
  line-height: 140%;
}


/* ---------------------------------- */
/*   SIDEBAR / NAVIGATION             */
/* ---------------------------------- */

/* TEMPORARY HIDING SIDEBAR ON LOGIN PAGE */
.page-id-0 aside.sidebar,
.page-template-page-login aside.sidebar {
  display: none;
}

/* TEMPORARY HIDING SIDEBAR ON LOGIN PAGE */


aside.sidebar {
  background: var(--color-bg);
  padding: 32px 24px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  row-gap: 34px;
  height: 100%;
  position: fixed;
}

aside.sidebar a.site-logo {
  padding: 0px 12px;
}

aside.sidebar nav,
aside.sidebar ul {
  height: 100%;
}

aside.sidebar li.log-out {
  margin-top: auto;
}

aside.sidebar ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  margin: 0px;
}

aside.sidebar li {
  padding: 8px 12px;
  transition: .4s ease;
  border-radius: var(--border-radius-md);
}

aside.sidebar li:hover,
aside.sidebar li.current_page_item,
aside.sidebar li.current-menu-item,
aside.sidebar li.current-page-ancestor {
  background-color: var(--color-bg-accent);
}

aside.sidebar li:hover a,
aside.sidebar li.current_page_item a,
aside.sidebar li.current-menu-item a,
aside.sidebar li.current-page-ancestor a {
  color: var(--color-primary);
}

aside.sidebar li a {
  display: flex;
  align-items: center;
  grid-gap: 8px;
}




/* ---------------------------------- */
/*   LOGIN PAGE                       */
/* ---------------------------------- */

.login-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
  width: 100vw;
  background-image: url('/wp-content/themes/leaejer/assets/img/login-swirl.svg');
  background-repeat: no-repeat;
}

.login-wrapper .logo {
  width: fit-content;
}

.login-wrapper .login-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 100px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  grid-gap: 20px;

}

.login-img h3 {
  color: white;
}

.login-img p {
  color: white;
  margin: 0;
}

.login-img img {
  width: 136px;
}

.login-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  grid-gap: 40px;
}

.login-content .form-wrapper,
.login-header {
  width: 100%;
}

.login-header {
  max-width: 520px;
  display: flex;
  grid-gap: 40px;
  flex-direction: column;
}

.login-wrapper .form-wrapper {
  max-width: 520px;
}

.login-wrapper .tml-rememberme-wrap {
  display: none;
}

.login-wrapper .tml-submit-wrap {
  display: flex;
  justify-content: flex-end;
}

.form-wrapper ul {
  list-style: none;
  padding: 0;
}

.mobile-message.card {
  display: none;
  /* soft red background */
  /* main red for text */
  padding: 1rem;
  border-radius: 6px;
  justify-content: flex-start;
  background-color: var(--color-bg);
  border-radius: var(--border-radius-md);
  border-left: none;
  border: none;
  color: var(--color-text-body);
}

@media (max-width: 1023px) {

  .page-template-page-login .form-wrapper {
    display: none;
  }

  section.login-wrapper {
    grid-template-columns: 1fr;
  }

  section.login-wrapper .login-img {
    display: none;
  }

  .mobile-message.card {
    display: block;
  }

  .login-wrapper #magic-login-shortcode .message {
    display: none;
  }
}

/* ---------------------------------- */
/*   MAGIC LOGIN OVERRIDES            */
/* ---------------------------------- */

.login-wrapper #magic-login-shortcode {
  width: 100%;
}

.login-wrapper .magic_login_block_login_success {
  color: var(--color-text-body);
}

.login-wrapper #magic-login-shortcode .message,
.login-wrapper #magic-login-register .registration_result .info {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-md);
  border-left: none;
  border: none;
  font-size: var(--font-body-small);
}

.login-wrapper #magic-login-shortcode label {
  margin-bottom: 0;
}

.login-wrapper #magic-login-shortcode form {
  row-gap: 8px;
}

.login-wrapper #magic-login-shortcode .magic-login-submit {
  margin-top: 12px;
  margin-bottom: 12px;
}

.login-wrapper a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: .4s ease;
}

.login-wrapper a:hover {
  color: var(--color-primary-light);
}

.login-wrapper #magic-login-shortcode .input {
  padding: 0px 12px;
}

.login-wrapper #magic-login-register #magic_login_registration_form {
  padding: 0;
  background: transparent;
  border: none;
}

.login-wrapper #magic_login_registration_form p {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.login-wrapper #magic_login_registration_form input[type=email],
.login-wrapper #magic_login_registration_form input[type=text] {
  width: 100%;
}

.login-wrapper #magic_login_registration_form p {
  margin-bottom: 0;
}

.login-wrapper #magic_login_registration_form .form-group p:first-child {
  margin-right: 0;
}

.login-wrapper #magic_login_registration_form .form-group {
  flex-direction: row;
  grid-gap: 8px;
}

/* ---------------------------------- */
/*   FORM STYLING                     */
/* ---------------------------------- */

select {
  -webkit-appearance: none;
  background-image: url('./assets/img/caret-down-bold.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 12px);
}

form {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  width: 100%;
}

form input,
form select,
form textarea {
  height: 56px;
  border-radius: var(--border-radius-md);
  padding: 0px 12px;
  border: var(--border);
  outline: none;
  transition: border-color .4s ease;
  width: 100%;
  box-shadow: var(--box-shadow);
}

form textarea {
  height: 100px;
  padding: 12px;
}



form input:disabled,
form input:read-only {
  background-color: var(--color-bg-gray);
  color: var(--color-text-medium);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--color-text-light);
}

form input:focus {
  border-color: var(--color-primary);
}

form label {
  font-size: var(--font-body-small);
  font-weight: 500;
  color: var(--color-text-dark);
}

.tml form label.tml-label {
  margin: 0px 0px 8px 0px;
}

.tml form .tml-field-wrap {
  margin-bottom: 0;
}

form button {
  padding: 0px 20px;
  height: 54px;
  font-size: 18px;
  border-radius: var(--border-radius-lg);
}

.form-grid {
  display: flex;
  grid-gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.form-group label {
  display: flex;
  align-items: center;
  grid-gap: 6px;
}

.form-group a {
  color: var(--color-primary);
}

.form-group .form-tooltip {
  display: flex;
  align-items: center;
}

.input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.input-wrapper .prefix {
  position: absolute;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0px 12px;
  background-color: var(--color-bg-gray);
  color: var(--color-text-medium);
  border-radius: var(--border-radius-md) 0px 0px var(--border-radius-md);
  height: calc(100% - 2px);
  margin-left: 1px;
}

input#sale-price {
  padding-left: 108px;
}

.case-wrapper .input-wrapper .prefix {
  background-color: #dfdfe1;
}


.files-label {
  margin-bottom: 8px;
}


.option-card {
  border: var(--border);
  border-radius: var(--border-radius-md);
  display: flex;
  transition: all .4s ease;
}

.option-card:has(input:checked) {
  border-color: var(--color-primary-light);
}

.option-card .option-content {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.option-card .option-content .option-title {
  color: var(--color-text-dark);
}

.option-card .option-content span {
  color: var(--color-text-medium);
}


.option-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 0px 24px 0px 12px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}


.option-card .option-icon {
  height: 104px;
  min-width: 104px;
  width: 104px;
  background-color: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md) 0px 0px var(--border-radius-md);
}

.option-card .option-icon i {
  font-size: 32px;
  color: var(--color-text-medium);
}



.radio-row input[type="radio"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  cursor: pointer;
}

.package-group {
  display: flex;
  grid-gap: 8px;
}

.package-group fieldset {
  width: 100%;
}

.package-group .custom-radio {
  display: none;
}

.package {
  transition: .4s ease;
  cursor: pointer;
}

.radio-row span {
  font-weight: 600;
}

.package.is-active .radio-row span {
  color: var(--color-primary);
}

.package {
  position: relative;
}

.package-legend {
  margin-bottom: 20px;
}

.package div.label {
  font-size: 12px;
  background-color: var(--color-primary-lightest);
  padding: 4px 12px;
  width: fit-content;
  border-radius: 6px;
  color: white;
  display: none;
}

.package label.radio-row {
  flex-direction: column;
  row-gap: 6px;
  align-items: flex-start;
}

.package .form-tooltip .tooltip-text {
  width: 250px;
}

.package.popular-package.is-active div.label {
  display: block;
}

.package.is-active::before {
  content: '';
  display: block;
  background-image: url(/wp-content/themes/leaejer/assets/img/lea-logo-simple.svg);
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  background-size: 150%;
  background-position: 148px bottom;
  opacity: 0.05;
  z-index: -1;
}

.package .suboptions {
  position: relative;
  z-index: 10;
}



/* Suboption radio row (replaces .radio-pill look) */
.subradio-row {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .35rem;
  border-radius: .5rem;
  cursor: pointer;
  user-select: none;
}

/* Hide native input but keep it accessible */
.subradio-row>input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: fit-content;
}

/* The custom radio circle */
.custom-subradio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-primary);
  /* outline color */
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.subradio-row span {
  color: var(--color-primary);
}

/* Inner dot that scales in when selected */
.custom-subradio .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform .12s ease;
  background: var(--color-primary);
  /* dot color */
}

/* When checked: show the dot */
.subradio-row>input[type="radio"]:checked+.custom-subradio .dot {
  transform: scale(1);
}

/* Hover/active feedback on the whole row */
.subradio-row:hover .custom-subradio {
  border-color: var(--color-primary);
}

.subradio-row span {
  font-size: 14px;
}

/* Keyboard focus ring */
/* .subradio-row>input[type="radio"]:focus-visible+.custom-subradio {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
} */

/* Disabled state */
.subradio-row>input[type="radio"]:disabled+.custom-subradio {
  border-color: #cbd5e1;
  opacity: .6;
}

.subradio-row>input[type="radio"]:disabled~span:last-child {
  color: #94a3b8;
  cursor: not-allowed;
}

/* Optional: a subtle selected background for the row */
/* .subradio-row:has(> input[type="radio"]:checked) {
  background: #eef2ff;
} */

/* Layout for the group */
.level-group {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}





/* === CHECKBOXES === */


form input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked+.custom-checkbox,
input[type="checkbox"]:checked+label .custom-checkbox {
  background-color: var(--color-primary-light);
}


input[type="checkbox"]:checked+label .checkmark,
input[type="checkbox"]:checked+.custom-checkbox .checkmark {
  transform: scale(1);
}

.checkbox-label {
  cursor: pointer;
  color: var(--color-text-body);
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: var(--border);
  border-color: var(--color-primary-light);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all .3s ease;
}

.checkmark {
  transform: scale(0);
  display: flex;
  color: white;
  font-size: 12px;
  transition: transform .3s ease;
}



/* === TAGIFY / CUSTOM INPUT FOR MULTIPLE EMAILS === */


.custom-tagify {
  --tags-border-color: var(--color-border);
  --tags-focus-border-color: var(--color-primary);
  --tag-border-radius: var(--border-radius-round);
  --tag-bg: var(--color-bg-gray);
  --tag-text-color: var(--color-text-medium);
  --tag-remove-bg: var(--color-red-light);
  --tag-invalid-bg: var(--color-red-light);
  --tag-remove-btn-color: var(--color-text-medium);

  --tagify-dd-color-primary: var(--color-primary);
  --tagify-dd-bg-color: var(--color-primary);

  --tag-hover: #DEDEDE;
  --tag-pad: 6px 12px;


  padding: 8px;
  width: 100%;
  border-radius: var(--border-radius-md);
}


.custom-tagify .tagify__tag {
  font-weight: 600;
}

.custom-tagify .tagify__tag-text {
  color: var(--color-text-medium);
}

.custom-tagify .tagify__tag__removeBtn {
  font: unset;
  font-size: 16px;
  height: 16px;
  width: 16px;
  line-height: 1;
  margin-right: 8px;
}




/* ---------------------------------- */
/*              ELEMENTS              */
/* ---------------------------------- */

/* === BUTTONS === */

.btn,
form button,
#magic-login-shortcode form .magic-login-submit,
#magic-login-register form input[type=submit] {
  display: flex;
  align-items: center;
  background: var(--color-primary);
  color: white;
  width: fit-content;
  transition: background .4s ease, gap .4s ease;
  border: none;
  grid-gap: 8px;
}

.btn,
form button span {
  color: white;
}

.btn,
#magic-login-shortcode form .magic-login-submit,
#magic-login-register form input[type=submit] {
  padding: 0px 12px;
  height: 40px;
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: center;
}

.btn.large,
form button.large,
#magic-login-shortcode form .magic-login-submit,
#magic-login-register form input[type=submit] {
  height: 54px;
}

.btn.secondary-btn {
  background-color: white;
  color: var(--color-text-dark);
  border: var(--border);
}

.btn.secondary-btn i {
  color: var(--color-primary-lightest);
}

.btn.secondary-btn:hover {
  background-color: #fbf7f7;
  /* TEMPORARY */
  color: var(--color-text-dark);
}


.btn:hover,
form button:hover,
#magic-login-shortcode form .magic-login-submit:hover {
  background-color: var(--color-primary-light);
  color: white;
  grid-gap: 12px;
}

button:disabled {
  pointer-events: none;
  opacity: .65;
}

#submit-btn,
#add-documents,
#save-buyer {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 44px;
  overflow: hidden;
  font-size: 16px;
}

#submit-btn .btn-content,
#add-documents .btn-content,
#save-buyer .btn-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* space between text and spinner */
}

#submit-btn .spinner,
#add-documents .spinner,
#save-buyer .spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}

#submit-btn .spinner .path,
#add-documents .spinner .path,
#save-buyer .spinner .path {
  stroke: #FFFFFF;
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
}

#submit-btn.loading .spinner,
#add-documents.loading .spinner,
#save-buyer.loading .spinner {
  display: inline-block;
}

#submit-btn.loading .text,
#add-documents.loading .text,
#save-buyer.loading .text {
  opacity: 0.6;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}




/* === STATUS LABEL === */

.status-label {
  color: var(--color-text-medium);
  font-size: 14px;
  font-weight: 600;
  height: 32px;
  width: fit-content;
  padding: 0px 12px;
  background-color: var(--color-bg-gray);
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  grid-gap: 4px;
}

.status-label.label-blue {
  background-color: #EFF6FF;
  color: #2563EB;
}

.status-label.label-green {
  background-color: #ECFDF5;
  color: #059669;
}

.status-label.label-brown {
  background-color: #FAF5F2;
  color: #AC604A;
}

.status-label.label-purple {
  background-color: #EFF6FF;
  color: var(--color-primary);
}



/* === TOOLTIP === */


.th-tooltip,
.form-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  align-items: center;
  display: flex;
}


.th-tooltip {
  margin-left: 5px;
}

.th-tooltip .tooltip-text,
.form-tooltip .tooltip-text {
  visibility: hidden;
  width: 180px;
  background-color: var(--color-text-body);
  color: white;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  position: absolute;
  z-index: 1;
  top: 125%;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.th-tooltip:hover .tooltip-text,
.form-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* === SEPARATOR / HR === */

hr.separator {
  border: none;
  height: 1px;
  margin: 1px 0px;
  background-color: var(--color-border);
  opacity: 1;
}


/* === CARDS === */

.card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* === MODAL === */

.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
}

.modal-content {
  max-width: 600px;
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.modal-header {
  border-bottom: none;
}

.modal-header,
.modal-body {
  padding: 0;
}


/* === FORM MESSAGE / ALERT === */


.form-message {
  padding: 64px 24px;
  row-gap: 16px;
  text-align: center;
}

.form-message h2 {
  font-size: var(--font-h3);
  max-width: 350px;
}

.form-message p {
  margin-bottom: 0;
  max-width: 600px;
}

.form-message a:not(.btn) {
  color: var(--color-primary);
}


.form-message .message-icon i {
  font-size: 80px;
}

.form-message[class*="success"] .message-icon i {
  color: var(--color-green);
}

.form-message[class*="error"] .message-icon i {
  color: var(--color-red);
}

.form-message .indicative-wrapper {
  background-color: var(--color-bg-accent);
  margin: 12px 0px;
  min-width: 300px;
}

.form-message .indicative-wrapper .indicative-heading {
  background-color: #dad4ce;
}





/* ---------------------------------- */
/*              BLOCKS                */
/* ---------------------------------- */



/* === ICON CARDS === */

.icon-cards {
  display: flex;
  grid-gap: 16px;
}

.icon-card {
  border-radius: var(--border-radius-md);
  display: flex;
  padding: 20px;
  width: 100%;
  justify-content: space-between;
  border: var(--border);
}

.icon-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-card p {
  color: var(--color-text-dark);
}

.icon-card .card-icon i {
  color: var(--color-text-body);
  font-size: 24px;
}


/* === WELCOME BANNER === */

.welcome-banner {
  background-color: var(--color-bg-accent);
  border-radius: var(--border-radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.welcome-banner h1,
.welcome-banner h2 {
  margin-bottom: 8px;
}

.welcome-banner .banner-content {
  background-image: url('/wp-content/themes/leaejer/assets/img/swirl.svg');
  background-size: contain;
  background-repeat: no-repeat;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0px 32px;
  position: relative;
}

.welcome-banner img {
  width: 100%;
  object-fit: cover;
}

.welcome-banner .banner-img {
  position: relative;
}

.welcome-banner .banner-img .gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(263deg, rgba(237, 232, 227, 0.00) 25.82%, #EDE8E3 94.02%);
}

.welcome-banner .cases-summary {
  display: flex;
  grid-gap: 8px;
}


/* === CTA CARD  === */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}

.cta-cards.layout-stack .cta-card {
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 64px 48px;
  row-gap: 32px;
}

.cta-cards.layout-stack .cta-card .card-content {
  max-width: 320px;
  padding: 0;
}

.cta-cards.layout-stack .cta-card .btn {
  margin-left: 0;
}

.cta-cards.layout-stack .cta-card h3 {
  margin-bottom: 8px;
}

.cta-cards.layout-stack .cta-card img {
  width: 130px;
  object-fit: contain;
  margin-right: 0px;
}

.cta-card {
  padding: 24px;
  flex-direction: row;
}

.cta-card .card-content {
  padding-right: 20px;
}

.cta-card img {
  width: 20%;
  object-fit: contain;
  margin-right: 24px;
}

.cta-card h3 {
  margin-bottom: 4px;
}

.cta-card .btn {
  margin-left: auto;
}

/* ---------------------------------- */
/*   SEARCH AND FILTER STYLING        */
/* ---------------------------------- */

#search-filter-form-219 ul {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  padding-left: 0;
  flex-wrap: wrap;
}

#search-filter-form-219 input,
#search-filter-form-219 select {
  height: 40px !important;
}

.sf-field-search {
  display: flex;
  padding: 9px !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.cases-table .searchandfilter ul li.sf-field-search {
  padding-inline: 0 !important;
}

.cases-table .searchandfilter ul li {
  padding-block: 0 !important;
}

#search-filter-form-219 input {
  width: 450px;
}

.searchandfilter select.sf-input-select {
  padding-right: 40px;
  min-width: 0;
}



/* ---------------------------------- */
/*   TABLE STYLING                    */
/* ---------------------------------- */


table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 12px;
  grid-gap: 6px;
}

thead th.status {
  display: flex;
}

tbody td {
  color: var(--color-text-dark);
  border-bottom: 1px solid #EFEFF1;
  padding: 20px 12px;
  line-height: 140%;
}

tbody tr {
  transition: background-color .4s ease;
}

tbody tr:hover {
  cursor: pointer;
  background-color: #efeff136;
}

th {
  background-color: var(--color-bg-gray);
  color: var(--color-text-medium);
  font-weight: 500;
}


th:first-child {
  border-radius: var(--border-radius-md) 0px 0px var(--border-radius-md);
}

th:last-child {
  border-radius: 0px var(--border-radius-md) var(--border-radius-md) 0px;
}

thead th .th-tooltip {
  display: inline-block;
}




/* ---------------------------------- */
/*   SINGLE CASE                      */
/* ---------------------------------- */

.case-header {
  row-gap: 12px;
}


.case-wrapper {
  display: flex;
  grid-gap: 40px;
  flex-direction: row;
}

.case-intro {
  display: flex;
  grid-gap: 12px;
  align-items: center;
}

.case-intro p {
  margin-bottom: 0;
}


.case-wrapper .case-form {
  width: 100%;
}

.case-wrapper .case-actions {
  width: 100%;
  max-width: 340px;
  position: sticky;
  top: 24px;
  height: fit-content;
}

.case-actions {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.case-actions .action-box {
  padding: 24px;
  row-gap: 16px;
  align-items: flex-start;
}

.case-actions .action-box .action-header h3 {
  margin-bottom: 8px;
}

.case-actions .action-box h3 {
  font-size: var(--font-body-large);
}

.case-actions .action-box p {
  margin: 0;
}

.case-actions .action-box .btn {
  width: 100%;
}

.case-actions .action-box .offer-price {
  font-size: var(--font-h2);
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  background-color: var(--color-bg-accent);
  border-radius: var(--border-radius-md);
}

.action-box .action-header-grid {
  display: flex;
  grid-gap: 6px;
  align-items: center;
}


.case-form {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
}

.list-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.list-wrapper a {
  padding: 10px 0px;
}

.list-wrapper .quote-download-container,
.list-wrapper .pdf-download-container,
.list-wrapper .document-download-container {
  border-bottom: var(--border);
}

.list-wrapper .quote-download-container:last-child,
.list-wrapper .document-download-container:last-child {
  border-bottom: none;
}

.list-wrapper .quote-download-container.faded a {
  opacity: .4;
  pointer-events: none;
}




/* ---------------------------------------- */
/*   ORDER / NEW ORDER / ORDER VIA UPLOAD   */
/* ---------------------------------------- */

section.order-form {
  row-gap: 0px;
}

section.order-form .form-message {
  margin-bottom: 20px;
}

#order-form button {
  align-self: flex-end;
}


form .card {
  padding: 32px;
  row-gap: 20px;
  align-items: flex-start;
}

.indicative-wrapper {
  padding: 0px 24px 24px 24px;
  row-gap: 16px;
}

.indicative-heading {
  background-color: var(--color-bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  grid-gap: 6px;
  border-radius: 0px 0px var(--border-radius-md) var(--border-radius-md);
  font-size: var(--font-body-small);
  color: var(--color-text-body);
}

.indicative-price {
  font-size: var(--font-h1);
  color: var(--color-primary-dark);
}

.uploads-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.upload-box {
  padding: 8px;
  border-radius: var(--border-radius-md);
  border: var(--border);
  position: relative;
}

.upload-box label {
  grid-gap: 24px;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  left: 0;
  top: 0;
  opacity: 0;
}

.upload-box .upload-icon {
  width: 104px;
  height: 104px;
  background-color: var(--color-bg-gray);
  border-radius: var(--border-radius-sm);
  border: var(--border-dashed);
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-box .upload-icon i {
  font-size: 32px;
  color: var(--color-text-medium);
}

.upload-box .upload-content {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.upload-box .upload-content .file-heading {
  color: var(--color-text-dark);
  font-size: var(--font-body);
}

.upload-box .upload-content span {
  color: var(--color-text-medium);
  font-size: var(--font-body-small);
}

#special-payer-fields.hidden {
  display: none;
}

#special-payer-fields {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

#special-payer-fields hr:first-child {
  margin-bottom: 10px;
}


#special-payer-fields hr:last-child {
  margin-top: 10px;
}

/* ---------------------------------- */
/*   SINGLE CASE                      */
/* ---------------------------------- */

.pdf-download-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.pdf-download-btn:disabled,
.pdf-download-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.pdf-download-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pdf-status {
  margin-top: 8px;
  min-height: 20px;
}

/* Loading State */
.pdf-status-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 13px;
}

.pdf-status-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error State */
.pdf-download-btn {
  cursor: pointer;
}

.pdf-status-error,
.quote-status-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d63638;
  font-size: 13px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  ;
}

.error-icon {
  color: var(--color-red);
}

/* Success State */
.pdf-status-success,
.quote-status-success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
}

.success-icon {
  color: var(--color-green);
}

/* ---------------------------------- */
/*   FIK code        									*/
/* ---------------------------------- */
.insurance-price-box .price {
  background-color: #F8F8F4;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  padding-bottom: 24px;
  align-items: center;
  display: flex
}

.insurance-price-box .price-tab {
  background-color: #EDE8E3;
  padding: 4px 12px;
}

.insurance-price-box .payment-price {
  color: #3C143E;
}

.payment-code-box {
  background-color: #EDE8E3;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  padding: 24px;
  row-gap: 12px;
  text-align: center;
}

.payment-code-box .label-wrapper p {
  font-size: 12px;
}

.payment-code {
  color: #3C143E;
  font-size: 20px;
  font-weight: 500;
}


/* ---------------------------------- */
/*   404 PAGE / PAGE NOT FOUND        */
/* ---------------------------------- */


.error-404 {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--color-bg-accent);
}

.error-404 h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
}

.error-404 h2 {
  font-size: var(--font-h3);
  max-width: 500px;
}


/* ---------------------------------- */
/*   Loader overlay                   */
/* ---------------------------------- */

.page-container {
  transition: filter 240ms ease;
  /* animate the blur on/off */
}

.page-container.is-loading {
  filter: blur(5px);
}

.lea-loader {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
  position: fixed;
  pointer-events: none;
  transition: opacity 240ms ease;

  width: 100%;
  height: 100%;
}

.lea-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lea-loader img {
  width: 300px;
}


.buyer-information-form .checkbox-group label {
  grid-gap: 12px;
  align-items: flex-start;
  color: var(--color-text-body);
}

.buyer-information-form .checkbox-group span {
  font-size: var(--font-body-small);
}

.checkbox-group label a {
  color: var(--color-primary);
}

.buyer-information-form .checkbox-group label a {
  text-decoration: underline;
}

/* ---------------------------------- */
/*   Text template                    */
/* ---------------------------------- */

.page-template-page-text p {
  color: var(--color-text-dark);
}

.page-template-page-text p a {
  color: var(--color-primary);
}

.page-template-page-text p strong {
  color: var(--color-primary);
}

.text-wrapper {
  padding: 80px 0px;
}

.buyer-information-form input[type="checkbox"] {
  display: block;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 20px;
  width: 20px;
}