@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800;900&family=Lexend:wght@400;500;600;700&display=swap");

:root {
  --theme-primary: #333375;
  --theme-primary-hover: #25255c;
  --theme-primary-rgb: 51, 51, 117;
  --theme-gradient: linear-gradient(135deg, #333375 0%, #4a4ab0 100%);
  --theme-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.22);
  --theme-primary-light: rgba(var(--theme-primary-rgb), 0.12);
  --theme-primary-soft: rgba(var(--theme-primary-rgb), 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lexend', 'Heebo', sans-serif;
  color: #333;
  background-color: #f7f9fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ===== HEADER TOP (TWO PATTI STRIP) ===== */
.header-top-area {
  background: var(--theme-primary, #333375) !important;
  padding: 3px 0;
  position: relative;
  overflow: hidden !important;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.header-top-area::before {
  position: absolute;
  content: '';
  width: 53.5%;
  height: 100%;
  top: 0;
  left: -20px;
  background: #7a7a7a !important;
  transform: skewX(39deg);
  z-index: 1;
}

.header-top-left-items,
.header-top-right-icon-area {
  position: relative;
  z-index: 2;
}

.header-top-left-items {
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.header-top-left-items marquee {
  display: block;
  width: 100%;
  line-height: 32px;
  margin: 0;
  padding: 0;
}

.header-top-left-items marquee a,
.header-top-left-items marquee span {
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
}

.header-top-right-icon-area ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
}

.header-top-right-icon-area ul li {
  display: inline-flex;
  align-items: center;
}

.header-top-right-icon-area ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.header-top-right-icon-area ul li a:hover {
  opacity: 0.85;
  color: #ffffff;
}

.header-top-right-icon-area ul li a i {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.header-top-right-icon-area ul li a:hover i {
  background: rgba(255, 255, 255, 0.35);
}

/* ===== HEADER ===== */
.header-part {
  background: #fff;
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.btn-inline {
  padding: 8px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.2);
}

.btn-inline:hover {
  background: var(--theme-primary-hover, #25255a) !important;
  border-color: var(--theme-primary-hover, #25255a) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.3);
}

/* ===== BANNER HERO ===== */
.banner-part {
  background: linear-gradient(135deg, rgba(4, 53, 138, 0.5) 0%, rgba(5, 44, 112, 0.4) 100%), url('../images/banner-bg.jpg') no-repeat center / cover;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 0 85px;
  min-height: 328px;
  position: relative;
  z-index: 1;
}

/* ===== BANNER HERO OVERLAY =====
   Dark-to-light scrim layered on top of the blue-tinted banner image. Kept on
   ::before so pages that reuse .banner-part (login hero + password/reset
   screens) all share the same overlay treatment. */
.banner-part::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgb(2 2 2 / 54%), rgb(247 247 247 / 20%)) !important;
  z-index: 0;
  pointer-events: none;
}

.banner-part .container {
  position: relative;
  z-index: 1;
}

.banner-content {
  text-align: center;
}

.banner-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.banner-content p {
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.4px;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-outline {
  border: 2px solid #ffffff;
  color: var(--theme-primary, #333375);
  background: #ffffff;
  padding: 10px 28px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0px 0px 1px 1px #403f3f !important;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  background: var(--theme-primary, #333375);
  color: #ffffff;
  border-color: var(--theme-primary, #333375);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.35);
}

/* ===== COUNTRY FLAGS CARDS ===== */
.suggest-part {
  position: relative;
  margin-top: -60px;
  z-index: 3;
  margin-bottom: 35px;
  flex-shrink: 0;
}

.suggest-carousel-wrapper {
  position: relative;
  padding: 0 28px;
}

.suggest-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* When Owl Carousel is active on .suggest-row */
.suggest-row.owl-carousel {
  display: block !important;
  width: 100%;
}

.suggest-flags-carousel .owl-stage-outer {
  padding-top: 10px;
  padding-bottom: 14px;
  margin-top: -10px;
  margin-bottom: -14px;
}

.suggest-slide-item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.suggest-flags-carousel .suggest-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.suggest-card {
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #edf2f7;
  border-bottom: 1.5px solid var(--theme-primary, #333375);
}

.suggest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.22);
  border-color: var(--theme-primary, #333375);
}

.suggest-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 50%;
  /* box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); */
}

.suggest-card h6 {
  color: #444;
  font-size: 13px;
  margin: 0;
  font-weight: 500;
  font-family: 'Lexend', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Owl Carousel Navigation Buttons */
.suggest-flags-carousel .owl-nav {
  margin-top: 0;
}

.suggest-flags-carousel .owl-nav button.owl-prev,
.suggest-flags-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--theme-primary, #333375) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  border: 1.5px solid #edf2f7 !important;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  z-index: 10;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.suggest-flags-carousel .owl-nav button.owl-prev {
  left: -19px;
}

.suggest-flags-carousel .owl-nav button.owl-next {
  right: -19px;
}

.suggest-flags-carousel .owl-nav button.owl-prev:hover,
.suggest-flags-carousel .owl-nav button.owl-next:hover {
  background: var(--theme-primary, #333375) !important;
  color: #ffffff !important;
  border-color: var(--theme-primary, #333375) !important;
  box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.35) !important;
  transform: translateY(-50%) scale(1.08);
}

.suggest-flags-carousel .owl-nav button.disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

.suggest-flags-carousel .owl-dots {
  display: none !important;
}


/* ===== FOOTER ===== */
.footer-end {
  background: var(--theme-primary, #333375);
  padding: 10px 0;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin-top: 0;
}

.footer-text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-text a {
  color: #fff;
  font-weight: 600;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-contact li a:hover {
  color: #fff;
}

/* ===== WHATSAPP FLOAT ===== */
.whats-app {
  position: fixed;
  bottom: 14px;
  right: 18px;
  z-index: 999;
  width: 42px;
  height: 42px;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

.whats-app:hover {
  transform: scale(1.12);
}

.whats-app img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== CRM LOGIN MODAL ===== */
.crm-login-modal .modal-dialog {
  max-width: 480px;
}

.crm-login-modal .modal-content.crm-login-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.crm-login-modal .modal-header {
  background: var(--theme-primary, #333375);
  color: #fff;
  border: none;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crm-login-modal .modal-header .modal-title {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.crm-login-modal .modal-header .btn-close {
  filter: invert(1) brightness(200%);
  opacity: 0.9;
}

.crm-login-card .contact-form-title {
  padding: 22px 32px 6px;
  text-align: center;
}

.crm-login-card .contact-form-title h3 {
  color: #1a202c;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.crm-login-modal .modal-body .contact-form-box {
  padding: 14px 32px 28px;
}

.crm-login-card .crm-field,
.crm-auth-card .crm-field {
  margin-bottom: 18px;
}

.crm-login-card .crm-field label,
.crm-auth-card .crm-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
  display: block;
}

.crm-login-card .input-group,
.crm-auth-card .input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.crm-login-card .input-group-text,
.crm-auth-card .input-group-text {
  background: var(--theme-primary, #333375);
  color: #fff;
  border: 1.5px solid var(--theme-primary, #333375);
  border-radius: 8px 0 0 8px;
  padding: 8px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.crm-login-card .input-group .form-control,
.crm-auth-card .input-group .form-control {
  border: 1.5px solid #cbd5e1;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  height: 44px;
  transition: all 0.3s ease;
  font-family: inherit;
  color: #1e293b;
}

.crm-login-card .input-group .form-control:focus,
.crm-auth-card .input-group .form-control:focus {
  border-color: var(--theme-primary, #333375);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.12);
  outline: none;
}

.crm-login-card .input-group .toggle-password,
.crm-auth-card .input-group .toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  color: #94a3b8;
  font-size: 15px;
  transition: color 0.2s;
}

.crm-login-card .input-group .toggle-password:hover,
.crm-auth-card .input-group .toggle-password:hover {
  color: var(--theme-primary, #333375);
}

.crm-login-card .alert_1,
.crm-auth-card .alert_1 {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.crm-login-card .alert_1 .wrng-msg,
.crm-auth-card .alert_1 .wrng-msg {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-login-card .alert_1 i,
.crm-auth-card .alert_1 i {
  font-size: 18px;
  color: #ef4444;
}

.crm-login-card .alert_1 h6,
.crm-auth-card .alert_1 h6 {
  color: #b91c1c;
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.crm-login-card .crm-options-row,
.crm-auth-card .crm-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
}

.crm-login-card .crm-remember,
.crm-auth-card .crm-remember {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-login-card .crm-remember input[type="checkbox"],
.crm-auth-card .crm-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.crm-login-card .crm-remember label,
.crm-auth-card .crm-remember label {
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  margin: 0;
}

.crm-login-card .crm-forgot a,
.crm-auth-card .crm-forgot a {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-primary, #333375);
  text-decoration: none;
}

.crm-login-card .crm-forgot a:hover,
.crm-auth-card .crm-forgot a:hover {
  text-decoration: underline;
}

/* Universal Submit Button styles for both login modal & standalone auth cards */
.crm-submit-wrap button,
.crm-login-card .crm-submit-wrap button,
.crm-auth-card .crm-submit-wrap button,
#submitBtn {
  width: 100% !important;
  background: var(--theme-primary, #333375) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.25) !important;
  min-height: 46px !important;
  outline: none !important;
  font-family: inherit !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.crm-submit-wrap button:hover,
.crm-login-card .crm-submit-wrap button:hover,
.crm-auth-card .crm-submit-wrap button:hover,
#submitBtn:hover {
  background: var(--theme-primary-hover, #25255a) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb, 51, 51, 117), 0.35) !important;
}

.crm-submit-wrap button:disabled,
#submitBtn:disabled {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.dnt-acctn-rgstr {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.dnt-acctn-rgstr h6 {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 400;
}

.dnt-acctn-rgstr p {
  margin: 0;
}

.dnt-acctn-rgstr p a {
  color: var(--theme-primary, #333375);
  font-weight: 600;
  font-size: 13.5px;
}

.dnt-acctn-rgstr p a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .header-top-area::before {
    display: none;
  }
  .header-top-left-items {
    margin-bottom: 6px;
    text-align: center;
  }
  .header-top-right-icon-area ul {
    justify-content: center;
  }
  .banner-part {
    padding: 70px 0 130px;
  }
  .banner-content h1 {
    font-size: 32px;
  }
  .suggest-card {
    width: 140px;
    padding: 18px 12px;
  }
  .suggest-card img {
    width: 55px;
    height: 55px;
  }
  .footer-contact {
    text-align: center;
    justify-content: center;
    margin-top: 10px;
  }
  .footer-end p {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .suggest-carousel-wrapper {
    padding: 0 16px;
  }
  .suggest-flags-carousel .owl-nav button.owl-prev {
    left: -10px;
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .suggest-flags-carousel .owl-nav button.owl-next {
    right: -10px;
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .banner-content h1 {
    font-size: 26px;
  }
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .suggest-row {
    gap: 10px;
  }
  .suggest-card {
    width: calc(50% - 10px);
  }
  .suggest-carousel-wrapper {
    padding: 0 10px;
  }
  .suggest-flags-carousel .owl-nav button.owl-prev {
    left: -6px;
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .suggest-flags-carousel .owl-nav button.owl-next {
    right: -6px;
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .suggest-flags-carousel .suggest-card {
    width: 100% !important;
    padding: 12px 8px;
  }
  .suggest-flags-carousel .suggest-card img {
    width: 44px;
    height: 44px;
  }
  .suggest-flags-carousel .suggest-card h6 {
    font-size: 11px;
  }
}

/* Page loader styles live in resources/views/partials/app-loader.blade.php (shared app-wide) */

/* ===== CRM AUTH CARD (FORGOT / RESET PAGES) ===== */
.crm-auth-card {
  max-width: 480px;
  width: 100%;
  margin: 15px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.crm-auth-card .card-header-bar {
  background: var(--theme-primary, #333375);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-auth-card .card-header-bar h5 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-auth-card .card-body-content {
  padding: 24px 30px;
}

.crm-auth-card .card-body-content h3 {
  color: #1a202c;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.crm-auth-card .card-body-content p.subtitle {
  color: #64748b;
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Captcha Row */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.captcha-img-wrap {
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  object-fit: contain;
  min-width: 140px;
}

.captcha-reload-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 16px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.captcha-reload-btn:hover {
  border-color: var(--theme-primary, #333375);
  color: var(--theme-primary, #333375);
  background: var(--theme-primary-soft, #eef2ff);
}
