@charset "utf-8";

/* CSS Document */

/******* fonts *********/
@import url('../fonts/stylesheet_outfit.css');
@import url('../fonts/malithi_stylesheet.css');
/******* fonts *********/

:root {
  /* Colors */
  --white: #ffffff;
  --bg-page: #ffffff;
  --input-name-bg: #ffffff;
  --input-phone-bg: #e8f0f8;
  --input-border: #dce4ed;
  --placeholder-color: #8c9ba9;
  --text-dark: #1e293b;
  --btn-blue-top: #2bb7f5;
  --btn-blue-bottom: #097bc7;

  /* Fonts */
  --english-font: 'Outfit', sans-serif;
  --sinhala-font: 'Malithi Web', 'Noto Sans Sinhala', sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--white);
  font-family: var(--english-font);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* common css */

p{
  line-height: 1.3;
  font-size: 13px;
}

/* Screen Wrapper */
.main-screen-wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-screen-row {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Inputs styling */
.custom-input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-family: var(--sinhala-font);
  font-size: 16px;
  padding: 0 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

/* Name Input */
.custom-input {
  background-color: var(--input-name-bg);
  border: 1.5px solid var(--input-border);
  color: #2b3a4a;
}

.custom-input::placeholder {
  color: var(--placeholder-color);
  font-family: var(--sinhala-font);
  font-size: 15.5px;
  opacity: 1;
}

.custom-input:focus {
  background-color: #ffffff;
  border-color: #2bb7f5;
  box-shadow: 0 0 0 3px rgba(43, 183, 245, 0.15);
}

/* Submit Button */
.btn-submit {
  min-width: 175px;
  height: 48px;
  padding: 0 32px;
  background: linear-gradient(90deg, #0a5cb1, #37abe3);
  color: #ffffff;
  font-family: var(--english-font);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.2px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  filter: brightness(1.05);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

/*vehicle selection css */

 .selection-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #5b6b7c;
  font-family: var(--sinhala-font);
}

.selection-caption::before,
.selection-caption::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfdbe7);
}

.selection-caption::after {
  transform: scaleX(-1);
}

.selection-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.selection-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 120px;
  padding: 0 6px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e0e9f2;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 62, 112, 0.09);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.selection-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.selection-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef6fd, #d9eaf8);
  color: #0b63b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease;
}

.selection-icon svg {
  width: 32px;
  height: 32px;
}

/* PNG vehicle icons (white silhouette on transparent background) */
.vehicle-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  transition: filter .25s ease, transform .25s ease;
}

.selection-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #24384c;
  font-family: var(--sinhala-font);
}

.selection-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  color: #47d14c;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s ease, transform .2s ease;
}

.selection-option:has(input[type="radio"]:checked) {
  border-color: #c51b28;
  transform: translateY(-3px);
}

.selection-option:has(input[type="radio"]:checked) .selection-badge {
  opacity: 1;
  transform: scale(1);
}

.selection-option:has(input[type="radio"]:focus-visible) {
  outline: 2px solid #b3202b;
  outline-offset: 3px;
}

/* action buttons */
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 24px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.btn-action:hover {
  color: #ffffff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-action svg {
  width: 23px;
  height: 23px;
}

.btn-getcode {
  background: linear-gradient(90deg, #0a5cb1, #37abe3);
}

.btn-buy {
  margin-top: 14px;
  background: linear-gradient(90deg, #e8154f, #b0103a);
}

/* code result (shown only after Get Code click) */
.code-result {
  margin-top: 16px;
  animation: codeReveal .35s ease;
}

@keyframes codeReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  overflow: hidden;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(120deg, #08a35f, #3fa173);
}

.code-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
}

.code-info {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-left: 22px;
}

.code-value {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.1;
  word-break: break-all;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.code-hint {
  margin-top: 4px;
  font-size: 12px;
  opacity: .9;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

/* While copied state is active during flip */
.code-card.is-copied-flipped .code-value {
  display: none;
}

.code-card.is-copied-flipped .code-hint {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
}

.btn-copy {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  margin-left: 8px;
  padding: 0 20px 0 18px;
  background: transparent;
  border: 0;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.6);
  color: #ffffff;
  perspective: 700px;
  cursor: pointer;
  outline: none;
}

.btn-copy-inner {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Vertical Up-and-Down 3D Flip */
.btn-copy.copied .btn-copy-inner {
  transform: rotateX(180deg);
}

.btn-copy-front,
.btn-copy-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: background .2s ease, box-shadow .2s ease;
}

.btn-copy-front {
  transform: rotateX(0deg);
}

.btn-copy-back {
  background: #ffffff;
  color: #08a35f;
  transform: rotateX(-180deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-copy:hover .btn-copy-front {
  background: #fdfbfb38;
}

.btn-copy:hover .btn-copy-back {
  background: #ffffff;
}

.btn-copy svg {
  width: 22px;
  height: 22px;
}

/* ===== Code Modal ===== */
#codeModal .modal-dialog {
  /* max-width: 420px; */
  margin-left: auto;
  margin-right: auto;
}

#codeModal .otp_modal_content {
  position: relative;
  background: #fff;
  border: 0;
  border-radius: 20px;
  padding: 60px 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Close button */
#codeModal .btn_modal_close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
  border: 0;
  border-radius: 50%;
  color: #132436;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

#codeModal .btn_modal_close:hover {
  background: #e2e6ea;
}

/* Title */
#codeModal .otp_modal_body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #132436;
  margin: 0 0 20px;
}

/* Spacing between the code card and Buy Now */
#codeModal .code-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#codeModal .code-card,
#codeModal .btn-buy {
  width: 100%;
  margin: 0;
}

/* Backdrop */
.modal-backdrop.show {
  opacity: 0.65;
}

/* Preloader / Loading Screen Screen*/
.page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f7f9fc;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  animation: loaderFadeIn 0.6s ease-out;
}

.loader-logo-wrap {
  width: 100%;
  max-width: 250px;
  margin-bottom: 38px;
  text-align: center;
}

.loader-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.04));
  animation: logoPulse 2.4s ease-in-out infinite;
}

/* Pill-shaped Loading Track matching exact reference */
.loader-track {
  position: relative;
  width: 180px;
  height: 16px;
  background: #ffffff;
  border-radius: 999px;
  border: 1.5px solid #239ad5;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(35, 154, 213, 0.15);
  padding: 1.5px;
  overflow: hidden;
}

/* Vibrant Blue Animated Fill Bar */
.loader-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1b86cf 0%, #29abf5 65%, #30bdfc 100%);
  box-shadow: 0 0 10px rgba(41, 171, 245, 0.55);
  animation: progressFill 4.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transform-origin: left center;
}

/* Shimmer gleam across the progress bar */
.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmerGleam 2.2s infinite;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  20% {
    width: 18%;
  }
  45% {
    width: 48%;
  }
  70% {
    width: 78%;
  }
  90% {
    width: 93%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmerGleam {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}


@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

