fieldset {
  border: none;             /* 테두리 없앰 */
  margin: 0 0 20px 0;
  padding: 0;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  padding: 0;
}

body {
  font-family: sans-serif;
  background: #f4f6fa;
  padding: 20px;
  margin: 0;
  display: flex;
  justify-content: center;
}

.form-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
}

.notice {
  background: #e0f7fa;
  padding: 10px;
  border-left: 5px solid #00796b;
  font-weight: bold;
  margin-bottom: 20px;
  gap: 10px;
}

h2, h3 {
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 5px;
}

button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #1565c0;
}

.form-section {
  margin: 25px 0;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  display: block
}

.form-section ul {
  padding-left: 20px;
}

.form-section ul li {
  margin-bottom: 6px;
  font-size: 16px;
}

.bike-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 12px;
}

  /* .bike-table th, .bike-table td {
      padding: 10px 8px;
      border: 1px solid #aaa;
      text-align: center;
      white-space: nowrap;
    } */

.bike-table th {
  background-color: #e3f2fd;
}

.counter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.counter input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 30px;
}

.counter button {
  width: 30px;
  height: 30px;
  background: #eee;
  border: 1px solid #ccc;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.counter button:hover {
  background: #ddd;
}

.counter-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 5px;
    }
    .counter-wrap button {
      width: 30px;
      height: 30px;
      font-weight: bold;
      border: 1px solid #ccc;
      background: #eee;
      border-radius: 4px;
      cursor: pointer;
    }
    .counter-wrap input {
      width: 40px;
      height: 30px;
      text-align: center;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .info-table {
      width: 100%;
      max-width: 700px;
      border-collapse: collapse;
      margin-bottom: 1em;
      table-layout: fixed;
    }
    .info-table th, .info-table td {
      border: 1px solid #999;
      padding: 8px;
      text-align: center;
      vertical-align: middle;
      word-break: keep-all;
      
    }

    .bike-table th:nth-child(1) {
      width: 15%;
    }
    .bike-table th:nth-child(4),
    .bike-table td:nth-child(4) {
      width: 35%;
    }
    .bike-table th, .bike-table td {
      padding: 10px 8px;
      border: 1px solid #aaa;
      text-align: center;
      white-space: normal;
      /* white-space: nowrap; */
    }

    /* .bike-table td:nth-child(2) {
      font-size: 0.85rem;
    } */

   @media screen and (max-width: 768px) {
  .bike-table th,
  .bike-table td,
  .info-table th,
  .info-table td {
    font-size: 13px;
    padding: 6px;
    word-break: break-word;
    white-space: normal;
  }

  table.bike-table,
  table.info-table {
    width: 100%;
    table-layout: fixed;
  }

  .bike-table-wrapper,
  .info-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
  }

  .bike-table input[type="text"] {
    width: 40px;
    font-size: 10px;
    padding: 4px;
  }

  .counter-wrap button {
    font-size: 12px;
    padding: 4px 6px;
  }
}
/* 제목+아이콘 정렬 보정 */
#form-title{
  display: flex;
  align-items: center;    /* 아이콘과 텍스트 수직 가운데 */
  justify-content: center;/* 전체 가운데 정렬 */
  gap: 2px;              /* 아이콘-텍스트 간격 */
  line-height: 1.1;       /* 제목 줄간격 살짝 타이트하게 */
  margin: 0 0 25px;
  flex-wrap: nowrap;       /*줄바꿈 금지 */
  white-space: nowrap;     /*글씨 줄바꿈 금지*/
}

#form-title .icon{
  width: 34px;            /* 필요시 48px 대신 40px로 살짝 줄임 */
  height: 40px;           /* 정사각으로 맞춰 흔들림 방지 */
  display: block;         /* baseline 영향 제거 */
  object-fit: contain;    /* 비율 유지 */
  flex-shrink: 0;
  /* 미세 높이 보정이 필요하면 아래 한 줄로 1~2px만 조정 */
  transform: translateY(1px);
}

/* 모바일에서 아이콘 살짝 더 작게 */
@media (max-width: 480px){
  #form-title { font-size: 1.3em; gap: 2px; }
  #form-title .icon{ width: 34px; height: 34px; }
}
.bike-table tr.soldout-row td {
  background: #f7f7f7;
}

.bike-table td.qty-cell {
  position: relative;
  text-align: center;
  vertical-align: middle;
}

.soldout-badge {
  display: inline-block;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 18px;
  color: #b71c1c;
  background: #f2dede;
  border: 1px solid #e0b4b4;
  border-radius: 6px;
}

.soldout-row .counter-wrap { display: none; }

