﻿/* Contact page styles */
/* ========== Contact Page ========== */
.contact-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1638262052640-82e94d64664a?q=80&w=2070&auto=format&fit=crop") center/cover;
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.contact-hero-dim {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 36, 0.78);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.contact-hero-title {
  font-family: var(--font-jp);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.contact-hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 0.45rem;
  opacity: 0.95;
}

.contact-hero-highlight {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  margin: 0;
}

.contact-hero-content>* {
  animation: fadeUp 0.8s ease both;
}

.contact-hero-title {
  animation-delay: 0.1s;
}

.contact-hero-desc {
  animation-delay: 0.25s;
}

.contact-hero-highlight {
  animation-delay: 0.4s;
}

.contact-inquiry {
  background: #f4f7fb;
  padding: 4.5rem 0 2.5rem;
}

.contact-section-title {
  color: #8b2555;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-intro {
  margin-bottom: 0.5rem;
}

.contact-intro-text {
  max-width: 760px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.contact-intro-note {
  color: #8b2555;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
}

.contact-cards-wrap {
  position: relative;
  padding: 3.5rem 0 1.5rem;
  min-height: 260px;
}

.bg-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  line-height: 1;
}

.contact-us-watermark {
  top: 46%;
}

.inquiry-card {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 1.15rem;
  padding: 1.85rem 1.6rem 1.4rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.inquiry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 37, 85, 0.35);
  box-shadow: 0 20px 44px rgba(139, 37, 85, 0.14);
}

.inquiry-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, #8b2555 0%, #5b2c8a 55%, #1e40af 100%);
}

.inquiry-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.inquiry-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
}

.inquiry-card:hover h3 {
  color: #8b2555;
}

.inquiry-link {
  display: block;
  text-align: right;
  margin-top: 1.35rem;
  color: #1f1f54;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-jp);
}

.inquiry-card:hover .inquiry-link {
  color: #8b2555;
  text-decoration: underline;
}

.contact-access {
  background: #f4f7fb;
  padding: 1.5rem 0 4.5rem;
}

.access-panel {
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  padding: 2.75rem 1.5rem 2.25rem;
}

@media (min-width: 768px) {
  .access-panel {
    padding: 3.25rem 2.75rem 2.75rem;
  }
}

.access-header {
  position: relative;
  min-height: 5.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.25rem;
  margin-bottom: 2rem !important;
}

.access-watermark {
  top: 28%;
  color: rgba(186, 206, 232, 0.55);
  font-size: clamp(4.75rem, 13vw, 8.5rem);
  letter-spacing: 0.08em;
}

.access-main-title {
  margin-bottom: 0;
  z-index: 1;
  position: relative;
}

.access-box {
  background: #f0f5ff;
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
}

.access-box h3 {
  color: #8b2555;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.05rem;
}

.access-detail-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  color: #1f1f54;
  font-size: 1.05rem;
}

.access-detail-list li:last-child {
  margin-bottom: 0;
}

.access-detail-list i {
  color: #1f1f54;
  font-size: 1.2rem;
  width: 1.25rem;
  text-align: center;
}

.access-detail-list a {
  color: inherit;
  text-decoration: none;
}

.access-detail-list a:hover {
  text-decoration: underline;
  color: #8b2555;
}

.access-address {
  color: #1f2937;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

.access-note {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
}

.access-map {
  position: relative;
  min-height: 380px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.access-map-open {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: #fff;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.35rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.access-map-open:hover {
  color: #8b2555;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.seeker-modal-header {
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.seeker-modal-header .modal-title {
  margin: 0;
  color: #172033;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
}

.seeker-modal-header .btn-close {
  /* Pin the close button to the right end of the header row. */
  margin: 0 0 0 auto;
  opacity: 0.75;
}

.seeker-modal-header .btn-close:hover {
  opacity: 1;
}

.company-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgb(15 23 42 / 20%);
}

.company-modal-header {
  align-items: center;
  padding: 1.35rem 1.6rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.company-modal-header .modal-title {
  margin: 0;
  color: #172033;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
}

.company-modal-header .btn-close {
  /* Pin the close button to the right end of the header row. */
  margin: 0 0 0 auto;
  opacity: 0.75;
}

.company-modal-body {
  padding: 1.35rem 1.6rem 1.5rem;
  background: #fff;
}

.company-inquiry-form {
  max-width: 940px;
  margin: 0 auto;
}

.company-required-note {
  margin: 0 0 1.8rem;
  color: #172033;
  font-weight: 700;
}

.company-field {
  margin-bottom: 1.7rem;
}

.company-field label {
  display: block;
  margin-bottom: 0.55rem;
  color: #263b58;
  font-size: 1rem;
  font-weight: 500;
}

.company-field label span {
  color: #e5484d;
}

.company-field input,
.company-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d9dfe8;
  border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  color: #172033;
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.company-field input {
  height: 3rem;
}

.company-field input:focus,
.company-field textarea:focus {
  border-color: #8b2555;
  outline: 3px solid rgb(139 37 85 / 12%);
}

/* Invalid controls + their bilingual validation message. */
.company-field input.is-invalid,
.company-field textarea.is-invalid {
  border-color: #b42318;
  background-color: #fef3f2;
}

.company-field input.is-invalid:focus,
.company-field textarea.is-invalid:focus {
  outline-color: rgb(180 35 24 / 15%);
}

.company-inquiry-form .form-error {
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.85rem;
  line-height: 1.45;
}

.company-field-help {
  margin: 0.45rem 0 0;
  color: #718096;
  font-size: 0.9rem;
}

.company-submit-button {
  display: block;
  min-width: 11.5rem;
  margin: 2.1rem auto 0;
  padding: 0.7rem 1.8rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {

  .company-modal-header,
  .company-modal-body {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .company-field {
    margin-bottom: 1.35rem;
  }

  .company-required-note {
    margin-bottom: 1.35rem;
    font-size: 0.9rem;
  }

  .company-submit-button {
    width: 100%;
  }

  .seeker-modal-header {
    padding: 1.1rem 1rem;
  }

  /* The job seeker form drops its page-level card treatment inside the modal
     so phone screens spend their space on fields, not chrome. */
  .seeker-modal .student-form {
    margin-top: 0.35rem;
    padding: 1rem 0.85rem;
    box-shadow: none;
  }

  .seeker-modal .form-note {
    margin-bottom: 1.1rem;
  }

  .seeker-modal .student-form>.btn {
    width: 100%;
  }
}

@media (min-width: 992px) {

  .access-map,
  .access-map iframe {
    min-height: 100%;
    height: 100%;
  }
}

.btn-cta-gradient,
.btn-recruitment,