@import url("https://fonts.googleapis.com/css2?family=Boldonse&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background: #eeeeee;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ==================================================
           SCREEN
        ================================================== */

.screen {
  width: 100vw;
  height: 100dvh;
  background-image: url("/assets/images/Gradient_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  position: relative;
}

/* ==================================================
           TOP
        ================================================== */

.top-section {
  width: 100%;
  height: 100%;
}

/* ==================================================
           LOGO LEFT
        ================================================== */

.new-holland-logo {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 100px;
  height: auto;
  max-height: 35px;
  object-fit: contain;
  z-index: 20;
}

/* ==================================================
           LOGO RIGHT
        ================================================== */

.taaza-logo {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 75px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  z-index: 20;
}

/* ==================================================
           OVERLAY
        ================================================== */

.top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;

  background: linear-gradient(
    to bottom,
    rgba(0, 45, 125, 0.1),
    rgba(0, 65, 180, 0.08)
  );

  pointer-events: none;
  z-index: 5;
}

/* ==================================================
           FORM SECTION
        ================================================== */

.form-section {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;

  padding: 75px 14px 5px 14px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==================================================
           FORM
        ================================================== */

#detailsForm {
  width: 100%;
}

/* ==================================================
           TITLE
        ================================================== */

h2 {
  width: 100%;
  color: #f1b513;
  text-transform: uppercase;
  font-family: "Boldonse", system-ui;
  font-weight: 400;
  font-size: 1rem;
}

/* ==================================================
           FIELD
        ================================================== */

.field {
  width: 100%;
  margin-bottom: 10px;
  position: relative;
}

/* ==================================================
           LABEL
        ================================================== */

.label {
  display: block;
  width: 100%;
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 14px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ==================================================
           INPUT / SELECT
        ================================================== */

input,
select {
  width: 100%;
  height: 47px;
  border: none;
  outline: none;
  border-radius: 3px;
  background: #ffffff;
  color: #333333;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 0 13px;
}

input::placeholder {
  color: #9ca1aa;
  opacity: 1;
  font-style: italic;
  font-size: 0.8rem;
}

/* ==================================================
           ROW
        ================================================== */

.row {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.half {
  width: calc(50% - 4px);
}

/* ==================================================
           SELECT
        ================================================== */

.select-wrapper {
  width: 100%;
  position: relative;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 35px;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #173b6d;
  pointer-events: none;
}

/* ==================================================
           DIVIDER
        ================================================== */

.divider {
  width: 100%;
  height: 2px;
  background: #ffffff;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

/* ==================================================
           BUTTON
        ================================================== */

.button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 38px;
}

.confirm-btn {
  width: 147px;
  height: 43px;
  border: none;
  outline: none;
  border-radius: 25px;

  background: linear-gradient(to bottom, #f6bc0b 0%, #df9e00 100%);

  color: #ffffff;

  font-family: "Inter", sans-serif;

  font-size: 16px;
  line-height: 43px;
  font-weight: 700;
  text-align: center;
  padding: 0;
  cursor: pointer;

  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.confirm-btn:active {
  transform: translateY(2px);
}

.confirm-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==================================================
           SUCCESS
        ================================================== */

.success-message {
  display: block;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  margin-top: 13px;
  height: 35px;
}

/* =========================================================
           SEARCH FILTER DROPDOWN
        ========================================================= */

.search-dropdown {
  width: 100%;
  position: relative;
}

.search-dropdown-selected {
  width: 100%;
  height: 47px;
  background: #ffffff;
  color: #333333;
  border-radius: 3px;
  padding: 0 40px 0 13px;

  display: flex;
  align-items: center;

  font-family: "Inter", sans-serif;

  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.search-dropdown-selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #173b6d;
}

/* =========================================================
           BLUE SELECTED VALUE
        ========================================================= */

.search-dropdown.has-value .search-dropdown-selected {
  background: #173b6d;
  color: #ffffff;
}

.search-dropdown.has-value .search-dropdown-selected::after {
  border-top-color: #ffffff;
}

/* =========================================================
           DROPDOWN MENU
        ========================================================= */

.search-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 49px;
  background: #ffffff;
  z-index: 99999;
  border-radius: 3px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  overflow: hidden;
}

.search-dropdown.open .search-dropdown-menu {
  display: block;
}

/* =========================================================
           SEARCH INPUT
        ========================================================= */

.search-dropdown-input {
  width: 100%;
  height: 42px;
  border: none !important;
  border-bottom: 1px solid #dddddd !important;
  border-radius: 0 !important;
  outline: none;
  background: #ffffff;
  color: #333333;
  padding: 0 12px;

  font-family: "Inter", sans-serif;

  font-size: 14px;
}

.search-dropdown-input::placeholder {
  color: #999999;
}

/* =========================================================
           OPTIONS
        ========================================================= */

.search-dropdown-list {
  width: 100%;
  max-height: 145px;
  overflow-y: auto;
}

.search-dropdown-option {
  width: 100%;
  min-height: 40px;
  padding: 10px 13px;

  display: flex;
  align-items: center;

  background: #ffffff;
  color: #333333;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  cursor: pointer;
}

.search-dropdown-option:hover {
  background: #eeeeee;
}

/* =========================================================
           BLUE SELECTED OPTION
        ========================================================= */

.search-dropdown-option.selected {
  background: #173b6d;
  color: #ffffff;
}

.search-dropdown-option.selected:hover {
  background: #173b6d;
  color: #ffffff;
}

/* =========================================================
           EMPTY
        ========================================================= */

.search-dropdown-empty {
  padding: 12px 13px;
  color: #999999;
  font-size: 13px;
}

/* =========================================================
           DISABLED
        ========================================================= */

.search-dropdown.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* =========================================================
           HIDDEN REQUIRED VALIDATION
        ========================================================= */

.required-dropdown-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;

  /*
             * IMPORTANT:
             * Do NOT use display:none.
             * Browser must be able to focus this
             * element when required validation fails.
             */
  pointer-events: none;
}
@media only screen and (min-width: 768px) {
  .form-section {
    width: 65vw;
    right: 0;
    margin: auto;
  }
}
