/* =========================
   Apply Page
========================= */

.apply-form-wrap{
  max-width: 860px;
  margin: 0 auto;
}

.apply-form{
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* セクションカード */
.apply-form-section{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

/* セクション見出し */
.apply-form-title{
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.4;
  color: #0f172a;
}

.apply-form-lead{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

/* ラジオ・チェック群 */
.apply-procedure-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.apply-procedure-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: .2s;
}

.apply-procedure-item:hover{
  border-color: #93c5fd;
  background: #f0f7ff;
  transform: translateY(-1px);
}

.apply-procedure-item input{
  accent-color: #0b3d91;
  transform: scale(1.1);
}

.apply-procedure-item span{
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

/* select 共通 */
.apply-form select{
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.apply-form select:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* 有効期限 */
.expiry-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* フィルタグループ */
.filter-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label{
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

/* 日程サマリー */
.apply-course-summary{
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #cfe0ff;
}

.apply-course-summary p{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
}

.apply-course-summary p:last-child{
  margin-bottom: 0;
}

.apply-course-summary strong{
  color: #0b3d91;
  display: inline-block;
  min-width: 0px;
}

/* OCR枠 */
.apply-ocr-box{
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

/* ボタン */
.filter-actions{
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.filter-submit-btn,
.filter-reset-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.filter-submit-btn{
  background: linear-gradient(135deg, #0b3d91 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.filter-submit-btn:hover{
  transform: translateY(-1px);
  opacity: 1;
}

.filter-reset-btn{
  background: #eef2f7;
  color: #334155;
}

.filter-reset-btn:hover{
  background: #e2e8f0;
}

/* セクション出現時の見栄え */
#licensePossessionSection,
#expirySection,
#courseScheduleSection,
#changeExistsSection,
#changeItemsSection{
  transition: opacity .2s ease, transform .2s ease;
}

/* スマホ */
@media (max-width: 768px){
  .apply-form-section{
    padding: 18px;
    border-radius: 14px;
  }

  .apply-form-title{
    font-size: 18px;
  }

  .apply-procedure-list{
    grid-template-columns: 1fr;
  }

 .birth-row,
  .expiry-row{
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap:8px;
  }

  .birth-row select,
  .expiry-row select{
    min-width:0;
    padding:0 8px;
    font-size:14px;
  }

  .apply-course-summary strong{
    min-width: 0px;
  }
}


.name-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  margin-top:12px;
}

.apply-form input[type="text"]{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  font-size:15px;
  color:#0f172a;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}

.apply-form input[type="text"]:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37, 99, 235, 0.12);
}

.apply-form input[type="text"]::placeholder{
  color:#94a3b8;
}

@media(max-width:768px){
  .name-grid{
    grid-template-columns:1fr;
  }
}

.apply-form-title .required-badge{
  vertical-align: middle;
font-size:16px;
}



@media (max-width: 768px){

  .apply-form-wrap{
    max-width: 100%;
  }

  .apply-form{
    gap: 14px;
  }

  .apply-form-section{
    padding: 14px;
    border-radius: 12px;
  }

  .apply-form-title{
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.35;
  }

  .apply-form-lead{
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .filter-group{
    gap: 6px;
    margin-bottom: 12px;
  }

  .filter-group label{
    font-size: 13px;
    margin-bottom: 4px;
  }

  .apply-procedure-list{
    gap: 8px;
  }

  .apply-procedure-item{
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .apply-procedure-item span{
    font-size: 14px;
  }

  .apply-form select,
  .apply-form input[type="text"],
  .apply-form input[type="email"]{
    min-height: 42px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
  }

  .apply-form textarea{
    min-height: 140px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .name-grid,
  .address-grid,
  .two-col-grid{
    gap: 10px;
  }

  .birth-row,
  .expiry-row{
    gap: 6px;
  }

  .inline-zip-row{
    gap: 8px;
  }

  .filter-actions{
    gap: 8px;
    margin-top: 10px;
  }

  .filter-submit-btn,
  .filter-reset-btn{
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  .apply-course-summary{
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .apply-course-summary p{
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.55;
  }

  .shipping-note,
  .remarks-note,
  .filter-note,
  .address-search-status{
    font-size: 12px;
    line-height: 1.55;
  }

  .remarks-examples{
    padding-left: 1.1em;
    line-height: 1.6;
  }

  .remarks-examples li{
    margin-bottom: 4px;
  }

  .required-badge{
    font-size: 0.8em;
    margin-left: 4px;
  }
}