/**
 * Contact page only — navy + cyan hero (portfolio-style), CLATutor copy & form.
 * Scoped under .page-contact; does not alter global app.css components.
 */

.page-contact {
  --contact-navy: #07182e;
  --contact-cyan: #22d3ee;
  --contact-cyan-deep: #0891b2;
}

/* CLATutor wordmark — Shrikhand on contact page only */
.page-contact .logo__word,
.page-contact .site-footer__logo-word,
.page-contact .contactus-hero__brand,
.page-contact .contactus-intro__brand,
.page-contact .contactus-space-title-2,
.page-contact .site-footer__heading:has(.site-footer__logo-accent) {
  font-family: 'Shrikhand', 'Poppins', sans-serif;
  font-weight: 400;
}

/* ——— Hero (reference: dark panel + cyan shape + visual) ——— */
.contactus-hero {
  position: relative;
  overflow: hidden;
  background: var(--contact-navy);
  color: #fff;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  isolation: isolate;
}

.contactus-hero__blob {
  position: absolute;
  right: -15%;
  top: 10%;
  width: min(58vw, 520px);
  height: min(85%, 560px);
  background: radial-gradient(
    ellipse 80% 70% at 60% 50%,
    rgba(56, 189, 248, 0.95) 0%,
    rgba(8, 145, 178, 0.75) 45%,
    rgba(7, 24, 46, 0) 70%
  );
  border-radius: 58% 42% 38% 62% / 48% 38% 62% 52%;
  filter: blur(0);
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.contactus-hero__blob--2 {
  position: absolute;
  left: -8%;
  bottom: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.contactus-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.contactus-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .contactus-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contactus-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.contactus-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.contactus-hero__brand {
  text-transform: none;
  display: inline;
  white-space: nowrap;
}

.contactus-hero__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.contactus-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contactus-hero__visual img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.page-contact .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Cosmic strip (Pinparker-adjacent palette) ——— */
.contactus-intro--space {
  padding: 2.75rem 0 1.5rem;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(20, 76, 99, 0.35), transparent 55%),
    linear-gradient(180deg, #050510 0%, #0a0a18 100%);
  text-align: center;
}

.contactus-intro--space .contactus-intro__title {
  color: #e8e8f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.contactus-intro--space .contactus-intro__text {
  color: #b8b8c8;
}

.contactus-intro--space .contactus-intro__text strong {
  color: #fff;
}

.contactus-intro .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.contactus-intro__title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
}

.contactus-intro__brand {
  text-transform: none;
  display: inline;
  white-space: nowrap;
}

.contactus-intro__text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.contactus-intro__text strong {
  color: var(--black);
  font-weight: 700;
}

/* ——— Main two-column + space aside ——— */
.contactus-main--space {
  padding: 0 0 4rem;
  background: linear-gradient(180deg, #0a0a18 0%, #050510 50%, #080814 100%);
}

.contactus-main .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.contactus-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contactus-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem;
  }
}

.contactus-aside--space {
  padding: 1.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: rgba(0, 212, 255, 0.35) 0 0 40px -12px;
  background: linear-gradient(
      14deg,
      rgba(2, 0, 36, 0.85) 0%,
      rgba(24, 24, 65, 0.75) 66%,
      rgb(20, 76, 99) 100%
    ),
    radial-gradient(circle, rgba(2, 0, 36, 0.45) 0%, rgba(14, 29, 28, 0.85) 100%);
}

.contactus-aside__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
}

.contactus-aside--space .contactus-aside__title {
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.contactus-aside__hint {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.contactus-aside--space .contactus-aside__hint {
  color: #c0c0d0;
}

.contactus-info-block {
  margin-bottom: 1.35rem;
}

.contactus-info-block:last-child {
  margin-bottom: 0;
}

.contactus-info-block__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.contactus-aside--space .contactus-info-block__label {
  color: rgba(0, 212, 255, 0.95);
}

.contactus-info-block__label i {
  font-size: 1rem;
  opacity: 0.95;
}

.contactus-info-block__value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
}

.contactus-aside--space .contactus-info-block__value {
  color: #fff;
}

.contactus-info-block__value a {
  color: inherit;
  text-decoration: none;
}

.contactus-info-block__value a:hover {
  text-decoration: underline;
}

.contactus-info-block__addr-title {
  margin: 0.75rem 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
}

.contactus-aside--space .contactus-info-block__addr-title {
  color: #e8e8f0;
}

.contactus-info-block__addr-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.contactus-aside--space .contactus-info-block__addr-text {
  color: #b0b0c0;
}

/* ——— Space form card (Uiverse.io by Pinparker, adapted) ——— */
.contactus-form-card--space {
  position: relative;
  display: block;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  z-index: 1;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: rgba(0, 212, 255, 0.45) 0 0 50px -15px;
  background: linear-gradient(
      14deg,
      rgba(2, 0, 36, 0.8) 0%,
      rgba(24, 24, 65, 0.7) 66%,
      rgb(20, 76, 99) 100%
    ),
    radial-gradient(circle, rgba(2, 0, 36, 0.5) 0%, rgba(32, 15, 53, 0.2) 65%, rgba(14, 29, 28, 0.9) 100%);
}

.contactus-form-card__inner {
  position: relative;
  z-index: 2;
  padding: 2.2rem;
}

.contactus-space-bg-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  pointer-events: none;
  animation: contactus-space-animate-bg 50s linear infinite;
}

@keyframes contactus-space-animate-bg {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.contactus-space-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 0 0 8px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.1);
  animation: contactus-space-star-move 3s linear infinite;
}

.contactus-space-star::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}

@keyframes contactus-space-star-move {
  0% {
    transform: rotate(315deg) translateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(315deg) translateX(-1000px);
    opacity: 0;
  }
}

.contactus-space-star:nth-child(1) {
  top: 0;
  right: 0;
  left: auto;
  animation-delay: 0s;
  animation-duration: 1s;
}

.contactus-space-star:nth-child(2) {
  top: 0;
  right: 100px;
  left: auto;
  animation-delay: 0.2s;
  animation-duration: 3s;
}

.contactus-space-star:nth-child(3) {
  top: 0;
  right: 220px;
  left: auto;
  animation-delay: 2.75s;
  animation-duration: 2.75s;
}

.contactus-space-star:nth-child(4) {
  top: 0;
  right: -220px;
  left: auto;
  animation-delay: 1.6s;
  animation-duration: 1.6s;
}

.contactus-space-form-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: 0.12s;
}

.contactus-space-form-title span {
  animation: contactus-space-flicker 2s linear infinite both;
}

.contactus-space-title-2 {
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  text-align: center;
  -webkit-text-stroke: #fff 0.1rem;
  letter-spacing: 0.12rem;
  color: transparent;
  position: relative;
  text-shadow: 0 0 16px #cecece;
}

.contactus-space-title-2 > span::before,
.contactus-space-title-2 > span::after {
  content: '—';
}

.contactus-space-title-2 .logo__accent {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 14px rgba(255, 204, 0, 0.45);
  text-transform: none;
}

.contactus-space-tagline {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  color: #c0c0c0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

@keyframes contactus-space-flicker {
  0%,
  100% {
    opacity: 1;
  }
  41.99% {
    opacity: 1;
  }
  42% {
    opacity: 0;
  }
  43% {
    opacity: 0;
  }
  43.01% {
    opacity: 1;
  }
  47.99% {
    opacity: 1;
  }
  48% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  49.01% {
    opacity: 1;
  }
}

.contactus-space-form .form-group {
  margin-bottom: 0;
}

.contactus-space-input-wrap {
  position: relative;
  margin-bottom: 0.35rem;
}

.contactus-space-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contactus-space-form input,
.contactus-space-form textarea,
.contactus-space-submit {
  outline: none;
  border: 2px solid #ffffff;
  margin: 6px 0 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  border-radius: 4px;
}

.contactus-space-form input,
.contactus-space-form textarea {
  background-color: #fff;
  padding: 8px 10px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.contactus-space-form input:focus::placeholder,
.contactus-space-form textarea:focus::placeholder {
  opacity: 0;
  transition: opacity 0.9s;
}

.contactus-space-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contactus-space-submit-text {
  position: relative;
  z-index: 1;
}

.contactus-space-submit {
  position: relative;
  display: block;
  padding: 10px 12px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, #243949 0%, #517fa4 100%);
  color: #ffffff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  line-height: 1.25rem;
  font-weight: 600;
  width: 100%;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease-out;
}

.contactus-space-submit:hover {
  box-shadow: 4px 5px 17px -4px #ffffff;
}

.contactus-space-submit:hover::before {
  animation: contactus-space-sh02 0.5s linear;
}

.contactus-space-submit::before {
  content: '';
  display: block;
  width: 0;
  height: 85%;
  position: absolute;
  top: 50%;
  left: 0;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  transform: skewX(-20deg);
}

@keyframes contactus-space-sh02 {
  from {
    opacity: 0;
    left: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    left: 100%;
  }
}

#contactus-alert {
  margin-bottom: 1rem;
}

.page-contact #contactus-alert .alert {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(10, 20, 40, 0.9);
  color: #c8f0e8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
}

.page-contact #contactus-alert .alert-success {
  background: rgba(20, 50, 40, 0.85);
  border-color: rgba(100, 200, 140, 0.5);
  color: #b8f0c8;
}

@media (prefers-reduced-motion: reduce) {
  .contactus-space-bg-stars {
    animation: none;
  }
  .contactus-space-star {
    animation: none;
    opacity: 0.35;
  }
  .contactus-space-form-title span {
    animation: none;
  }
}
