:root {
  --midnight: #0a0a12;
  --deep-navy: #0d1428;
  --royal-purple: #2d1b5e;
  --mystic-violet: #4a2d8a;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #7a5f2a;
  --emerald: #1a4a3c;
  --teal: #1d6e5e;
  --mist: #e8e4f0;
  --cloud: #f5f3fa;
  --white: #ffffff;
  --text-dark: #1a1520;
  --text-mid: #4a4060;
  --text-light: #8a80a0;
  --border-gold: rgba(201, 168, 76, 0.3);
  --border-purple: rgba(74, 45, 138, 0.2);
  --error: #e05050;
  --success: #4a8a6a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', serif;
  background: var(--cloud);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─── MAIN CONTENT ─── */
.contact-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

/* ─── PHONE SECTION ─── */
.phone-section {
  margin-bottom: 64px;
  position: relative;
}

.phone-card {
  border: 1px solid var(--border-gold);
  padding: 40px 48px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  background: rgba(201, 168, 76, 0.03);
  box-shadow: 0 2px 16px rgba(201, 168, 76, 0.06);
  overflow: hidden;
}

.phone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.phone-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.phone-icon-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-icon-wrap svg {
  color: var(--gold);
  width: 26px;
  height: 26px;
}

.phone-info {
  flex: 1;
}

.phone-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 8px;
  display: block;
}

.phone-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.phone-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.phone-meta-item {
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.phone-meta-item strong {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.15em;
  font-weight: 300;
  margin-bottom: 2px;
}

.phone-btn-wrap {
  flex-shrink: 0;
  text-align: right;
}

.phone-number-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15) 0%, rgba(201, 168, 76, 0.05) 100%);
  border: 1px solid var(--border-gold);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.phone-number-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.phone-number-btn:hover::before {
  opacity: 1;
}

.phone-number-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.phone-number-text {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  line-height: 1;
  position: relative;
}

.phone-tap-hint {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  display: block;
  text-align: center;
  margin-top: 8px;
}

/* ─── FORM SECTION ─── */
.form-section {
  position: relative;
  background: rgba(201, 168, 76, 0.03);
  padding: 48px 48px 56px;
  box-shadow: 0 2px 16px rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.section-header {
  margin-bottom: 48px;
}

.section-label span {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 300;
}

.section-title-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.15em;
}

/* ─── FORM ─── */
.contact-form {
  position: relative;
}

.form-row {
  margin-bottom: 32px;
  position: relative;
}

.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.field-label-text {
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.badge-required {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--midnight);
  background: var(--gold);
  padding: 2px 7px;
  font-weight: 600;
  font-family: 'Noto Serif JP', serif;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.badge-optional {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  border: 1px solid rgba(138, 128, 160, 0.4);
  padding: 2px 7px;
  font-family: 'Noto Serif JP', serif;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #d0cdd8;
  color: var(--text-dark);
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1), inset 0 0 0 1px rgba(201, 168, 76, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
  font-weight: 200;
}

input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
select.error,
textarea.error {
  border-color: var(--error);
  background: rgba(224, 80, 80, 0.04);
}

input[type="text"].valid,
input[type="email"].valid,
input[type="tel"].valid,
select.valid,
textarea.valid {
  border-color: rgba(74, 138, 106, 0.5);
}

.field-error {
  font-size: 11px;
  color: #e07070;
  margin-top: 6px;
  letter-spacing: 0.05em;
  display: none;
  align-items: center;
  gap: 5px;
}

.field-error.show {
  display: flex;
}

.field-error svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* select custom arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gold-dim);
  pointer-events: none;
  transition: border-top-color 0.2s;
}

.select-wrap:focus-within::after {
  border-top-color: var(--gold);
}

select option {
  background: var(--white);
  color: var(--text-dark);
}

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

/* ─── PRIVACY & SUBMIT ─── */
.privacy-row {
  margin-bottom: 40px;
  padding: 24px 28px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  background: var(--white);
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.privacy-checkbox-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

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

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: transparent;
}

input[type="checkbox"]:checked+.custom-checkbox {
  background: var(--gold);
  border-color: var(--gold);
}

.custom-checkbox svg {
  width: 12px;
  height: 12px;
  color: var(--midnight);
  opacity: 0;
  transition: opacity 0.2s;
}

input[type="checkbox"]:checked+.custom-checkbox svg {
  opacity: 1;
}

.privacy-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.privacy-text a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.privacy-text a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

/* ─── SUBMIT BUTTON ─── */
.submit-area {
  text-align: center;
}

.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 72px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  border: none;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: 0.2em;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background-position 0.4s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.2);
  min-width: 280px;
}

.btn-submit:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.35);
}

.btn-submit:active {
  transform: translateY(-1px);
}

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

.btn-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

.submit-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  font-weight: 200;
}

/* ─── THANK YOU STATE ─── */
.thank-you {
  display: none;
  text-align: center;
  padding: 80px 40px;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thank-you.show {
  display: block;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  background: rgba(201, 168, 76, 0.08);
}

.thankyou-icon svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.thankyou-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.thankyou-title-ja {
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.2em;
  font-weight: 300;
  margin-bottom: 32px;
}

.thankyou-message {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 480px;
  margin: 0 auto 40px;
}

.thankyou-ornament {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 0 auto 40px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  text-decoration: none;
  border: 1px solid var(--border-gold);
  padding: 16px 40px;
  transition: all 0.3s;
  font-family: 'Noto Serif JP', serif;
}

.btn-back-home:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── LOADING SPINNER ─── */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 10, 18, 0.3);
  border-top-color: var(--midnight);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .page-hero { padding: 70px 24px 60px; }
  .page-title-ja { font-size: 28px; }

  .contact-main {
    padding: 56px 20px 80px;
  }

  .phone-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px;
  }

  .phone-btn-wrap {
    width: 100%;
  }

  .phone-number-btn {
    width: 100%;
    justify-content: center;
  }

  .form-row-double {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .btn-submit {
    min-width: auto;
    width: 100%;
    padding: 18px 32px;
  }

}

