/**************************/
/*     General Styles     */
/**************************/
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  /* Variable range */
  font-style: normal;
}

* {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0;
}

:root {
  --font-montserrat: "Montserrat", sans-serif;
  --white: #ffffff;
  --black: #000;
  --blue: #212663;
  --theme-blue: #222563;
  --purple: #8263FC;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-family: var(--font-montserrat);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-montserrat);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--black);
  /* height: 100vh;
  overflow-y: hidden; */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-montserrat);
  font-weight: 700;
}

ul {
  margin: 0;
}

a {
  text-decoration: none;
}

/* h1 {
font-size: 60px;
line-height: 78px;
} */


h1 {
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 129%;
  color: var(--white);

}

.child-pages-h1,
h2 {

  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 129%;
}

h3 {
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 27px;
  color: var(--blue);

}

h4 {
  font-size: 22px;
  line-height: 30px;
  color: var(--black);
}

h5 {
  font-size: 20px;
  line-height: 28px;
}

h6 {
  font-weight: 700;
}

p {
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  color: var(--black);
}

button {
  font-family: var(--font-montserrat);
}
button:disabled,
button:disabled:hover,
button:disabled:focus {
  background-color: #E0E0E0 !important;   /* greyed out */
  border-color: #E0E0E0 !important;
  color: #BDBDBD !important;              /* muted text */
  cursor: not-allowed;      /* disabled cursor */
  box-shadow: none;         /* remove any hover/focus shadow */
  pointer-events: none;     /* prevent hover/active events */
}

p:empty {
  display: none;
}

.bg-white {
  background-color: #fff !important;
}

.bg-light-grey {
  background: rgba(33, 38, 99, 0.06) !important;
}

.cta-purple {
  color: var(--white);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  padding: 10px 15px;
  background-color: var(--purple);
  border: 1px solid var(--purple);
  transition: all linear .3s;
}

.cta-purple:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: var(--black);
  box-shadow: 4px 4px 0 #28255a;
  transform: translate(-4px, -4px);
}

.dashboard-theme-btn {
  border-radius: 8px;
  display: inline-block;
  padding: 16px 36px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #FFFFFF;
  background: var(--purple);
  border: 1px solid var(--purple);
  transition: all linear .3s;
}

.dashboard-theme-btn:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: var(--black);
  box-shadow: 4px 4px 0 #28255a;
  transform: translate(-4px, -4px);
}


.btns-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.btns-wrapper .btn {
  background: var(--purple);
  border-radius: 8px;
  padding: 13.5px 36px;
  display: inline-block;
  min-width: 150px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  height: auto;
  color: #FFFFFF;
  cursor: pointer;
  border: 1px solid var(--purple);
  transition: all .3s;
}

.btns-wrapper .btn:hover,
.btns-wrapper .outlined-btn {
  background: #F2F2F6;
  color: #000;
  border-radius: 8px;
  transition: all .3s;
}

.btns-wrapper .outlined-btn:hover {
  background: var(--purple);
  color: #FFFFFF;
}

.chat-button {
  position: fixed;
  bottom: 50px;
  right: 61px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}


.text-start {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}

/* --- Font Colors --- */
.text-white {
  color: var(--white);
}

.text-blue {
  color: var(--blue);
}

/* --- Font Colors --- */
.w-100 {
  width: 100%;
}

.fw-700 {
  font-weight: 700 !important;
}

/* --- Space Utility Classes */
.px-3 {
  padding-inline: 1rem;
}

.pe-0 {
  padding-right: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}


/* ================================
   GLOBAL CUSTOM SCROLLBAR
=================================== */

/* Firefox */
html {
  scrollbar-width: thin;
  /* thin scrollbar */
  scrollbar-color: #8263FC #F5F5F5;
  /* thumb | track */
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #F5F5F5;
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: #6b4de0;
  /* thumb color */

  /* Make thumb visually shorter */
  min-height: 40px;
  /* minimum thumb height */
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #8263FC;
  /* slightly darker purple on hover */
}




/* ===========================================================
# =================== Welcome Page ===========================
=========================================================== */

.dashboard-onboarding-wrapper {
  background-image: url("../images/dashboard-bg-img.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.dashboard-inner-box {
  max-width: 490px;
  background-color: var(--white);
  border: 1px solid var(--purple);
  border-radius: 20px;
  padding: 29px 28px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dashboard-inner-box .top-logo {
  max-width: 141px;
  object-fit: contain;
}

.dashboard-inner-box h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--theme-blue);
    margin-top: 22px;
    margin-bottom: 20px;
}

.dashboard-inner-box .desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  color: #000000;
}

.dashboard-inner-box .desc a {
  font-weight: 600;
  text-decoration: underline;
  color: var(--theme-blue);
}

.dashboard-inner-box .btns-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-block: 20px;
}

.dashboard-inner-box .btns-wrapper a {
  background: var(--purple);
  border-radius: 8px;
  padding: 15px 36px;
  display: inline-block;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  height: 50px;
  color: #FFFFFF;
  border: 1px solid var(--purple);
  transition: all .3s;
}

.dashboard-inner-box .btns-wrapper a:hover,
.dashboard-inner-box .btns-wrapper .outlined-btn {
  background: #F2F2F6;
  color: #000;
  border-radius: 8px;
  transition: all .3s;
}


.dashboard-inner-box .btns-wrapper .outlined-btn:hover {
  background: var(--purple);
  color: #FFFFFF;
}

.dashboard-inner-box .ssl-secure-icon {
  max-width: 181px;
  object-fit: contain;
}


.sorry-content-box h1 {
  margin-top: 0;
}


/* ===========================================================
# =================== Dashboard Page =========================
=========================================================== */

.dashboard-wrapper {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: #f8f9ff;
}

/* ====== Sidebar ====== */
.dashboard-wrapper .sidebar {
  width: 280px;
  height: 100vh;
  flex: 0 0 280px;
  background: var(--theme-blue);
  color: #fff;
  padding: 28px 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  z-index: 1;
  left: 0;
}

.dashboard-wrapper .dashboard-logo {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}

.dashboard-wrapper .steps {
  list-style: none;
  margin-top: 64px;
}

.dashboard-wrapper .steps li a {
  padding: 19px 20px;
  cursor: pointer;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  display: block;
  width: 100%;
  text-decoration: none;
  transition: all .3s;
}

.dashboard-wrapper .steps li.active a,
.dashboard-wrapper .steps li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all .3s;
}

.dashboard-wrapper .steps li a:hover {
  box-shadow: 0px 0px 1px 2px #ffffff40;
}

.dashboard-wrapper .ssl-secure {
  margin: 0;
  padding: 10px 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-wrapper .ssl-secure img {
  max-width: 180px;
}

/* ====== Sidebar ====== */



/* ====== Dashboard Main ====== */

.dashboard-wrapper .main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  margin-left: 280px;
}

.dashboard-wrapper .main>* {
  flex: 0 0 auto;
  /* do not grow unnecessarily */
}

/* Top Bar */
.dashboard-wrapper .header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 40px;
  height: 90px;
  position: relative;
  border-bottom: 1px solid #eee;
  background: #FFFFFF;
  box-shadow: 0px 0px 18px 3px rgba(0, 0, 0, 0.08);
}
.dashboard-wrapper .header {
    position: fixed;
    left: 280px;
    right: 0;
    z-index: 1025;
}
.dashboard-wrapper .user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
}

.dashboard-wrapper .user-info img {
  max-width: 100%;
  height: 42px;
  border-radius: 50%;
}

.dashboard-wrapper .user-dropdown {
  position: relative;
  cursor: pointer;
  font-weight: 500;
  color: #000;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.dashboard-wrapper .user-dropdown::after {
  content: "▼";
  font-size: 12px;
  margin-left: 4px;
}

.dashboard-wrapper .dropdown-menu {
  display: none;
  position: absolute;
  top: 74px;
  right: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1000;
}

.dashboard-wrapper .dropdown-menu a {
  display: block;
  padding: 5px 15px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
  transition: all .3s;
}

.dashboard-wrapper .dropdown-menu a:hover {
  background: #f4f3ff;
  color: var(--purple);
}

.dashboard-inner-wrapper {
  position: relative;
}

.main-dashboard-wrapper::before,
.main-dashboard-wrapper::after {
    content: "";
    width: 83px;
    height: 52px;
    background-image: url("../images/icons/dashboard-shapes.svg");
    position: absolute;
    top: 140px;
    right: 40px;
}

.main-dashboard-wrapper::after {
  left: 20px;
  right: unset;
  top: unset;
  bottom: 20px;
}

.dashboard-wrapper .upload-container,
.dashboard-wrapper .dashboard-inner-wrapper {
  flex: 0 0 auto;
  padding: 85px 40px;
  text-align: center;
}
.dashboard-wrapper .upload-container, 
.dashboard-wrapper .dashboard-inner-wrapper {
    padding-top: 145px;
}
.upload-container h1 {
  color: var(--theme-blue);
}

.upload-container h2 {
  text-align: center;
  color: var(--theme-blue);

}

.upload-box-and-files {
  width: 90%;
  max-width: 560px;
  margin: auto;
}

.dashboard-wrapper .upload-box {
  border: 2px dashed #8264FD;
  border-radius: 8px;
  padding: 40px;
  margin: 40px auto 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 165%;
  transition: background 0.2s ease;
}

.dashboard-wrapper .upload-file-icon {
  max-width: 36px;
}

.dashboard-wrapper .upload-box .file-types {
  color: #5D5D5D;
}

.dashboard-wrapper .upload-box:hover {
  background: #ffffff;
}

.dashboard-wrapper #fileInput {
  display: none;
}

.dashboard-wrapper .file-list {
  margin: 20px 0;
  max-width: 300px;
  text-align: left;
}

.dashboard-wrapper .file-item {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  margin-bottom: 12px;
  border-radius: 6px;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
  position: relative;
  padding-right: 24px;
}

.dashboard-wrapper .file-item .remove-file-icon {
  position: absolute;
  top: 10px;
  right: 0;
  color: var(--purple);
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.dashboard-wrapper .upload-container .dashboard-theme-btn {
  margin-top: 30px;
}

.dashboard-wrapper .chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--purple);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .3s;
}

.dashboard-wrapper .chatbot-btn:hover {
  background: var(--theme-blue);
}

.dashboard-wrapper .chatbot-btn img {
  filter: invert(1);
  width: 24px;
}


/* ====== Dashboard Main ====== */



/* ====== Dashboard Popups ====== */

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  min-width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  left: 142px;
  width: 100%;
  max-width: 491px;
}

.popup-content-box h1 {
  color: var(--theme-blue);
  margin-bottom: 20px;
}

/* .close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
} */


.popup {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}
.popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.popup-content-box {
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transform: translateY(10px) scale(.95);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.popup.show .popup-content-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
body.no-scroll {
  overflow: hidden;
}



/* ===========================================================
# =================== Passport Details Page ==================
=========================================================== */

.passport-details-container {
  max-width: 1215px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-intro-content {
  max-width: 1004px;
  margin: auto;
  padding-inline: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}


.passport-detail-form-wrapper {
  width: 100%;
  max-width: 1250px;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  margin-bottom: 40px;
}

.form-grid .form-group-full {
  grid-column: span 2;
  /* makes Street Address full width */
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.form-group label {
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: #000000;
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-montserrat);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  height: 52px;
  background-color: #F2F2F6;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  transition: border-color 0.3s, background-color 0.3s;

}

.form-group input[type="date"],
.form-group select {
  cursor: pointer;
}

.form-group input::placeholder,
.form-group select:invalid,
.form-group input[type="date"]:invalid {
  font-family: var(--font-montserrat);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.51);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6a5af9;
  background-color: #FFFFFF;
}

.form-group select,
.resident-table td select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("../images/icons/select-caret.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  /* Add space for custom arrow */
  cursor: pointer;
}


.form-group input[type="date"],
.form-group input#moveOutDate,
body input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("../images/icons/calender-icon.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 40px;
  /* space for icon */
}

/* Hide default calendar icon in Chrome, Safari, Edge */
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
body input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  right: 0;
  width: 100%;
  /* Make whole input clickable */
  height: 100%;
}


/* Suggestions dropdown */
#suggestions {
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  border-radius: 6px;
}

#suggestions li {
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
}

#suggestions li:hover {
  background: #f0edff;
}


.passport-detail-form-wrapper .btns-wrapper {
  margin-top: 40px;
}



/* ===========================================================
# =================== Old Address Page ==================
=========================================================== */


.old-address-container .upload-container {
  padding-block: 0;
}

.old-address-container .top-intro-content {
  margin-bottom: 46px;
  max-width: 846px;
}

.old-address-container .upload-box {
  margin-bottom: 40px;
}


/* =================================================================
# =================== Invalid German Address Page ==================
================================================================= */
.invalid-address-container .top-intro-content {
  margin-bottom: 40px;
}

.registered-german-address-form {
  max-width: 540px;
  margin: auto;
}

.registered-german-address-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}


/* =================================================================
# =================== User Address Page ==================
================================================================= */

.user-address-container .top-intro-content {
  width: 100%;
  max-width: 740px;
  padding-inline: 0;
  margin-bottom: 40px;
}



/* =================================================================
# =================== Edit Old German Address Page =================
================================================================= */

/* ----- Address Card ----- */
.address-card {
  background: #fff;
  padding: 1.125rem 1.375rem;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.08); */
  max-width: 666px;
  margin: 2rem auto;
  position: relative;
}

.address-card h4 {
  margin: 0;
  font-weight: 600;
}

.address-card p {
  margin: 0;
  color: #444;
}


.address-card h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  color: var(--black);
  margin-bottom: 10px;
}

.address-card #address-text {
  font-weight: 400;
  font-size: 15px;
  line-height: 30px;
  color: var(--black);
}

.address-card .edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 24px;
  bottom: 24px;
}


/* ---- Update Address Modal ---- */
.update-address-popup .popup-content-box textarea {
  width: 100%;
  height: 120px;
  margin: 1.25rem 0 0;
  padding: 0.75rem;
  font-size: 16px;
  font-family: var(--font-montserrat);
  resize: none;
  border-radius: 8px;
  border: 1px solid var(--purple);
  outline: none;
  transition: all.3s;
}

.update-address-popup .popup-content-box textarea:focus {
  box-shadow: 0px 0 0px 2px rgb(130 100 253 / 17%);
}

.update-address-popup .btns-wrapper {
  margin-top: 1.25rem;
}

/* ---- Update Address Modal ---- */


/* =================================================================
# =================== Move Out Date Page ===========================
================================================================= */

.move-out-date-wrapper .top-intro-content {
  max-width: 540px;
  padding-inline: 0;
}

.move-out-date-form .form-grid {
  grid-template-columns: 1fr;
  max-width: 540px;
  margin-inline: auto;
}




/* =================================================================
# =================== Deregisteration Confirmation Page =================
================================================================= */


.resident-records-collection {
  max-width: 1300px;
  font-family: var(--font-montserrat);
  margin: 0 auto;
  margin-bottom: 34px;
  text-align: end;
}

.resident-records-collection.no-records {
  text-align: center;
}

.resident-records-block .top-intro-content {
  margin-bottom: 52px;
}

/* Table container */
.resident-table {
  table-layout: fixed;
  /* Fix column widths */
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-montserrat);
}

/* Make tbody rows flex containers */
.resident-table tr {
  display: flex;
  /* Flex for row management */
  margin-bottom: 30px;
  /* spacing between rows */
  align-items: center;
  /* vertically center content */
}

.resident-table thead tr {
  margin-bottom: 18px;
}

.resident-table tbody tr:last-child {
  margin-bottom: 0;
}

/* Table headers and cells as flex items */
.resident-table th,
.resident-table td {
  display: flex;
  /* for inner alignment */
  align-items: center;
  justify-content: center;
  flex: 1 1 300px;
  /* grow, shrink, base width */
  min-width: 150px;
  /* never smaller than 150px */
  box-sizing: border-box;
  padding: 0 12px;
  text-align: center;
}


/* Delete column stays fixed */
.th-delete,
.td-delete {
  flex: 0 0 30px;
  min-width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Table headers and cells */
.resident-table th,
.resident-table td {
  padding: 0 12px;
  box-sizing: border-box;
  text-align: center;
  min-width: 100px;
}

/* Column-specific widths */
.th-fname,
.td-fname {
  width: 150px;
}

.th-lname,
.td-lname {
  width: 150px;
}

.th-dob,
.td-dob {
  width: 150px;
}

.th-pob,
.td-pob {
  width: 150px;
}

.th-gender,
.td-gender {
  width: 93px;
}

.th-nationality,
.td-nationality {
  width: 170px;
}

/* First and last columns adjustments */
.resident-table th:first-child,
.resident-table td:first-child {
  width: 100px;
  padding-left: 0;
}

.resident-table th:last-child,
.resident-table td:last-child {
  flex: auto;
  margin-left: 12px;
}

/* Header text styling */
.resident-table th {
  font-weight: 500;
  font-size: 15px;
  line-height: 30px;
  color: var(--black);
}

/* Label cell styling */
.resident-table .td-label {
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  color: var(--black);
}

.resident-table .th-delete,
.resident-table .td-delete {
  width: 30px;
  min-width: 30px;
}

/* Inputs and selects */
.resident-table td input,
.resident-table td select {
  width: 100%;
  height: 52px;
  padding: 6px 17px;
  font-family: var(--font-montserrat);
  font-size: 15px;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  box-sizing: border-box;
  color: #000;
  opacity: 1;
}

/* Remove focus outline */
.resident-table th *:focus,
.resident-table td *:focus {
  outline: none !important;
}

/* Adjust select arrow */
.resident-table td select {
  background-size: 12px;
  background-position: right 11px center;
  padding-right: 34px;
}

/* .delete-col {
  flex: 0 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: 0 8px 8px 0;
} */

.delete-records-btn,
.edit-record-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
  border-radius: 6px;
}

.delete-records-btn:hover,
.edit-record-btn:hover {
  transform: scale(1.01);
  background: rgb(232 232 232);
}

/* Add button */
.add-user-btn {
  display: inline-block;
  margin-top: 34px;
  margin-right: 60px;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: var(--black);
  padding: 12px 20px;
  box-sizing: border-box;
  background: #F4F4F7;
  border: 1px solid var(--purple);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.add-user-btn:hover {
  background: var(--purple);
  color: #fff;
}

.no-records .add-user-btn {
  margin-right: 0;
}


/* =================================================================
# =================== Enter New German Address Page =================
================================================================= */

.new-german-address-form {
  max-width: 540px;
  margin: auto;
}

.new-german-address-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.row-with-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 18px;
}




/* =================================================================
# =================== Confirm Address Page =================
================================================================= */


.confirm-address-block {
  max-width: 1450px;
  margin: auto;
}

.confirm-address-block .top-intro-content {
  margin-bottom: 50px;
}

.user-address-collection {
  display: grid;
  max-width: 1366px;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(666px, 1fr));
  gap: 34px;
}

.user-address-collection .address-card {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}



/* ==== Resident Table with Data Recoreded in Table ==== */
.resident-records-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  padding: 30px 21px;
  box-sizing: border-box;
  border: 1px solid rgba(34, 37, 99, 0.15);
  border-radius: 16px;
}

.resident-records-entries table tbody tr {
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.15); */
  /* padding-bottom: 24px; */
  margin-bottom: 24px;
}

.resident-records-entries table tbody tr td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 30px;
}

.resident-records-entries table tbody tr:last-child {
  margin: 0;
  padding: 0;
  border: none;
}

.resident-records-entries table tbody tr:last-child td {
  padding-bottom: 0;
  border: none;
}

.resident-records-entries table tbody tr td:last-child {
  border: none;
}

.resident-records-entries table th:first-child,
.resident-records-entries table td:first-child {
  width: auto;
  flex: 1 1 160px;
}


.resident-records-entries table .th-nationality,
.resident-records-entries table .td-nationality {
  flex: 1 1 400px;
}

.resident-records-entries table th,
.resident-records-entries table td {
  flex: 1 1 250px;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  color: #000000;
}

.resident-records-entries table th {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.51);

}

.resident-records-entries table tr th *,
.resident-records-entries table tr td * {
  height: auto;
  border: none;
  text-align: center;
}


/* .resident-records-entries table tr td input[type="date"] {
  background-image: none;
}

.resident-records-entries table tr td select {
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
} */



/* .resident-records-entries table td select {
    padding-right: 17px;
} */


/* ==== Resident Table with Data Recoreded in Table ==== */

.leave-comments {
  width: calc(100% - 16px);
  max-width: 540px;
  text-align: center;
  margin: auto;
  margin-top: 50px;
  margin-bottom: 61px;
}

.leave-comments textarea {
  box-sizing: border-box;
  height: 160px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  resize: none;
  padding: 24px 28px;
  font-size: 15.5px;
  line-height: 1.45;
}


/* =================================================================
# =================== Add Signature Page =================
================================================================= */

.add-signature-block .top-intro-content {
    max-width: 1040px;
    margin-bottom: 50px;
    padding-inline: 0;
}
.custom-signature-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 572px;
  margin: auto;
}


.signature-wrapper {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
}

#signature-pad {
  width: 100%;
  height: 172px;   /* fixed height */
  display: block;
  border-radius: 8px;
}

.signature-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.signature-actions button {
    width: auto;
    background-color: transparent;
    padding: 0;
    flex: none;
    border: none;
    cursor: pointer;
    font-weight: 400;
    font-size: 18px;
    line-height: 165%;
    text-align: center;
    color: #000000;
    transition: all .3s;
}

.signature-actions button:hover {
  color: var(--theme-blue);
  text-decoration: underline !important;
}



/* =================================================================
# =================== Payment Options Page =================
================================================================= */
.package-and-billing-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    text-align: left;
}

.payment-options-block {
    max-width: 1170px;
    margin: auto;
}

.package-summary {
    flex: 0 0 360px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    text-align: left;
    padding: 21px 25px;
}

.billing-block {
    flex: 0 0 calc(100% - 392px);
}

.package-info-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.package-info-top h3 {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #000000;
}

.package-info-top a {
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #222563;
}

.package-info-top a:hover {
    text-decoration: underline;
}

.package-info {
    flex-wrap: wrap;
    flex-direction: column;
}

.package-info h4 {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #000000;
    margin-bottom: 10px;
}
.package-info .package-box {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    background: #F9FAFB;
    border: 1px solid rgba(34, 37, 99, 0.15);
    border-radius: 12px;
    padding: 17px 22px;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-blue);
    margin-bottom: 16px;
}

.package-info ul {
    box-sizing: border-box;
    background: #F9FAFB;
    border: 1px solid rgba(33, 38, 99, 0.05);
    border-radius: 12px;
    padding: 21px 11px;
}

.package-info ul li {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 165%;
    text-align: left;
    color: #000000;
    margin-bottom: 16px;
    padding-left: 18px;
    position: relative;
}

.package-info ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(2.5px);
    width: 13.25px;
    height: 13.25px;
    background: url("../images/icons/arrow-check.svg") no-repeat center center;
    background-size: contain;
}
.package-info ul li:last-child {
  margin-bottom: 0;
}


/* --- Package right side --- */

.bordered-block {
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px 22px;
    margin-bottom: 11px;
}

.bordered-block h3 {
    margin-bottom: 24px;
}
/* --- Form Fields --- */


/* Form Row */


/* --- Form CSS --- */

.billing-block .form-row {
  display: grid;
  grid-template-columns: 1fr; /* default: single column */
  gap: 16px; /* space between fields */
  margin-bottom: 16px;
}

.billing-block .form-group {
  display: flex;
  flex-direction: column;
}

/* full width */
.billing-block .col-12 {
  grid-column: span 12;
  max-width: 100%;
}

/* half width (two per row) */
.billing-block .col-6 {
  grid-column: span 6;
  max-width: 100%;
}

.billing-block label {
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  color: #000000;
  display: inline-block;
  margin-bottom: 12px;
}
.billing-block label.required::after {
  content: " *";
}
.billing-block .form-control {
    background-color: var(--white);
}

.billing-block .form-control:last-child {
    margin: 0;
}
.billing-block input,
.billing-block select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
}
.billing-block .form-control::placeholder {
  font-family: var(--font-montserrat);
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 30px;
    color: #000000;
    opacity: 1;
}

.billing-block input:focus,
.billing-block select:focus {
  border-color: var(--purple);
  outline: none;
}


/* ---- Payment Methods Tabs ---- */

/* Payment Tabs */
.billing-methods .payment-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 55px;
}
.billing-methods .tab-btn {
    flex: 1;
    box-sizing: border-box;
    padding: 13px 40px;
    height: 50px;
    background-color: var(--white);
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    color: var(--theme-blue);
    transition: all .3s;
}

.billing-methods .tab-btn.active,
.billing-methods .tab-btn:hover {
  gap: 8px;
  background: rgba(33, 38, 99, 0.05);
  border: 1px solid #222563;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);

}

.billing-methods .tab-btn * {
    display: flex;
    align-items: center;
}

/* Card Details */
.billing-methods .card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billing-methods .hidden {
  display: none;
}
.billing-methods input#card_number {
    background: url("../images/icons/card-icons.svg") no-repeat center center;
    background-size: 76px;
    background-position: right 12px center;
}
.error-message {
  color: red;
  font-size: 12px;
  display: none;
  margin-top: 4px;
}


/* Paypal Tab */
.paypal-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    padding-top: 30px;
    padding-bottom: 50px;
}
.paypal-tab .paypal-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffc439; 
  color: var(--theme-blue); 
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.paypal-tab .paypal-button:hover {
    background-color: #eaab0a;
}
.paypal-tab .paypal-button img {
  height: 24px;
}
/* ---- Payment Methods Tabs ---- */

/* --- Payment Summary Tab --- */
.summary-inner-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.summary-inner-box div {
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
}

.summary-inner-box.vat-Amount .title {
    color: rgba(0, 0, 0, 0.51);
}

.total-amount {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 1rem;
}

.bottom-note {
    background: #F4F4F7;
    padding: 17px 16px;
    margin-top: 25px;
}


/* --- Payment Summary Tab --- */
@media (max-width: 768px) {
  .billing-block .form-row {
    grid-template-columns: 1fr; 
  }
  .billing-block .col-6 {
    grid-column: span 12; 
  }
}

@media (min-width: 769px) {
  .billing-block .form-row {
    grid-template-columns: repeat(12, 1fr);
  }
}




/* =================================================================
# =================== Pricing Plans Page =================
================================================================= */
.select-plan-block {
    max-width: 1300px;
    margin: auto;
}

/* --- Wrapper Layout --- */
.pricing-plans-wrapper {
    display: flex;
    gap: 27px;                  
    flex-wrap: nowrap;
    justify-content: space-between; 
}

/* --- Single Plan Box --- */
.pricing-plans-wrapper .pricing-plan-single {
    flex: 1 1 calc((100% - 3 * 27px) / 4);
    padding: 38px 18px;
    border: 1px solid var(--blue);
    border-radius: 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all linear .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* --- Plan Headings & Price --- */
/* .pricing-plans-wrapper .pricing-plan-single .plan-name {
    font-weight: 700;
    font-size: 23.55px;
    line-height: 129%;
    color: #212663;
    margin-bottom: 20px;
} */
.pricing-plans-wrapper .pricing-plan-single .plan-name {
    font-weight: 700;
    font-size: 23.55px;
    line-height: 1;
    color: #212663;
    margin-bottom: 0;
    min-height: 48px;
}
.pricing-plans-wrapper .pricing-plan-single .plan-price {
    font-weight: 600;
    font-size: 24px;
    line-height: 129%;
    color: #000;
    margin-bottom: 20px;
}

/* --- Features List --- */
.pricing-plans-wrapper .pricing-plan-single ul {
    text-align: left;
}

.pricing-plans-wrapper .pricing-plan-single .plan-features {
    list-style: unset !important;
}

.pricing-plans-wrapper .pricing-plan-single .plan-features li {
    list-style-position: inside;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: #000;
    position: relative;
    padding-left: 22px;
}
.pricing-plans-wrapper .pricing-plan-single .plan-features li:before {
    content: "";
    background-image: url("../images/icons/arrow-check.svg");
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
}

.pricing-plans-wrapper .pricing-plan-single .plan-features li:last-child { 
  margin-bottom: 0;
}
/* --- Button --- */
.pricing-plans-wrapper .pricing-plan-single a {
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 0;
    width: 100%;
    max-width: 200px;
    padding: 16px 16px;
    background: #8263FC;
    border-radius: 36px;
    font-weight: 500;
    font-size: 16px;
    line-height: 18px;
    color: #fff;
}

.pricing-plans-wrapper .pricing-plan-single a:hover {
    transform: none;
}

/* --- Popular Badge --- */
.pricing-plans-wrapper .pricing-plan-single .popular-badge {
    position: absolute;
    top: 30px;
    left: -68px;
    width: 245px;
    height: 32px;
    padding: 2px 10px;
    background: #fff;
    font-weight: 500;
    font-size: 14.7px;
    color: #000;
    transform: rotate(-42.59deg);
    opacity: 0;
    z-index: -1;
}

.pricing-plans-wrapper .pricing-plan-single.popular-plan .popular-badge {
    opacity: 1;
    z-index: 1;
}

/* --- Hover State --- */
.pricing-plans-wrapper .pricing-plan-single:hover {
    background-color: #212663;
    color: #fff;
}

.pricing-plans-wrapper .pricing-plan-single:hover .plan-price, 
.pricing-plans-wrapper .pricing-plan-single:hover .plan-name,
.pricing-plans-wrapper .pricing-plan-single:hover .plan-features li,
.pricing-plans-wrapper .pricing-plan-single:hover .plan-features li .list-icon {
    color: #fff !important;
}

/* --- Popular Plan Highlight --- */
.pricing-plans-wrapper .pricing-plan-single.popular-plan {
    background-color: #212663;
    color: #fff;
    border: unset;
}

.pricing-plans-wrapper .pricing-plan-single.popular-plan .plan-price, 
.pricing-plans-wrapper .pricing-plan-single.popular-plan .plan-name,
.pricing-plans-wrapper .pricing-plan-single.popular-plan .plan-features li,
.pricing-plans-wrapper .pricing-plan-single.popular-plan .plan-features li .list-icon {
    color: #fff !important;
}


.select-plan-block .packages-note {
    display: inline-block;
    background-color: #fff;
    font-size: 16px;
    line-height: normal;
    padding: 15px 20px;
}

.select-plan-block .btns-wrapper {
    margin-top: 60px;
}


/* ========== Services Packages Popups Style ========= */

.packages-popup .popup-content-box {
    max-width: 852px;
    border-radius: 20px;
    padding: 0;
}

.packages-popup .popup-header {
    height: 140px;
    background: #222563;
    border-radius: 20px 20px 0px 0px;
    color: #fff;
    padding: 38px 36px;
    text-align: left;
}

.packages-popup .popup-header h2 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #FFFFFF;
}

.packages-popup .popup-header p {
    color: #fff;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 165%;

}

.packages-popup .popup-body {
    padding: 36px 35px 38px 35px;
    text-align: left;
}
.packages-popup .popup-body ul {
  margin-bottom: 32px;
}
.packages-popup .popup-body ul li {
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 165%;
    color: #000000;
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}
.packages-popup .popup-body ul li:last-child {
   margin-bottom: 0;

}
.packages-popup .popup-body ul li:before {
    content: "";
    background-image: url("../images/icons/popup-check.svg");
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
}
.packages-popup .popup-body .highlighted-text {
  margin-bottom: 24px;
}
.packages-popup .popup-body .highlighted-text:last-child {
  margin-bottom: 0;
}

.packages-popup .close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #FFFFFF;
    box-shadow: 0px 4px 10.3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}




/* ================================================================================
# =================== Cancel Public Broadcasting License Fee Page =================
================================================================================= */

.public-broadcasting-license-fee-wrapper .top-intro-content {
    max-width: 1207px;
    padding-inline: 10px;
}

.public-broadcasting-license-fee-wrapper .top-intro-content p {
    max-width: 1040px;
    margin: auto;
}

.public-broadcasting-license-fee-form .form-grid {
    gap: 24px;
}

.mid-form-heading {
    grid-column: span 12;
    text-align: left;
}



/* ==================================================
# =================== Thanks Page =================
===================================================== */
.thanks-page-block {
    max-width: 617px;
    padding: 55px 41px;
}
.thanks-page-block h1 {
    margin-top: 0;
}
.thanks-page-block .desc {
    padding: 0 10px !important;
    font-size: 20px;
    line-height: 165%;
}
.thanks-page-block .btns-wrapper {
    margin-bottom: 0;
}



/* ==================================================
# =================== My Account Page =================
===================================================== */
.dashboard-wrapper .my-account-nav .steps li a {
    padding-left: 51px;
}
.my-account-wrapper {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-account-content .top-intro-content {
    gap: 10px;
    margin-bottom: 50px;
}

#download-docs-btn {
    padding: 21px 27px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    font-weight: 700;
}

#download-docs-btn .download-icon {
    max-width: 16px;
    object-fit: contain;
    transition: all .3s;
}

#download-docs-btn:hover .download-icon {
  filter: brightness(0) invert(1);
}
.delete-account-popup .popup-content-box {
    padding: 33px 25px 38px 25px;
    width: 100%;
    max-width: 523px;
}
.delete-account-popup .popup-header .del-icon-top {
    width: 64px;
    height: 64px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255 0 0 / 15%);
    border-radius: 50%;
}

.delete-account-popup .popup-header .del-icon-top img {
    max-width: 30px;
    object-fit: contain;
}


.delete-account-popup .popup-body h2 {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 14px;
}


