/* ============================================================
   LINE Quick Contact
   ============================================================ */
.line-contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 48px;
}
.line-contact-text h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 4px 0 10px;
}
.line-contact-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto 18px;
  max-width: 46ch;
}
.line-contact-qr {
  flex-shrink: 0;
}
.line-contact-qr img {
  display: block;
  width: 140px;
  height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 6px;
}
.btn-line {
  background: #06c755;
  border-color: #06c755;
  color: #fff;
}
.btn-line:hover {
  background: #05a648;
  border-color: #05a648;
  color: #fff;
}

@media (max-width: 640px) {
  .line-contact-box {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .line-contact-text p { max-width: none; }
}

/* ============================================================
   Success Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 32, 68, 0.55);
  animation: modal-fade-in .2s ease-out;
}
.modal-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  animation: modal-pop-in .25s ease-out;
}
.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sage-600, #5a7392);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.modal-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-box .btn {
  width: 100%;
  justify-content: center;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Contact Form
   ============================================================ */
.form-banner {
  padding: 20px 24px;
  margin-bottom: 32px;
  border-left: 3px solid;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
}
.form-banner-success {
  background: rgba(90, 115, 146, 0.1);
  border-color: var(--sage-600);
  color: var(--ink-900);
}
.form-banner-error {
  background: rgba(196, 90, 60, 0.08);
  border-color: #c45a3c;
  color: var(--ink-900);
}
.form-banner-error ul { margin: 8px 0 0 20px; }
.form-banner strong { display: block; margin-bottom: 4px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field {
  margin-bottom: 24px;
}
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field .req { color: #c45a3c; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
}
.form-field textarea { resize: vertical; }

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.newsletter-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.newsletter-optin input {
  margin-top: 3px;
  accent-color: var(--amber-500);
  flex-shrink: 0;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.captcha-row .captcha-visual {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.captcha-row img {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
#captcha-refresh {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  justify-content: center;
  margin-top: 0;
}
.captcha-row input {
  flex: 1;
  min-width: 160px;
}

.form-alt-contact {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.form-alt-contact a { color: var(--amber-500); border-bottom: 1px solid var(--amber-500); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}
