/* ==========================================================================
   Contact Section & Interactive Form Elements
   ========================================================================== */

/* Thank you block */
.thankyou-icon {
  width: 64px;
  height: 64px;
  background-color: #E8F5E9;
  color: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.thankyou-heading {
  font-size: 1.75rem;
  color: var(--primary);
  font-family: 'Shippori Mincho', serif;
  margin-bottom: 1rem;
}

.thankyou-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* LINE CTA Card */
.line-cta-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
  border: 1.5px solid rgba(6, 199, 85, 0.25);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  margin: 0 auto 2.5rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(89, 54, 34, 0.06);
  overflow: hidden;
}

.line-cta-badge {
  position: absolute;
  top: 0;
  left: 2rem;
  background-color: #06C755;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.3);
}

.line-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.line-cta-info {
  flex: 1;
  min-width: 0;
}

.line-cta-heading-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.line-brand-icon {
  color: #06C755;
  flex-shrink: 0;
}

.line-cta-title {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--text-dark);
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  line-height: 1.35;
}

.line-cta-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.line-cta-desc strong {
  color: var(--primary);
}

.line-cta-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.line-cta-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.line-cta-points li svg {
  color: #06C755;
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.line-btn-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-line-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background-color: #06C755;
  color: #ffffff !important;
  font-size: clamp(0.92rem, 3.8vw, 1rem);
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: all 0.25s ease;
  line-height: 1.2;
  text-align: center;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-line-add:hover {
  background-color: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
}

.line-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.line-id-note {
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.85;
}

.line-id-note strong {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.line-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
}

.line-qr-box {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(89, 54, 34, 0.12);
  box-shadow: 0 4px 16px rgba(89, 54, 34, 0.08);
  display: inline-block;
  line-height: 0;
}

.line-qr-box img {
  display: block;
  border-radius: 8px;
  width: 140px;
  height: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.line-qr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-main);
  margin-top: 0.55rem;
  font-weight: 500;
}

.line-qr-label svg {
  color: var(--secondary);
}

/* Contact Divider */
.contact-divider {
  display: flex;
  align-items: center;
  margin: 2.75rem 0 2rem;
  text-align: center;
  width: 100%;
}

.contact-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border-dashed);
  min-width: 15px;
}

.contact-divider-text {
  padding: 0 1.25rem;
  font-size: clamp(0.78rem, 2.8vw, 0.9rem);
  color: var(--secondary);
  font-weight: 500;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

/* Form Styles */
.contact-form {
  text-align: left;
  margin-top: 2rem;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-label .badge-required {
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: normal;
}

.form-label .badge-optional {
  background-color: #A09588;
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: normal;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border-dashed);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: var(--bg-form);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(89, 54, 34, 0.12);
}

.form-notice-box {
  background-color: var(--bg-feature);
  border: 1px solid var(--border-dashed);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0 2rem;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.65;
}

.form-error-msg {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Radio Card Selector UI */
.radio-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
  background-color: var(--bg-form);
  border: 2px solid var(--border-dashed);
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.25s ease;
  user-select: none;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card:hover {
  border-color: var(--secondary);
  background-color: #FFFFFF;
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background-color: #F4ECE1;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(89, 54, 34, 0.15);
}

.radio-card-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--secondary);
  transition: color 0.25s ease;
}

.radio-card:has(input[type="radio"]:checked) .radio-card-icon {
  color: var(--primary);
}

/* Form Submit CTA Button */
.btn-submit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #E65100 0%, #D9381E 100%);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(230, 81, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn-submit-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-submit-cta:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 32px rgba(230, 81, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #F57C00 0%, #E53935 100%);
}

.btn-submit-cta:hover::before {
  left: 100%;
}

.btn-submit-cta:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.35);
}

.btn-submit-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-submit-cta:hover .btn-submit-icon {
  transform: translate(4px, -2px);
}

/* Responsive for LINE CTA & Contact Form */
@media (max-width: 768px) {
  .line-cta-card {
    padding: 2.5rem 1.25rem 2rem;
    margin-bottom: 2rem;
  }
  .line-cta-badge {
    left: 1.25rem;
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
  }
  .line-cta-content {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
  }
  .line-cta-info {
    width: 100%;
  }
  .line-cta-heading-wrap {
    justify-content: center;
  }
  .line-cta-desc {
    font-size: 0.9rem;
  }
  .line-cta-points {
    display: inline-flex;
    text-align: left;
    margin: 0 auto 1.5rem;
    max-width: 100%;
  }
  .line-btn-wrap {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .btn-line-add {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0.95rem 1.25rem;
  }
  .line-qr-wrap {
    padding-top: 1rem;
    border-top: 1px dashed var(--border-dashed);
    width: 100%;
  }
  .line-qr-box img {
    width: 120px;
    height: 120px;
  }
  .contact-divider {
    margin: 2.25rem 0 1.5rem;
  }
  .contact-divider-text {
    padding: 0 0.65rem;
  }
}

@media (max-width: 380px) {
  .line-cta-card {
    padding: 2.25rem 0.95rem 1.65rem;
    border-radius: 16px;
  }
  .line-cta-badge {
    left: 0.95rem;
    font-size: 0.68rem;
  }
  .line-cta-title {
    font-size: 1.1rem;
  }
  .line-cta-desc {
    font-size: 0.85rem;
  }
  .line-cta-points li {
    font-size: 0.82rem;
  }
  .btn-line-add {
    font-size: 0.9rem;
    padding: 0.85rem 0.75rem;
  }
  .line-qr-box img {
    width: 110px;
    height: 110px;
  }
}
