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

:root {
  --kanit-font: "Kanit", sans-serif;
}

.orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rotate-video {
  width: 80%;
  height: auto;
}

body.locked {
  overflow: hidden; /* Prevent scrolling when overlay is shown */
}

body {
  font-family: var(--kanit-font);
  margin: 0;
  padding: 0;
  color: #fff;
  background-image: url("/themes/smtractors/images/22.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000;
  /* overflow: hidden; */
}
.wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100vh;
}

.container {
  display: flex;
  width: 200vw; /* Twice the width to fit two pages */
  transition: transform 0.7s ease-in-out;
}

.page {
  width: 100vw;
  height: 100vh;
  padding: 20px 30px;
}

.pages {
  width: 96vw;
  height: 100vh;
  padding: 20px 30px;
}

.first-page {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.content {
  position: relative;
  color: white;
  text-align: start;
  padding-left: 1em;
  z-index: 1;
}

.content h1 {
  font-size: 2.5em;
  margin: 0;
}

.first-page-button {
  padding: 10px 20px;
  background: #dd042b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer !important;
}

.first-page-button:hover {
  background-color: rgb(255, 26, 26);
}

#languageSelect {
  color: white;
}
/* Style the options */
#languageSelect option {
  background: #ca4646; /* Light gray background */
  color: #ffffff; /* Dark text color */
  padding: 10px;
}

/* Second page styling */
.second-page {
  display: grid;
  grid-template-rows: min-content 1fr;
  align-items: center;
  background-color: #222;
  color: white;
  background-image: url(/themes/smtractors/images/22.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100vw;
}

.second-page-header {
  display: flex;
  justify-content: space-between;
}

.second-page-btnBack {
  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  height: 43px;
  align-items: center;
  padding: 7px 7px;
  cursor: pointer;
}

.second-page-btnBack:hover {
  background-color: rgb(48, 48, 48);
}

.second-page-select-sec {
  color: #8e8e8e;
  align-self: start;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
}
.second-page-select {
  /* color: rgb(215, 215, 215); */
  /* color: #c12424; */
  border: none;
  font-family: var(--kanit-font);
  /* outline: none; */
  font-size: 16px;
}

.second-page-content {
  align-self: start;
  /* padding-inline: 220px; */
  padding-block: 20px;
  justify-content: center;
  display: grid;
  gap: 10px;
}

.second-page-content h1 {
  margin: 0;
  font-size: 36px;
}

.second-page-content h4 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.second-page-container {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.second-page-input-section {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 2fr 1fr;
}

.second-page-input-sec {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #8e8e8e;
  justify-content: space-between;
  width: 250px;
  gap: 20px;
}

.second-page-input-sec input {
  background-color: transparent;
  color: #8e8e8e;
  border: none;
  font-family: var(--kanit-font);
  font-size: 16px;
  outline: none;
}

.second-page-input-sec button {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.second-page-input-sec button:hover {
  color: white;
  transform: scale(1.15);
}

.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-slide img {
  width: 164px;
  height: 223px;
  object-fit: cover;
  border-radius: 5px;
}

.feather {
  width: 24px;
  height: 24px;
  stroke: white; /* Changes icon color */
  stroke-width: 2px; /* Adjusts thickness */
}

.icon-large {
  width: 32px;
  height: 32px;
  stroke: red;
}

.icon-hover:hover {
  stroke: green;
  transition: stroke 0.3s ease-in-out;
}

.card {
  display: grid;
  border-radius: 15px;
  height: 320px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 100%);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: white;
  font-family: "Arial", sans-serif;
  cursor: pointer;
}

.card-top1 {
  display: grid;
  align-content: end;
  padding-inline: 30px;
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("/themes/smtractors/images/image1.png") no-repeat center/cover;
}

.card-top2 {
  display: grid;
  align-content: end;
  padding-inline: 30px;
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("/themes/smtractors/images/image2.png") no-repeat center/cover;
}

.card-top3 {
  display: grid;
  align-content: end;
  padding-inline: 30px;
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("/themes/smtractors/images/image3.png") no-repeat center/cover;
}

.card-bottom {
  padding-inline: 30px;
  padding-block: 20px;
  display: grid;
  align-content: start;
  background: linear-gradient(to bottom, black 10%, rgb(0, 0, 0) 100%);
}

.card.active .card-bottom {
  background: linear-gradient(to bottom, black 10%, rgba(150, 0, 0, 1) 100%);
}

.card img {
  width: 80%;
  display: block;
  margin: 0 auto;
}

.card h2 {
  font-size: 1.63rem;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: var(--kanit-font);
}

.card p {
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: var(--kanit-font);
  margin: 0;
  text-align: start;
}

/* //////////////////// third page ////////////////*/

h4 {
  font-weight: 400;
}

.thirdPage {
  display: flex;
  padding: 20px;
  background-image: url("/themes/smtractors/images/22.png");
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
}

/* Left Section */
.left-section {
  width: 30%;
}

.left-section h2 {
  font-size: 25px;
  /* margin-bottom: 20px; */
}

.tractor-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, #353535 0%, #000000 100%);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tractor-btn img {
  width: 50px;
  margin-right: 12px;
}

.tractor-btn span {
  font-size: 19px;
  font-weight: 600;
}

.tractor-btn.active {
  background: linear-gradient(to bottom, #dd042b 0%, #000000 100%);
}

.compare-btn {
  margin-top: 20px;
  text-align: center;
  /* background-color: #222; */
  height: 40px;
  display: grid;
  align-items: center;
  border: 2px solid;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.compare-btn:hover {
  background: #dd042b;
  border: 2px solid #dd042b;
}

/* Right Section */
.right-section {
  width: 70%;
  padding-left: 20px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid gray;
  width: max-content;
}

.tab {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 14px;
  color: #ccc;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #fff;
  border-bottom: 2px solid red;
}

.main-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.slider-container {
  display: flex;
  transition: transform 0.3s ease;
}

.arrow-section {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  padding-top: 15px;
}
.arrows {
  display: flex;
  gap: 10px;
  justify-self: flex-end;
}
.arrow {
  height: 35px;
  display: grid;
  align-content: center;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
}

.left-arrow {
  left: 5px;
}

.right-arrow {
  right: 5px;
}

.arrow:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  display: none;
}
/* Info Section */
.info-section {
  display: none;
}
.info-section.active {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(auto-fit, 339px);
  gap: 20px;
  margin-top: 20px;
  /* overflow-x: hidden; */
  transition: transform 0.4s ease-in-out;
}

.info-section-content {
  display: grid;
  grid-template-rows: min-content;
  grid-template-columns: 339px;
  /* gap: 20px; */
  width: 100%;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.info-box {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  background-color: #111;
  border: 1px solid red;
  border-bottom: none !important;
  border-bottom-right-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  padding: 16px 16px 0;
  border-radius: 8px;
  width: 90%;
}

.info-box2 {
  display: grid;
  justify-content: space-between;
  background-color: #111;
  padding-top: 10px !important;
  border-top-right-radius: 0px !important;
  border-top-left-radius: 0px !important;
  border-top: none !important;
  padding: 16px;
  border: 1px solid red;
  border-radius: 8px;
  width: 90%;
}

.info-box2 h4 {
  margin: 0;
  color: #999;
}

.info-box h4 {
  margin: 0;
  color: #999;
}

.info-box2 p {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 0;
  font-size: 16px;
}

/* Bottom Buttons */
.bottom-buttons {
  /* margin-top: 20px; */
  display: flex;
  justify-self: start;
  align-items: center;
  gap: 20px;
}

.know-more {
  background-color: transparent;
  border: 2px solid;
}
.know-more:hover {
  border: 2px solid #dd042b;
}

button {
  background: #dd042b;
  font-family: var(--kanit-font);
  color: white;
  border: 2px solid #dd042b;
  height: 40px;
  padding-inline: 20px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #b30000;
}

.shareBtn {
  height: 20px;
  align-self: center;
  cursor: pointer;
}

/************** Forth Page ***************/
h2 {
  font-size: 28px;
  padding-bottom: 20px;
  font-weight: bold;
  margin: 0;
}

/* Table styling */
/* Custom scrollbar */
.table-sec::-webkit-scrollbar {
  width: 4px; /* Width of the scrollbar */
}

.table-sec::-webkit-scrollbar-track {
  background: #333; /* Dark background color for track */
  border-radius: 10px;
}

.table-sec::-webkit-scrollbar-thumb {
  background: #ff3c3c; /* Red color for thumb */
  border-radius: 10px;
}

.table-sec::-webkit-scrollbar-thumb:hover {
  background: #ff1a1a; /* Lighter red when hovered */
}

/* Ensure the container is scrollable */
.table-container {
  max-height: 100vh; /* Adjust height as needed */
}
.table-container-header {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  grid-template-columns: min-content 1fr;
}
.table-sec {
  max-height: 80vh;
  overflow-y: auto;
}
table {
  width: 98.5%;
  border-collapse: collapse;
  background-color: transparent;
  border: 1px solid #525252;
}

th,
td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #333;

  border: 1px solid #525252;
}

th {
  /* background-color: #111; */
  color: #ffffff;
  font-size: 18px;

  border: 1px solid #525252;
}

td {
  font-size: 16px;
}

.tractor-title img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 5px;
}

/* Cross and check styling */
.check {
  color: #00ff00;
  font-size: 18px;
}

.cross {
  color: #777777;
  font-size: 18px;
}

/* Hover and focus */
/* tr:hover {
    background-color: #222;
  } */

@media (max-width: 768px) {
  th,
  td {
    font-size: 12px;
    padding: 8px;
  }

  .tractor-title img {
    width: 30px;
  }
}

/******************* Fifth Page *************/
/* Container */
.fifthPage {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.fifthPage-content {
  background-image: url("/themes/smtractors/images/22.png");
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 20px;
  overflow: hidden;
  height: 450px;
  grid-template-columns: 1fr 1fr;
  width: 80%;
  display: grid;
  grid-auto-flow: column;
}

/* Left Side - Image Section */
.image-section {
  flex: 1;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  width: 100%;
  overflow: hidden;
}

/* Right Side - Form Section */
.form-section {
  flex: 1;
  padding: 40px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Form Input Fields */
.input-group {
  margin-bottom: 20px;
}

.input-group input,
select {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  color: #fff;
  font-size: 16px;
  outline: none;
  font-family: var(--kanit-font);
}

.input-group input::placeholder,
select {
  color: #ccc;
}

select {
  appearance: none;
  cursor: pointer;
}

#state {
  /* background-color: gray; */
  /* color: red; */
  padding: 10px;
  appearance: none; /* Removes default dropdown arrow */
  -webkit-appearance: none; /* For Safari */
  -moz-appearance: none; /* For Firefox */
  cursor: pointer;
}

/* Style the options */
#state option {
  background: #ca4646; /* Light gray background */
  color: #ffffff; /* Dark text color */
  padding: 10px;
}

/* Style the selected option in the dropdown */
#state option:checked {
  background: #d3d3d3;
  color: red;
}

/* Submit Button */
.submitBtn {
  display: grid;
  align-content: center;
  background: #dd042b;
  color: #fff;
  padding: 12px;
  border: 2px solid #dd042b;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  width: 120px;
}

.submitBtn:hover {
  background-color: #ff1a1a;
}

/* Popup Background */
.popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* Popup Content */
.popup-content {
  background: linear-gradient(to right, #400000, #000);
  padding: 45px 70px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  position: relative;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 0;
  right: 23px;
  font-size: 35px;
  color: #adabab;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ff3c3c;
}

.close-btn-main {
  position: absolute;
  top: 20px;
  font-size: 35px;
  color: #adabab;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
  right: 20px;
  height: 15px;
  line-height: 10px;
}

.close-btn-main:hover {
  color: #ff3c3c;
}

/* Popup Icon */
.popup-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

@media only screen and (min-width: 1200px) and (min-height: 670px) {
  .first-page-button {
    display: grid;
    align-content: center;
    height: 60px;
    padding-inline: 30px !important;
  }
  .second-page {
    padding-block: 30px;
  }
  .second-page-content {
    padding-inline: 125px;
    justify-content: unset;
  }
  .second-page-container {
    gap: 35px;
  }
  .card {
    height: 489px;
  }
  .card h2 {
    font-size: 2.3rem !important;
  }
  .card p {
    font-size: 1.7rem !important;
  }
  .content h1 {
    font-size: 3.5em;
  }
  .first-page-button {
    font-size: 24px;
  }
  .second-page-select {
    font-size: 18px;
  }
  .second-page-select-sec {
    font-size: 18px;
  }
  .left-section {
    width: 30% !important;
  }
  .right-section {
    width: 70% !important;
  }
  .left-section h2 {
    font-size: 25px;
  }
  .tractor-btn span {
    font-size: 24px !important;
  }
  .compare-btn {
    height: 60px !important;
    font-size: 21px !important;
  }
  .tab {
    font-size: 20px !important;
  }
  .info-section-content {
    grid-template-rows: 120px min-content !important;
  }
  .info-box h4 {
    font-size: 21px !important;
  }
  .gear-speed {
    font-size: 20px !important;
  }
  .tyre-size {
    font-size: 20px !important;
  }
  .info-box2 {
    padding-top: 10px !important;
  }

  .info-box2 h4 {
    font-size: 20px !important;
  }
  .info-box2 p {
    font-size: 20px !important;
  }
  .request-call {
    height: 60px !important;
    padding-inline: 30px !important;
    border-radius: 10px !important;
    font-size: 20px !important;
  }
  .know-more {
    height: 60px !important;
    padding-inline: 30px !important;
    border-radius: 10px !important;
    font-size: 20px !important;
  }
  .arrow {
    height: 50px !important;
    padding-inline: 24px !important;
    font-size: 22px !important;
  }
}

@media only screen and (min-width: 1700px) and (min-height: 670px) {
  .card {
    height: 609px;
  }
  .fifthPage-content {
    height: 595px;
  }
  .pages {
    width: 100vw;
    padding-block: 50px;
  }
  .tractor-btn {
    margin-bottom: 38px;
  }
  .left-section h2 {
    padding-bottom: 30px;
  }
}

@media only screen and (max-width: 940px) {
  .card {
    height: 295px;
  }
  .card h2 {
    font-size: 1.3rem !important;
  }
  .content h1 {
    font-size: 2em;
  }
  .tractor-btn {
    margin-bottom: 25px;
    padding: 15px !important;
    font-size: 16px !important;
  }
  .info-section.active {
    gap: 10px !important;
    margin-top: 10px !important;
  }
  .info-section-content {
    grid-template-rows: 80px min-content !important;
    font-size: 13px !important;
  }
  .info-box2 p {
    font-size: 13px !important;
  }
  .arrow-section {
    padding-top: 10px !important;
  }
  .input-group input,
  select {
    padding: 5px !important;
    font-size: 12px !important;
  }
  .fifthPage-content {
    height: 375px !important;
  }
  .form-section h2 {
    font-size: 20px !important;
    font-weight: normal;
  }
  .submitBtn {
    font-size: 12px !important;
  }
  .left-section h2 {
    margin-bottom: 0px !important;
    font-size: 17px;
  }
  .table-sec {
    height: 75vh !important;
  }
  .table-container-header h2 {
    font-size: 24px !important;
  }
  .tractor-btn span {
    font-size: 16px !important;
  }
  th,
  td {
    font-size: 13px !important;
  }
}

@media only screen and (max-width: 680px) and (max-height: 420px) {
  .thirdPage {
    padding-top: 10px !important;
  }
  .pages {
    width: 94vw !important;
  }
  .tabs {
    gap: 4px !important;
  }
  .tractor-btn {
    margin-bottom: 10px !important;
  }
  .card {
    height: 275px !important;
  }
  .card p {
    font-size: 0.8rem !important;
  }
  .left-section h2 {
    font-size: 12px;
  }
  .tractor-btn span {
    font-size: 13px !important;
  }
  .compare-btn {
    margin-top: 0px !important;
  }
  .info-section-content {
    grid-template-rows: 80px min-content !important;
    font-size: 13px !important;
  }
}

@media only screen and (min-width: 1100px) {
  .form-section {
    padding-top: 0;
  }
}

/* Share Dropdown Styling */
.share-dropdown {
  position: absolute;
  top: 3px;
  right: -57px;
  background-color: rgb(0 0 0 / 47%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  padding: 0;
  width: 52px;
  z-index: 10;
}

.share-option {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  padding-left: 15px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.share-option-whatsApp {
  padding-left: 16.5px;
}

.share-option-facebook img {
  height: 23.5px !important;
  width: 23.5px !important;
}

.share-option img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  transition: all 0.2s;
}

.share-option img:hover {
  transform: scale(1.14);
}

/* Bottom Buttons Wrapper */
.bottom-buttons-wrapper {
  position: relative; /* Prevents shifting of content */
  width: max-content;
}

/* Bottom Buttons */
