/* ========================================
   Contact Page Styles
   ======================================== */

/* Header solid (non-transparent for inner pages) */
.header-solid {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Contact Hero */
.contact-hero {
  background: linear-gradient(135deg, #13a538 0%, #0f8a2d 50%, #0d7526 100%);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 40px
  );
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
}

.contact-hero-title {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.contact-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 20px;
  background: #f7f8fa;
}

.contact-form-container {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 60px 50px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* Form Group */
.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.label-required {
  display: inline-block;
  background: #e73828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.label-optional {
  display: inline-block;
  background: #aaa;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* Input / Select / Textarea */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #13a538;
  box-shadow: 0 0 0 3px rgba(19, 165, 56, 0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

/* Error State */
.input-error {
  border-color: #e73828 !important;
  box-shadow: 0 0 0 3px rgba(231, 56, 40, 0.12) !important;
}

.form-error {
  color: #e73828;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

/* Checkbox */
.form-group-checkbox {
  margin-top: 30px;
  margin-bottom: 30px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 15px !important;
  font-weight: 400 !important;
  cursor: pointer;
  justify-content: center;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: #13a538;
  border-color: #13a538;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-link {
  color: #13a538;
  text-decoration: underline;
  font-weight: 700;
}

.terms-link:hover {
  color: #0f822a;
}

/* Submit Button */
.form-group-submit {
  text-align: center;
  margin-top: 10px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #13a538, #0f8a2d);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  height: 64px;
  padding: 0 80px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(19, 165, 56, 0.3);
  letter-spacing: 0.05em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(19, 165, 56, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(19, 165, 56, 0.3);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 20px;
}

/* Confirmation Area */
.confirm-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.confirm-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
}

.confirm-table {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.confirm-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-label {
  width: 180px;
  background: #f9f9f9;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  border-right: 1px solid #eee;
}

.confirm-value {
  flex: 1;
  padding: 15px 20px;
  font-size: 15px;
  color: #333;
  word-break: break-all;
}

.confirm-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #666;
  font-size: 18px;
  font-weight: 700;
  height: 64px;
  padding: 0 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-back:hover {
  background: #ddd;
}

/* Responsive Confirmation */
@media (max-width: 690px) {
  .confirm-row {
    flex-direction: column;
  }
  .confirm-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
  }
  .confirm-buttons {
    flex-direction: column-reverse;
  }
  .btn-back {
    width: 100%;
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #13a538;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-message h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.success-message p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 690px) {
  .contact-hero-title {
    font-size: 28px;
  }
  
  .contact-hero-sub {
    font-size: 15px;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .btn-submit {
    width: 100%;
    padding: 0 20px;
  }
}
