form {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
}

h2 {
  text-align: center;
  font-size: 1.8em;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 20px;
}

table.reservation-form {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

table.reservation-form td {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px 16px;
  vertical-align: top;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

tr:last-child td {
  background: #fffbe6;
  border-left: 5px solid #facc15;
}

label {
  display: inline-block;
  margin-right: 15px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.flex-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap; /* 모바일 줄바꿈 */
}

.flex-inline .date_input {
  flex: 2 1 160px; /* 날짜 입력란 더 넓게 */
  min-width: 140px;
}

.flex-inline select {
  flex: 1 1 60px; /* 시간/분 줄이기 */
  min-width: 60px;
}



.radio-wrap input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #f2c300;
  border-radius: 50%;
  position: relative;
  margin-right: 6px;
  cursor: pointer;
}

.radio-wrap input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background-color: #f2c300;
  border-radius: 50%;
}

.radio-wrap label {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  margin-right: 20px;
}

.flex-inline input[type="number"],
.flex-inline input[type="text"],
.flex-inline input[type="date"] {
  flex: 1;
  min-width: 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
  transition: all 0.2s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

input[type="radio"] {
  transform: scale(1.1);
  margin-right: 4px;
}

.submits {
  background: #357ab8;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submits:hover {
  background: #285a8d;
}

select {
  max-width: 140px;
  background-color: #fff;
  background-image: url('');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

select:disabled {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
}

td[colspan="2"] {
  background: #fafafa;
  border-radius: 8px;
}



.fee-box {
  background: #f0f4ff;
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.fee-box h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #1e3a8a;
}

.fee-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  font-size: 15px;
}

.fee-summary span {
  font-weight: bold;
  text-align: right;
  color: #333;
}

.fee-summary strong {
  color: #d97706;
}

.sca_btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin: 10px 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #ff5722, #e64a19);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  animation: pulseBtn 1.5s infinite;
  transition: background 0.3s;
}

.sca_btn:hover {
  background: linear-gradient(90deg, #e64a19, #d84315);
}

@keyframes pulseBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}


.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-row .item {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ebebeb;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  min-width: 0;
}



.notice-box {
  background: #fffbe6;
  border-left: 5px solid #facc15;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.notice-box strong {
  font-size: 16px;
  color: #d97706;
}

.notice-box ul {
  margin-top: 10px;
  padding-left: 18px;
}

.notice-box li {
  margin-bottom: 8px;
}

.agreement-box {
  margin-bottom: 16px;
}

.agreement-box label.title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  display: inline-block;
  color: #1f2937;
}

.agreement-box textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  resize: vertical;
  line-height: 1.5;
  color: #374151;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.agreement-box .checkbox-wrap {
  margin-top: 8px;
  font-size: 14px;
}

.sub-text {
  font-size: 0.85rem;
  color: #d97706;
  margin-top: 5px;
}

.reservation-form .date_input {
  width: 100%;
  max-width: 300px;
  height: 40px;
  padding: 10px 35px 10px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: url('../image/icon/cal_icon.png') no-repeat right center;
  background-size: 20px 20px;
  box-sizing: border-box;
}

.car-info-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.car-info-item {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1;
}

.car-info-item label {
  margin-bottom: 4px;
  font-weight: bold;
}

.car-info-item input {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}




@media (max-width: 640px) {
  table.reservation-form td {
  padding: 14px 2px;
}


  form {
    padding: 15px;
    font-size: 15px;
  }

  input, textarea {
    font-size: 14px;
  }

  button[type="submit"],
  .submits {
    width: 100%;
  }

.flex-inline .date_input{font-size:9pt;}
.flex-inline .select-box{font-size:10pt;}
.reservation-form .date_input {
  padding: 10px 25px 10px 5px;
 background-position: right 6px center; 
}



   .flex-inline .date_input {
  flex: 3 1 120px; /* 날짜 입력란 더 넓게 */
}

.flex-inline select {
  flex: 1 1 30px; /* 시간/분 줄이기 */
}


  .car-info-row {
    flex-direction: column;
  }

  .car-info-item {
    width: 100%;
  }
}










