/* 申し込みフォームページのスタイル */
/* style.cssのカラーパレットを使用 */

.apply-main {
  min-height: 100vh;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #E8EAED 0%, #D5E3E8 100%);
}

.apply-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2C3E50;
}

.apply-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* セクション */
.calendar-section,
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-heading {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #2C3E50;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number {
  display: inline-block;
  background: #3498DB;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
}

/* カレンダースタイル */
.calendar-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-month {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2C3E50;
}

.calendar-nav-btn {
  background: #3498DB;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  background: #2B7A8B;
  transform: scale(1.05);
}

.calendar-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 1rem;
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  padding: 0.8rem;
  color: #666;
  font-size: 0.9rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: #fff;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: #f0f8ff;
  border-color: #3498DB;
  transform: scale(1.05);
}

.calendar-day.selected {
  background: #3498DB;
  color: #fff;
  border-color: #3498DB;
  font-weight: bold;
}

.calendar-day.disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}

.calendar-day.empty {
  border: none;
  cursor: default;
}

.calendar-day.today {
  border-color: #E74C3C;
  font-weight: bold;
}

/* 時間帯選択 */
.time-slot-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f0f8ff;
  border-radius: 12px;
}

.time-slot-heading {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2C3E50;
  text-align: center;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.time-slot {
  padding: 1rem;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.time-slot:hover:not(.disabled) {
  background: #f0f8ff;
  border-color: #3498DB;
  transform: translateY(-2px);
}

.time-slot.selected {
  background: #3498DB;
  color: #fff;
  border-color: #3498DB;
}

.time-slot.disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}

/* 選択された日時の表示 */
.selected-datetime-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #3498DB;
  border-radius: 12px;
  text-align: center;
}

.selected-label {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.selected-datetime-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.selected-datetime-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2C3E50;
}

.copy-btn {
  background: #3498DB;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #2B7A8B;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: #51cf66;
}

.selected-note {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
}

/* フォームに反映するボタン */
.apply-to-form-btn {
  background: #51cf66;
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(81, 207, 102, 0.4);
}

.apply-to-form-btn:hover {
  background: #40c057;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(81, 207, 102, 0.5);
}

.apply-to-form-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(81, 207, 102, 0.3);
}

.datetime-label {
  font-weight: bold;
  color: #3498DB;
  margin-right: 0.5rem;
}

/* 取り消しボタン */
.remove-datetime-btn {
  background: #E74C3C;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.remove-datetime-btn:hover {
  background: #C0392B;
  transform: scale(1.1);
}

.remove-datetime-btn:active {
  transform: scale(0.95);
}

/* フォームセクション */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-note {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .apply-main {
    padding: 80px 0 40px;
  }

  .apply-title {
    font-size: 1.8rem;
  }

  .apply-subtitle {
    font-size: 1rem;
  }

  .calendar-section,
  .form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .section-heading {
    font-size: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .calendar-month {
    font-size: 1.2rem;
  }

  .calendar-nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    font-size: 0.9rem;
  }

  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .time-slot {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .selected-datetime-box {
    flex-direction: column;
    gap: 0.8rem;
  }

  .selected-datetime-text {
    font-size: 1.2rem;
  }

  .form-container iframe {
    height: 1400px;
  }
}
