/* ============================================================
   Tribhuvan University (TU) theme tokens - derived from the TU
   logo (static/images/tu.png): red #e01b22 + blue #6692cc on white.
   Red = primary (titles, buttons, CTAs); blue = interactive accents
   (focus, links). Defined once here (style.css loads on every page),
   so main.css and page-scoped styles resolve the same var() tokens.
   Contrast-checked: brand red 4.83:1 on white (AA text + white-on-red
   button); blue text uses the darker #3a63a6 (5.97:1) for AA.
   ============================================================ */
:root {
  --tu-red: #e01b22;
  --tu-red-dark: #b3141a;
  --tu-blue: #6692cc;
  --tu-blue-dark: #3a63a6;
  --tu-gradient: linear-gradient(135deg, #e01b22, #6692cc);
  --tu-gradient-hover: linear-gradient(135deg, #b3141a, #3a63a6);
  --tu-ring: rgba(224, 27, 34, 0.18);
  --tu-red-tint: #fdeeee;
  --tu-blue-tint: #f2f6fb;
}

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

body {
  font-family: "Poppins", sans-serif;
}

button {
  font-family: "Poppins", sans-serif;
}

header {
  display: flex;
  width: 90%;
  height: 10vh;
  margin: auto;
  align-items: center;
}

.logo-container,
.nav-links,
.cart {
  display: flex;
}

.logo-container {
  flex: 1;
}

.logo {
  font-weight: 400;
  margin: 5px;
}

nav {
  flex: 2;
}

.nav-links {
  justify-content: space-around;
  list-style: none;
}

.nav-link {
  color: #5f5f79;
  font-size: 18px;
  text-decoration: none;
}

.cart {
  flex: 1;
  justify-content: flex-end;
}

.presentation {
  display: flex;
  width: 90%;
  margin: auto;
  min-height: 80vh;
  align-items: center;
}

.introduction {
  flex: 1;
}

.intro-text h1 {
  font-size: 44px;
  font-weight: 600;
  color: var(--tu-red); /* solid fallback if background-clip:text is unsupported */
  background: var(--tu-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text p {
  margin-top: 5px;
  font-size: 22px;
  color: #585772;
}

.cta {
  padding: 50px 0px 0px 0px;
}

.cta-select {
  border: 2px solid var(--tu-red);
  background: transparent;
  color: var(--tu-red);
  width: 150px;
  height: 50px;
  cursor: pointer;
  font-size: 16px;
}

.cta-add {
  background: var(--tu-red);
  width: 150px;
  height: 50px;
  cursor: pointer;
  font-size: 16px;
  border: none;
  color: white;
  margin: 30px 0px 0px 30px;
  border-radius: 5px;
}

.cover {
  flex: 1;
  display: flex;
  justify-content: center;
  height: 60vh;
}

.cover img {
  height: 100%;
  filter: drop-shadow(0px 5px 3px black);
  animation: drop 1.5s ease;
}

.big-circle {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: -1;
  opacity: 0.5;
  height: 80%;
}

.medium-circle {
  position: absolute;
  top: 30%;
  right: 30%;
  z-index: -1;
  height: 60%;
  opacity: 0.4;
}

.small-circle {
  position: absolute;
  bottom: 0%;
  left: 20%;
  z-index: -1;
}

.laptop-select {
  width: 15%;
  display: flex;
  justify-content: space-around;
  position: absolute;
  right: 20%;
}

@keyframes drop {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media screen and (max-width: 1024px) {
  .presentation {
    flex-direction: column;
  }

  .introduction {
    margin-top: 5vh;
    text-align: center;
  }

  .intro-text h1 {
    font-size: 30px;
  }

  .intro-text p {
    font-size: 18px;
  }

  .cta {
    padding: 10px 0px 0px 0px;
  }

  .laptop-select {
    bottom: 5%;
    right: 50%;
    width: 50%;
    transform: translate(50%, 5%);
  }

  .cover img {
    height: 80%;
  }

  .small-circle,
  .medium-circle,
  .big-circle {
    opacity: 0.2;
  }
}

/* FORM.CSS */

.container {
  max-width: 700px;
  width: 100%;
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  justify-content: center;
  align-items: center;
  margin: auto;
}

button.hide-me {
  display: none;
}

.container .title {
  font-size: 25px;
  font-weight: 500;
  position: relative;
}

.container .title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 600px;
  border-radius: 5px;
  background: var(--tu-gradient);
}

.content form .user-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0 12px 0;
}

form .user-details .input-box {
  margin-bottom: 15px;
  width: calc(100% / 2 - 20px);
}

form .input-box span.details {
  display: block;
  align-self: flex-start;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: left;
}

.details2 {
  display: block;
  align-self: flex-start;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: left;
}

form .form-input-box {
  position: relative;
  font-weight: 500;
  margin-bottom: 10px;
}

form .form-input-box .details {
  font-weight: 500;
  margin-bottom: 5px;
  font-family: Poppins-Regular;
  font-size: 15px;
  color: #808080;
  line-height: 1.2;
  text-align: right;
  text-align: left;
  white-space: nowrap;
  position: absolute;
  top: 14px;
  left: -160px;
  width: 100px;
  margin-top: 15px !important;
}

form .form-input-box select {
  font-family: Poppins-Regular;
  font-size: 15px;
  margin-top: 26px;
  margin-left: 50px;
  color: #808080;
}

form .wrap-input100 .details {
  font-weight: 500;
  margin-bottom: 5px;
  font-family: Poppins-Regular;
  font-size: 15px;
  color: #808080;
  line-height: 1.2;
  text-align: right;
  text-align: -webkit-center;
  white-space: nowrap;
  position: absolute;
  top: 14px;
  left: -105px;
  width: 80px;
  left: -112px;
  width: 100px;
  margin-top: 15px !important;
}

.user-details .input-box input {
  height: 45px;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  transition: all 0.3s ease;
}

.user-details .input-box input:focus,
.user-details .input-box input:valid {
  border-color: var(--tu-blue-dark);
}

.user-details .input-box select {
  height: 45px;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  transition: all 0.3s ease;
}

.user-details .input-box select:focus,
.user-details .input-box select:valid {
  border-color: var(--tu-blue-dark);
}

form .gender-details .gender-title {
  font-size: 20px;
  font-weight: 500;
}

form .category {
  display: flex;
  width: 80%;
  margin: 14px 0;
  justify-content: space-between;
}

form .category label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

form .category label .dot {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  margin-right: 10px;
  background: #d9d9d9;
  border: 5px solid transparent;
  transition: all 0.3s ease;
}

#dot-1:checked ~ .category label .one,
#dot-2:checked ~ .category label .two,
#dot-3:checked ~ .category label .three {
  background: var(--tu-red);
  border-color: #d9d9d9;
}

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

form .button {
  height: 45px;
  margin: 35px 0;
}

form .button input {
  height: 100%;
  width: 100%;
  border-radius: 5px;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--tu-gradient);
}

form .button input:hover {
  /* transform: scale(0.99); */
  background: var(--tu-gradient-hover);
}

@media (max-width: 584px) {
  .container {
    max-width: 100%;
  }

  form .user-details .input-box {
    margin-bottom: 15px;
    width: 100%;
  }

  form .category {
    width: 100%;
  }

  .content form .user-details {
    max-height: 300px;
    overflow-y: scroll;
  }

  .user-details::-webkit-scrollbar {
    width: 5px;
  }
}

@media (max-width: 459px) {
  .container .content .category {
    flex-direction: column;
  }
}

/* checkbox style */

.multiselect {
  width: 100% !important;
}

.selectBox {
  position: relative !important;
}

.selectBox select {
  width: 100% !important;
  /* font-weight: bold !important; */
}

.overSelect {
  position: absolute !important;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#checkboxes {
  display: none;
  border: 1px #dadada solid;
}

#checkboxes span {
  display: block;
  flex-direction: column;
  justify-content: center;
  padding: 5px;
  padding-left: 15px;
  text-indent: -15px;
}

#checkboxes input {
  width: 20px;
  height: 20px;
  padding: 0;
  margin-right: 15px;
  vertical-align: bottom;
  position: relative;
  top: -1px;
  overflow: hidden;
}

.form-made .details {
  position: absolute;
  left: -160px;
  width: 100px;
  color: #808080;
  font-family: Poppins-Regular;
  font-size: 15px;
}

@media (max-width: 580px) {
  .form-made .details {
    text-align: left;
    position: static;
    width: 100%;
    margin-right: 10px;
  }
}

/*for rolling text*/
/* Container for the rolling text at the bottom */
.rolling-text-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  /* background-color: #333;  */
  /* Optional: Add background color to the banner */
}

/* The actual text that will move */
.rolling-text {
  display: inline-block;
  color: var(--tu-red); /* Optional: Change text color */
  padding: 10px 0;
  font-size: 18px; /* Optional: Adjust font size */
  animation: scroll-left 30s linear infinite;
}

/* Keyframes for scrolling the text horizontally */
@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ============================================================
   Bootstrap element theming - map every Bootstrap button/badge
   variant onto the TU palette so no page shows Bootstrap's default
   blue / green / yellow. This project ships Bootstrap 5.0.1, which
   predates the --bs-btn-* button variables (5.3+), so we override the
   real background/border/color properties. style.css loads after
   Bootstrap; !important guarantees the theme wins over Bootstrap's
   higher-specificity :active selectors. Red = primary, blue =
   success/info/secondary accents, red-dark = warning/danger.
   ============================================================ */
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--tu-red) !important;
  border-color: var(--tu-red) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--tu-red-dark) !important;
  border-color: var(--tu-red-dark) !important;
  color: #fff !important;
}
.btn-primary:focus,
.btn-primary:active:focus {
  box-shadow: 0 0 0 0.25rem var(--tu-ring) !important;
}

.btn-success,
.btn-info {
  background-color: var(--tu-blue-dark) !important;
  border-color: var(--tu-blue-dark) !important;
  color: #fff !important;
}
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-info:hover, .btn-info:focus, .btn-info:active {
  background-color: #2f5596 !important;
  border-color: #2f5596 !important;
  color: #fff !important;
}

.btn-warning {
  background-color: var(--tu-red) !important;
  border-color: var(--tu-red) !important;
  color: #fff !important;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
  background-color: var(--tu-red-dark) !important;
  border-color: var(--tu-red-dark) !important;
  color: #fff !important;
}

.btn-danger {
  background-color: #c0161c !important;
  border-color: #c0161c !important;
  color: #fff !important;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  background-color: #9d1116 !important;
  border-color: #9d1116 !important;
  color: #fff !important;
}

/* Secondary = outlined TU red, subordinate to the red fill. */
.btn-secondary {
  background-color: #fff !important;
  border-color: var(--tu-red) !important;
  color: var(--tu-red) !important;
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background-color: var(--tu-red-tint) !important;
  border-color: var(--tu-red-dark) !important;
  color: var(--tu-red-dark) !important;
}

.btn-outline-primary {
  color: var(--tu-red) !important;
  border-color: var(--tu-red) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
  background-color: var(--tu-red) !important;
  border-color: var(--tu-red) !important;
  color: #fff !important;
}

.bg-info, .bg-primary { background-color: var(--tu-blue-dark) !important; }
.bg-success { background-color: var(--tu-red) !important; }
.text-primary { color: var(--tu-red) !important; }
.text-success { color: var(--tu-blue-dark) !important; }
