@charset "UTF-8";

body { line-height: 1.6; background:#fff; }
.container-limit { max-width:910px; margin:0 auto; }
table.form-table { width:100%; border-collapse:collapse; margin-top:15px; }
table.form-table th, table.form-table td {
    border:1px solid #999; padding:8px 10px; vertical-align:middle;
}
th { background:#f8f8f8; width:25%; }
.section-title { background:#003366; color:#fff; font-weight:bold; padding:8px 12px; margin-top:30px; border-radius:4px; }
textarea { width:100%; resize:none; }
.section-title { background:#003366; color:#fff; font-weight:bold; padding:8px 12px; margin-top:30px; border-radius:4px; }
.char-count { font-size:0.9rem; color:#666; text-align:right; margin-top:5px; }

/* ===== 상단 헤더 ===== */
.header {
  text-align: center;
  margin-bottom: 30px;
  background: #0a4199;
}
.header img {
  height: 60px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.header h4 {
  font-weight: 700;
  color: #0d6efd;
  margin: 0;
}
.header p {
  color: #6c757d;
  margin: 0;
}

.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff6f6;
}

.error-message {
  position: absolute;
  left: 0;
  top: 100%;
  transform: translateY(2px);
  background: #fff6f6;
  color: #dc3545;
  font-size: 0.85rem;
  border: 1px solid #dc3545;
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  z-index: 2000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 부모 컨테이너가 위치 기준이 되도록 */
.error-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
  
.agreement-box {
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 16px;
	background-color: #fafafa;
	margin-top: 20px;
	max-height: 400px;
	overflow-y: auto;
}

.agreement-title {
	font-weight: bold;
	margin-bottom: 10px;
}

footer {
	border-top: 1px solid #ccc;
	margin-top: 40px;
	padding: 15px 0;
	font-size: 0.9rem;
	color: #666;
	text-align: center;
}


/* ===== 주소 카드 기본 디자인 ===== */
.address-card {
  background-color: #f9fafb;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.address-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.address-card input[type="text"],
.address-card input[type="date"] {
  font-size: 0.95rem;
}

/* ZIP 행 가로 정렬 */
.address-card .zip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* PC 기본 */
.address-card input[name="zip_code"] {
  max-width: 120px;
}

.address-card button {
  white-space: nowrap;
}

/* 기본주소, 상세주소는 항상 100% 폭 */
.address-card input[name="address1"],
.address-card input[name="address2"] {
  width: 100%;
  margin-top: 8px;
}

  .apply-header {
  background: #f0f4ff;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
}
.apply-header span {
  display: inline-block;
  margin-right: 20px;
}

/* ===== 반응형 입력칸 최적화 ===== */
@media (max-width: 768px) {

/* 테이블 전체 폭 */
table {
  width: 100% !important;
  border-collapse: collapse;
}

/* 각 셀 세로 정렬 */
table tr {
  display: block;
  margin-bottom: 1rem;
}

table th, table td {
  display: block;
  width: 100% !important;
  text-align: left;
  padding: 6px 8px;
}

/* input, select, textarea 전폭 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-top: 4px;
}

/* 버튼, 주소 찾기 등 flex 요소 */
.d-flex {
  flex-direction: column;
  align-items: stretch;
}

.d-flex > * {
  width: 100% !important;
  margin-bottom: 6px;
}

/* 긴 텍스트영역 / 학업계획서 등 */
textarea {
  min-height: 180px;
}

/* 사진 업로드 + 미리보기 */
#photoPreview {
  max-width: 180px;
  margin-top: 10px;
}

/* 라디오나 체크박스 간격 */
label {
  display: inline-block;
  margin-bottom: 6px;
}

/* 제출 버튼 중앙 정렬 */
  .btn {
    width: 100%;
    font-size: 1rem;
  }
  
    .address-card {
    padding: 12px;
  }

  /* 우편번호+버튼 한 줄 유지 */
  .address-card .zip-row {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .address-card input[name="zip_code"] {
    flex: 0 0 35%;
    max-width: 100px;
  }

  .address-card button {
    flex: 1;
    font-size: 0.95rem;
  }

  /* 나머지 input 전체 폭 */
  .address-card input[name="address1"],
  .address-card input[name="address2"] {
    width: 100%;
    margin-top: 8px;
  }

  /* 카드 그림자 완화 */
  .address-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .address-card .radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .address-card .radio-group label {
    margin-bottom: 4px;
  }
  

}


