/* ── Form Pages ── */

/* Hero */
.form-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.form-hero__label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-hero__heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111;
  margin: 8px 0 16px;
}

.form-hero__sub {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.8;
}

/* Form Section */
.form-section {
  padding: 0 0 80px;
}

/* Form Card */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1a3a5c;
}

/* Form Group */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.form-required {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
  background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Optional Badge */
.form-optional {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #f0f1f3;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Section Title (sub-heading inside form) */
.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 40px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

/* Grid Layout (2-column) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

/* Date Grid (year/month/day) */
.form-date-grid {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-date-grid .form-select {
  flex: 1;
  min-width: 0;
}

.form-date-sep {
  color: #94a3b8;
  font-weight: 600;
}

/* Radio Group */
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.form-radio input {
  display: none;
}

.form-radio span {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.form-radio input:checked + span {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

.form-radio span:hover {
  border-color: #1a3a5c;
}

/* Hint text */
.form-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* ── Calendar ── */
.form-calendar {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

.form-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.form-calendar__month {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
}

.form-calendar__nav {
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.form-calendar__nav:hover {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

.form-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.form-calendar__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 4px 0 8px;
  text-transform: uppercase;
}

.form-calendar__day {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #334155;
  font-weight: 500;
}

.form-calendar__day:hover:not(.--past):not(.--empty) {
  background: #f0f4f8;
}

.form-calendar__day.--empty {
  cursor: default;
}

.form-calendar__day.--past {
  color: #d1d5db;
  cursor: default;
}

.form-calendar__day.--weekend {
  color: #ef4444;
}

.form-calendar__day.--weekend.--past {
  color: #f0c0c0;
}

.form-calendar__day.--selected {
  background: linear-gradient(135deg, #1a3a5c, #2c5a8c) !important;
  color: #fff !important;
  font-weight: 700;
}

/* Selected date tags */
.form-selected-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.form-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #1a3a5c, #2c5a8c);
  color: #fff;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-date-tag button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.form-date-tag button:hover {
  color: #fff;
}

/* Privacy Checkbox */
.form-privacy {
  margin: 32px 0;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #475569;
}

.form-checkbox input {
  display: none;
}

.form-checkbox__mark {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.form-checkbox input:checked + .form-checkbox__mark {
  background: #1a3a5c;
  border-color: #1a3a5c;
}

.form-checkbox input:checked + .form-checkbox__mark::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.form-checkbox a {
  color: #2563eb;
  text-decoration: underline;
}

/* Submit Button */
.form-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  justify-content: center;
  background: #1a3a5c;
  border-color: #1a3a5c;
}

.form-submit:hover {
  background: #15304d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.2);
}

/* File input */
.form-input-file {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #374151;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.form-input-file:hover {
  border-color: #1a3a5c;
  background: #f1f5f9;
}

/* Inline note (e.g. 1次面接は対面) */
.form-note-inline {
  background: #eff6ff;
  border-left: 3px solid #1a3a5c;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.form-note-inline p {
  font-size: 0.85rem;
  color: #1a3a5c;
  line-height: 1.6;
  margin: 0;
}

/* Form Note */
.form-note {
  margin-top: 24px;
  text-align: center;
}

.form-note p {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.8;
}

/* Other CTA */
.form-other {
  padding: 0 0 80px;
}

.form-other__inner {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-other__text {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 20px;
}

.form-other__inner .btn--outline {
  border-color: #1a3a5c;
  color: #1a3a5c;
}

.form-other__inner .btn--outline:hover {
  background: #1a3a5c;
  color: #fff;
}

/* Casual About */
.casual-about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.casual-about__item {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.casual-about__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(26, 58, 92, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casual-about__icon svg {
  width: 24px;
  height: 24px;
  color: #1a3a5c;
}

.casual-about__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.casual-about__desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

/* Thanks Page */
.thanks-section {
  padding: 160px 0 120px;
  text-align: center;
}

.thanks-card {
  background: #fff;
  border-radius: 20px;
  padding: 64px 48px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.thanks-icon {
  margin-bottom: 24px;
}

.thanks-icon svg {
  width: 64px;
  height: 64px;
}

.thanks-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}

.thanks-text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.9;
  margin-bottom: 32px;
}

.thanks-actions .btn--primary {
  background: #1a3a5c;
  border-color: #1a3a5c;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .form-hero { padding: 120px 0 40px; }
  .form-hero__heading { font-size: 2rem; }
  .casual-about { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .form-hero { padding: 100px 0 32px; }
  .form-hero__heading { font-size: 1.6rem; }
  .form-hero__sub { font-size: 0.85rem; }
  .form-card { padding: 32px 20px; border-radius: 16px; }
  .form-card__title { font-size: 1.1rem; }
  .form-input, .form-select, .form-textarea { padding: 12px 14px; font-size: 0.9rem; }
  .form-radio-group { gap: 8px; }
  .form-radio span { padding: 8px 16px; font-size: 0.82rem; }
  .form-calendar { padding: 16px 12px; }
  .form-calendar__day { padding: 8px 2px; font-size: 0.78rem; }
  .form-section-title { font-size: 1rem; margin: 32px 0 20px; }
  .form-section { padding: 0 0 48px; }
  .form-other { padding: 0 0 48px; }
  .form-other__inner { padding: 28px 20px; }
  .thanks-section { padding: 120px 0 80px; }
  .thanks-card { padding: 40px 24px; }
  .thanks-heading { font-size: 1.3rem; }
  .form-timeslot-grid { grid-template-columns: repeat(3, 1fr); }
  .form-date-block { padding: 12px 12px 14px; }
}

/* Per-date block */
.form-date-block {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-top: 16px;
  background: #f8fafc;
}

.form-date-block + .form-date-block {
  margin-top: 12px;
}

.form-date-block__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-date-block__hint {
  font-size: 0.78rem;
  color: #94a3b8;
}

.form-slot-error {
  color: #e53e3e;
  font-size: 0.82rem;
  margin-top: 6px;
}

/* Time Slot Checkboxes */
.form-timeslot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.form-timeslot {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.form-timeslot input[type="checkbox"] {
  display: none;
}

.form-timeslot__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 4px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.form-timeslot input[type="checkbox"]:checked + .form-timeslot__label {
  background: linear-gradient(135deg, #1a3a5c, #2c5a8c);
  border-color: #1a3a5c;
  color: #fff;
  font-weight: 600;
}

/* ===== 職歴ブロック ===== */
.work-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 20px 16px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.work-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.work-block__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-block__remove {
  font-size: 0.78rem;
  color: #94a3b8;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  padding: 3px 10px;
  transition: color 0.2s, border-color 0.2s;
}

.work-block__remove:hover {
  color: #ef4444;
  border-color: #fca5a5;
}

.work-period {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.work-period__section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  width: 100%;
  margin-bottom: 2px;
}

.work-period select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.work-period select:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.work-period select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: default;
}

.work-period__sep {
  font-size: 0.9rem;
  color: #9ca3af;
}

.work-period__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
  margin-left: 4px;
}

.work-period__label:has(input:checked) {
  border-color: #1a3a5c;
  background: #eef2f8;
  color: #1a3a5c;
  font-weight: 600;
}

.work-period__label input {
  display: none;
}

.btn-add-work {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 9px 20px;
  border: 2px dashed #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-add-work:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
