*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Kanit", sans-serif;
  background: #0a0a0a;
  color: #fff;
}

.login-btn a{
  color: #fff;
  text-decoration: none;
}

.login-btn a:hover{
  color: #000;
}

/* Header */
header {
  width: 100%;
  background: #000;
  color: #00e5ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  border-bottom: 2px solid #00e5ff;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

header .logo img {
  width: 80px;
  height: auto;
}

header .login-btn {
  border: 2px solid #00e5ff;
  padding: 8px 16px;
  background: transparent;
  color: #00e5ff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

header .login-btn:hover {
  background: #00e5ff;
  color: #000;
  box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background: #111;
  padding: 80px 100px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), 0 0 30px rgba(155, 0, 255, 0.3);
  text-align: center;
  border: 2px solid #00e5ff;
}

.card h1 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00e5ff, 0 0 20px #9b00ff;
}

/* Footer */
footer {
  background: #000;
  color: #ccc;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  border-top: 2px solid #00e5ff;
}

/* Boxes */
.box-wrapper{
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: space-between;
  gap: 50px; 
}

.box{
  width: 50%;
  border: 2px solid #00E5FF;
  padding: 30px;
  border-radius: 10px;
}

/* Circle container for car selection */
.circle-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 30px auto;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-item {
  position: absolute;
  transform: rotate(calc(360deg / var(--total) * (var(--i) - 1)))
             translate(160px)
             rotate(calc(-360deg / var(--total) * (var(--i) - 1)));
  text-align: center;
}

.circle-item input {
  display: none; /* hide checkbox */
}

.car-image {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background-color: #000;
  border-radius: 50%;
  border: 1px solid #333;
  transition: transform 0.3s ease-in-out, border-color 0.3s, box-shadow 0.3s;
  padding: 10px;
  cursor: pointer;
}

.circle-item:hover .car-image {
  border-color: #ff6600;
}

.circle-item input:checked + .car-image {
  border-color: #00ffcc;
  box-shadow: 0 0 15px #00ffcc;
}

.circle-item span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}

input[type="checkbox"]:disabled + img {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal styling */
.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
}

.modal-content {
  background-color: #222;
  padding: 30px;
  border-radius: 10px;
  width: 80%;      
  max-width: 1200px; 
  text-align: center;
  color: #fff;
  overflow-x: auto; 
  max-height: 80vh; 
  overflow-y: auto;
  box-shadow: 0 0 20px #00e5ff, 0 0 40px #9b00ff;
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.modal-content table th,
.modal-content table td {
  border: 1px solid #00e5ff;
  padding: 8px 12px;
  text-align: center;
}

.modal-content table th {
  background-color: #111;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

/* Buttons */
.btn {
  margin-top: 20px;
  border: 2px solid #00e5ff;
  padding: 8px 16px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn:hover {
  background: #00e5ff;
  color: #000;
  box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
}

.form-section{
  padding: 100px 50px;
}



/* Responsive */
@media (max-width: 768px) {
  .card {
    width: 90%;
    padding: 50px 20px;
  }
  .card h1 {
    font-size: 30px;
  }
  
   .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 15px;
  }
  .modal-content table {
    font-size: 12px;
  }
  .modal-content th,
  .modal-content td {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 40px 15px;
  }
  .card h1 {
    font-size: 24px;
  }
  
  .box-wrapper{
    display: flex;
    flex-direction: column-reverse;
    margin: 0 auto;
    justify-content: space-between;
    gap: 30px; 
  }

  .box{
    width: 100%;
    border: 2px solid #00E5FF;
    padding: 30px;
  }

  .form-section{
    padding: 50px 20px;
  }

  .circle-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 100px auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right-box{
    overflow: hidden;
    padding-bottom: 50px;
  }

  .car-image {
    width: 80px;
    height: 80px;
    object-fit: contain;  
    background-color: #000; 
    border-radius: 50%;
    border: 1px solid #333;
    transition: transform 0.3s ease-in-out, border-color 0.3s, box-shadow 0.3s;
    padding: 10px;
    cursor: pointer;
  }

  .circle-item {
    position: absolute;
    transform: rotate(calc(360deg / var(--total) * (var(--i) - 1)))
               translate(130px)
               rotate(calc(-360deg / var(--total) * (var(--i) - 1)));
    text-align: center;
  }

  .stitle{
    margin-bottom: 150px;
    text-align: center;
  }
  
  .modal-content table {
    font-size: 10px;
  }
  .modal-content th,
  .modal-content td {
    padding: 4px;
  }
  .modal-content img {
    width: 80px;
    height: 80px;
  }
}
