/* ============================================
   ReOchu - Contact Page Stylesheet
   ============================================ */

/* --- Page Hero --- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--dark);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(78, 87, 96, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-en {
  font-family: var(--font-en);
  font-size: clamp(48px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: -10px;
  animation: heroEnFadeIn 1s 0.3s ease forwards;
  opacity: 0;
}

@keyframes heroEnFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  animation: heroTitleIn 0.8s 0.5s ease forwards;
  opacity: 0;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  animation: heroDescIn 0.8s 0.7s ease forwards;
  opacity: 0;
}

@keyframes heroDescIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: lineSweep 2s 1s ease forwards;
  opacity: 0;
}

@keyframes lineSweep {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--light-grey);
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mid-grey);
}

.breadcrumb a {
  color: var(--accent);
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb .separator {
  color: #ccc;
}

.breadcrumb .current {
  color: var(--dark);
  font-weight: 500;
}

/* --- Form Steps Indicator --- */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: #ccc;
  background: var(--white);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(78, 87, 96, 0.3);
}

.step.completed .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--accent);
}

.step-line {
  width: 80px;
  height: 3px;
  background: #ddd;
  margin: 0 15px;
  margin-bottom: 24px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.step-line.active {
  background: var(--accent);
}

.step-line.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: stepLineShine 2s ease-in-out infinite;
}

@keyframes stepLineShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* --- Form Styles --- */
.sec-contact-form {
  background: var(--white);
}

.sec-contact-form form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 28px;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-jp);
  color: var(--dark);
  background: var(--light-grey);
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(78, 87, 96, 0.1);
}

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

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #cc3333;
  background: #fff5f5;
}

.form-error {
  display: none;
  font-size: 13px;
  color: #cc3333;
  margin-top: 6px;
  padding-left: 4px;
}

.form-error.visible {
  display: block;
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* --- Checkbox --- */
.form-privacy {
  margin-top: 10px;
  margin-bottom: 40px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  user-select: none;
}

.form-checkbox {
  display: none;
}

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

.form-checkbox:checked ~ .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox:checked ~ .checkbox-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkIn 0.2s ease;
}

@keyframes checkIn {
  from {
    transform: rotate(45deg) scale(0);
  }
  to {
    transform: rotate(45deg) scale(1);
  }
}

.privacy-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.privacy-link:hover {
  opacity: 0.7;
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 18px 60px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-jp);
  border: 3px solid var(--accent);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.btn-submit:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 87, 96, 0.3);
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit .arrow {
  transition: transform 0.3s ease;
}

.btn-submit:hover .arrow {
  transform: translateX(5px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Confirm Page --- */
.confirm-message {
  text-align: center;
  margin-bottom: 40px;
  font-size: 15px;
  color: #666;
}

.confirm-table {
  max-width: 800px;
  margin: 0 auto 50px;
  border: 3px solid var(--dark);
  overflow: hidden;
}

.confirm-item {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

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

.confirm-item dt {
  width: 200px;
  min-width: 200px;
  padding: 20px 24px;
  background: var(--light-grey);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  border-right: 1px solid #e0e0e0;
}

.confirm-item dd {
  flex: 1;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.8;
  word-break: break-word;
}

.confirm-message-text {
  white-space: pre-wrap;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.confirm-back-form {
  margin: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent);
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-jp);
  border: 3px solid var(--accent);
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-back:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 87, 96, 0.3);
}

.btn-back .arrow {
  transition: transform 0.3s ease;
}

.btn-back:hover .arrow {
  transform: translateX(-5px);
}

.btn-send {
  background: var(--accent);
  padding: 18px 60px;
}

/* --- Complete Page --- */
.complete-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.complete-icon {
  margin-bottom: 30px;
}

.complete-icon svg {
  animation: completeIconIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

@keyframes completeIconIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-20deg);
  }
  60% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.check-mark {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDraw 0.6s 0.5s ease forwards;
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.complete-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.complete-text {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.5s ease forwards;
  opacity: 0;
}

.complete-note {
  font-size: 13px;
  color: #999;
  line-height: 1.8;
  padding: 20px;
  background: var(--light-grey);
  border-radius: 8px;
  animation: fadeInUp 0.6s 0.7s ease forwards;
  opacity: 0;
}

.error-content .complete-icon.error svg {
  animation: completeIconIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.error-title {
  color: #cc3333;
}

.complete-actions {
  text-align: center;
  animation: fadeInUp 0.6s 0.9s ease forwards;
  opacity: 0;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 18px 50px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  border: 3px solid var(--accent);
  transition: all 0.4s ease;
}

.btn-back-home:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 87, 96, 0.3);
}

.btn-back-home .arrow {
  transition: transform 0.3s ease;
}

.btn-back-home:hover .arrow {
  transform: translateX(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
    min-height: 260px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-steps {
    margin-bottom: 40px;
  }

  .step-line {
    width: 40px;
    margin: 0 8px;
  }

  .step-num {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  .btn-submit,
  .btn-send {
    padding: 16px 40px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .btn-back {
    padding: 16px 30px;
    font-size: 15px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .confirm-actions form {
    width: 100%;
  }

  .confirm-actions .btn-back,
  .confirm-actions .btn-send {
    width: 100%;
    justify-content: center;
  }

  .confirm-item {
    flex-direction: column;
  }

  .confirm-item dt {
    width: 100%;
    min-width: 100%;
    padding: 14px 18px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .confirm-item dd {
    padding: 14px 18px;
  }

  .btn-back-home {
    padding: 16px 40px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 100px 0 50px;
    min-height: 220px;
  }

  .page-hero-title {
    font-size: 24px;
  }

  .page-hero-desc {
    font-size: 13px;
  }

  .form-label {
    font-size: 14px;
  }
}
