@font-face {
  font-family: "Kohinoor-Bangla";
  src: url("../fonts/Kohinoor_Bangla/KohinoorBangla-Regular.otf")
    format("truetype");
  font-display: swap; /* Add this for better performance */
  font-weight: 100;
}
@font-face {
  font-family: "Kohinoor-Bangla-Bold";
  src: url("../fonts/Kohinoor_Bangla/KohinoorBangla-Bold.otf")
    format("truetype");
  font-display: swap; /* Add this for better performance */
}

:root {
  --section-heading-color: #434343;

  --hero-font-size: 5rem;
  --hero-font-weight: 100;
  --hero-line-height: 0.9;
  --hero-font-color: white;
  --hero-letter-spacing: -3px;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #343434;
  font-family: "Kohinoor-Bangla";
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(255, 111, 24);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  cursor: grabbing;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgb(255, 111, 24) transparent;
}

.bg-change {
  background-color: #111;
}

.contact-hero-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: url("../images/hero/ledgerscontactus.png") no-repeat center center /
    cover;
}

.contact-hero-wrapper::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;

  z-index: 1;
  background-color: rgba(41, 54, 80, 0.623);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.contact-hero-content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  width: 97%;
  height: 93%;
  z-index: 2;
}

.contact-hero-overlay {
  /* border: 1px solid green; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 150px;
  width: 70%;
}

.contact-hero-overlay h1 {
  margin-top: 100px;
  margin-bottom: 30px;
  text-align: center;
  font-size: var(--hero-font-size);
  line-height: var(--hero-line-height);
  letter-spacing: var(--hero-letter-spacing);
  font-weight: var(--hero-font-weight);
  color: var(--hero-font-color);
}

.contact-hero-overlay p {
  font-size: 1.1rem;
  line-height: 1.2;
  width: 80%;
  margin: 0 auto 100px;
  color: white;
}

.contact-hero-btn {
  text-align: center;
  width: 100%;
}
.contact-hero-btn button {
  background: black;
  color: white;
  width: 200px;
  height: 55px;
  font-size: 1.2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s ease;
  letter-spacing: -1px;
}
.contact-hero-btn button:hover {
  background-color: rgb(29, 29, 29);
}

/* Footer Links */
.contact-hero_list_items {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  z-index: 4;
  /* border: 1px solid blue;  */
}

.contact-hero_list_items ul {
  position: relative;
  bottom: 40px;
  left: 58px;
  list-style-type: none;
  line-height: 18px;
  padding: 30px;
  /* border: 1px solid rgba(0, 0, 0, 0.2); */
  background: rgba(57, 68, 94, 0.863);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50%;
}
.contact-hero_list_items ul li a {
  text-decoration: none;
  color: #dadada;
  font-size: 0.9rem;
  position: relative;
}

.contact-hero_list_items ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: #dadada;
  z-index: 1;
  width: 0;
}

.contact-hero_list_items ul li a:hover::after {
  width: 100%;
}

/* Responsive */
@media screen and (max-width: 1366px) {
  .contact-hero-overlay {
    margin-top: 5%;
  }
  .contact-hero-overlay h1 {
    font-size: 4rem;
    margin-top: 50px;
  }
  .contact-hero-overlay p {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .contact-hero_list_items ul li a {
    font-size: 0.8rem;
    line-height: 1;
  }
  .contact-hero_list_items ul {
    line-height: 14px;
    padding: 25px 20px;
  }
}
@media screen and (max-width: 1020px) {
  .contact-hero-wrapper {
    padding: 40px 0px;
  }

  .contact-hero-overlay {
    margin-top: 70px !important;
  }

  .contact-hero-overlay h1 {
    font-size: 3rem !important;
    width: 90% !important;
  }
  .contact-hero_list_items ul {
    bottom: 80px;
    left: 20px;
  }
}
@media screen and (max-width: 768px) {
  .contact-hero-overlay {
    padding: 0 15px !important;
    width: 90% !important;
  }
  .contact-hero-overlay h1 {
    font-size: 2rem !important;
    letter-spacing: -1px !important;
    margin-top: 30px !important;
  }
  .contact-hero-overlay p {
    font-size: 1rem !important;
    padding: 0 10px !important;
  }
  .btn {
    padding: 10px 40px;
    font-size: 1rem;
  }
  .contact-hero-btn button {
    width: 150px;
    height: 40px;
    font-size: 1rem;
  }
  .contact-hero_list_items ul {
    position: static;
    flex-direction: column;
    align-items: center;
    left: 40px;
    bottom: 20px;
    padding: 20px 15px;
  }
}
@media screen and (max-width: 480px) {
    .contact-hero-overlay{
      width: 100% !important;
    }
  .contact-hero-overlay p {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
  .contact-hero-overlay h1 {
    font-size: 1.6rem !important;
  }
}

.contactform-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}
.contactform-content-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 97%;
  height: 93%;
  background: url("../images/contactsection.png") no-repeat center center /
    cover;
}
.formcontent-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 150px;
  width: 90%;
}
.text-container {
  display: flex;
  gap: 100px;
  flex-direction: column;
}

.toptext h1 {
  font-size: 4rem;
  width: 80%;
  line-height: 1;
}
.bottomtext {
  border: 1px solid #747474;
  padding: 20px;
  border-radius: 40px;
  width: 60%;
}
.bottomtext span img {
  width: 25px;
}

.bottomtext li {
  padding: 10px;
  list-style-type: none;
  display: flex;
  justify-content: flex-start;
}
.bottomtext span {
  margin-right: 20px;
}

.lf-right-contactform-container {
  width: 100%;
  max-width: 900px;
}

.lf-right-contactform-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.last-item {
  margin-left: 46px;
}
.contact-file-label {
  padding: 7px 20px;
  border: 1px solid #757171;
  background-color: #fbfbfb;
  border-radius: 15px !important;
  font-size: 1.2rem;
  color: #000000;
  outline: none;
  font-style: italic;
  opacity: 0.2;
}
.map-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  text-align: center;
}

.map-wrapper {
  display: flex;
  justify-content: space-between; /* This might need adjustment based on content within wrapper */
  align-items: center;
  flex-direction: column;
  width: 97%;
  height: 93%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.map-wrapper iframe {
  position: absolute; /* Occupy full space of parent */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map {
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* Style for select to match input-field */
.select-field, select.input-field {
  font-family: "Kohinoor-Bangla";
  display: block;
  width: 60%;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.4;
  color: #2c2c2c31 !important;
  background-color: #fbfbfb;
  border: 1px solid rgba(0,0,0,0.16);
  font-style: italic;
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='none' stroke='%23222' stroke-width='1.5' d='M1 1l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
}

body.rtl .select-field, body.rtl select.input-field {
  background-position: left 12px center;
}

.select-field:focus, select.input-field:focus {
  outline: none;
  border-color: rgba(0,0,0,0.16);
}
.file-icon-div{
  min-width: 100% !important;
}
.contact-file-label{
  width: 90% !important;
}
/* ============================ phone number styling ========================= */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}
.phone-input {
  max-width: 50% !important;
}
.country-code-select {
  font-family: "Kohinoor-Bangla" !important;
  padding: 7px !important;
  max-width: 150px !important;
  color: #2c2c2c31;
  border: 1px solid #e0e0e0;;
  background-color: #fbfbfb;
  border-radius: 15px;
  font-style: italic;
  padding-right: 0.5rem !important;
  font-size: 1rem !important;
}
select option {
  font-family: "Kohinoor-Bangla" !important;
  color: black;
}

select:focus {
  outline: none;
}
select:not(:has(option:checked[value=""])) {
  color: black;
}
/* For browsers that don’t support :has() yet */
select:not(:invalid) {
  color: black;
}

@media (max-width: 480px) {
  .select-field { background-position: right 10px center; }
}

/* Desktop Small (≤1366px) */
@media (max-width: 1366px) {
  .formcontent-wrapper {
    justify-content: space-between;
  }
  .contact-page-form {
    width: 50% !important;
  }
  .text-container {
    justify-content: space-around;
    width: 40% !important;
    gap: 2rem;
  }
  .toptext h1 {
    width: 100%;
  }
  .toptext h1 {
    font-size: 2rem !important;
  }
  .form-footer button {
    padding-left: 90px;
    padding-right: 90px;
  }
  .formcontent-wrapper {
    gap: 40px;
    /* height: 100%; */
  }
  .bottomtext {
    width: 100%;
    padding: 10px;
  }
}

/* Tablet Landscape (≤1020px) */
@media (max-width: 1024px) {
  .toptext h1 {
    margin-top: 30px;
    font-size: 2rem;
  }
  .text-container {
    align-items: center;
    gap: 30px;
  }
  .toptext h1 {
    font-size: 2.8rem;
    text-align: center;
    width: 100%;
  }
  .bottomtext {
    border-radius: 30px;
    width: 60%;
  }
  .lf-right-contactform-container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
  }
  .input-group {
    flex-direction: column;
  }
  .input-group input {
    width: 100% !important;
  }
  .input-field {
    min-width: 100% !important;
  }
  .file-icon-div{
    min-width: 100% !important;
  }
  .contact-file-label {
    min-width: 80% !important;
  }
  .phone-input-wrapper {
    flex-direction: column;
  }
  .country-code-select {
    min-width:  100% !important;
  }
}

/* Tablet Portrait / Mobile (≤768px) */
@media (max-width: 768px) {
  .contactform-wrapper {
    height: auto  ;
  }
  .select-field, body.rtl select.input-field {
    width: 100%;
  }
  .formcontent-wrapper {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 0 1rem;
    width: 100%;
  }

  .text-container {
    gap: 60px;
    width: 100% !important;
    align-items: center;
    text-align: center;
  }

  .toptext h1 {
    font-size: 2.4rem;
    width: 100%;
  }

  .bottomtext {
    width: 100%;
    font-size: 0.95rem;
    padding: 12px;
  }


  .bottomtext span {
    margin-right: 0;
    margin-bottom: 5px;
  }
  .lf-right-container {
    width: 100% !important;
  }
  .formcontent-wrapper {
    margin-bottom: 1rem;
  }
  .form-footer {
    width: 100% !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .form-footer button{
    width: 50% !important;
  }
  .form-footer .terms-text {
    font-size: 0.8rem;
    width: 70%;
  }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
  .toptext h1 {
    font-size: 1.8rem;
  }

  .bottomtext {
    padding: 10px;
    border-radius: 20px;
    font-size: 0.85rem;
  }

  .bottomtext span img {
    width: 20px;
  }
  .lf-right-container {
    padding: 1rem 0.5rem;
  }

  .formcontent-wrapper {
    gap: 40px;
  }

  .lf-right-contactform-container form {
    gap: 14px;
  }
  .form-footer {
    width: 100% !important;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
  }
  .form-footer button{
    width: 100% !important;
  }
  .form-footer .terms-text {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }
  .last-item {
    margin-left: 0;
  }
}

/* --- CSS for Character Blink Animation (copied from previous examples) --- */
@keyframes charBlink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

.contact-form-message {
  position: fixed !important;
  top: -100px; /* Hidden above the screen */
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  max-width: 90%;
  z-index: 9999;
  padding: 15px 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  transition: top 0.5s ease-in-out;
  display: none;
}

.contact-form-message.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form-message.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* When JS adds this class, show the popup */
.contact-form-message.show {
  display: block;
  top: 500px; /* Slide down into view */
  animation: slideAway 5s ease-in-out forwards;
}

/* Auto slide-up after 5 seconds */
@keyframes slideAway {
  0% {
    top: 20px;
    opacity: 1;
  }
  80% {
    top: 20px;
    opacity: 1;
  }
  100% {
    top: -100px;
    opacity: 0;
  }
}




@media (min-width: 1500px) {
  section {
    width: 100vw;
    height: 100vh;
  }
}

@media screen and (max-width: 1450px) {
  .contact-hero-overlay {
    margin-top: 4rem;
  }
  .contact-hero-overlay h1 {
    font-size: 4rem;
    line-height: 1;
  }
  .toptext h1 {
    width: 100%;
    line-height: 1;
    font-size: 3rem;
  }
  .bottomtext {
    width: 100%;
  }
}