/* Global & Background */
body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  /* 上部20%を濃紺から白へのグラデーション */
  /* 参考色に近い深いブルー(#001e43)から開始し、徐々に明るくして白へ */
  background: linear-gradient(to bottom, #001e43 0%, #003366 3%, #ffffff 20%, #ffffff 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #333;
}

/* Container */
.form-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 30, 67, 0.15);
  /* 影にも青みを足す */
  box-sizing: border-box;
}

/* Typography */
h2 {
  margin-bottom: 8px;
  font-weight: 700;
  color: #001e43;
  /* Updated Deep Blue */
}

.form-desc {
  margin-bottom: 32px;
  color: #5a6b8c;
  font-size: 14px;
}

/* Input Groups */
.input-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #001e43;
}

.section-label {
  margin-bottom: 12px;
  font-size: 15px;
}

/* Basic Inputs */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  background: #f8f9fa;
}

input:focus,
textarea:focus {
  border-color: #001e43;
  box-shadow: 0 0 0 3px rgba(0, 30, 67, 0.1);
  outline: none;
  background: #fff;
}

/* Radio Cards Logic */
.radio-card-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card-label {
  display: block;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.radio-card-label:hover {
  background-color: #f0f4f8;
  border-color: #bbc4d6;
}

/* Selected State */
.radio-card input:checked+.radio-card-label {
  border: 2px solid #001e43;
  /* Updated Deep Blue */
  background-color: #f4f6f9;
  padding: 15px;
  /* Adjust for border width */
  box-shadow: 0 4px 12px rgba(0, 30, 67, 0.08);
}

/* Card Content Typography */
.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  align-items: center;
}

.service-title {
  font-weight: 700;
  color: #001e43;
}

.service-price {
  font-weight: 600;
  color: #003366;
}

.card-desc {
  font-size: 13px;
  color: #666;
}

/* Submit Button */
button#submit-btn {
  width: 100%;
  padding: 16px;
  background: #001e43;
  /* Updated Deep Blue */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 30, 67, 0.2);
}

button#submit-btn:hover {
  background: #003366;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 30, 67, 0.3);
}

button#submit-btn:active {
  transform: translateY(0);
}

button#submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

#status-message {
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
  min-height: 24px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .form-container {
    margin: 20px 16px;
    padding: 24px 20px;
    width: auto;
    /* コンテナ幅を画面に合わせる */
  }

  h2 {
    font-size: 22px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .service-price {
    font-size: 15px;
    color: #0b1021;
  }
}