﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --orange: #F58220;
      --orange-dark: #e67410;
      --orange-light: #FFF3E8;
      --blue: #1F5AA6;
      --blue-light: #EEF6FF;
      --bg: #FAF7F2;
      --text: #2A2A2A;
      --text-muted: rgba(42, 42, 42, 0.65);
      --white: #ffffff;
      --radius: 16px;
      --radius-lg: 24px;
      --shadow: 0 4px 24px rgba(42, 42, 42, 0.06);
      --shadow-hover: 0 8px 32px rgba(42, 42, 42, 0.1);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Vazirmatn', Tahoma, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; height: auto; display: block; }
    ul { list-style: none; }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(250, 247, 242, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(42, 42, 42, 0.06);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .logo img {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      object-fit: cover;
    }

    .logo-text { font-size: 13px; font-weight: 700; line-height: 1.5; }
    .logo-text span { display: block; color: var(--orange); font-size: 15px; }

    .nav { display: flex; align-items: center; gap: 4px; }

    .nav a {
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 14px;
      color: var(--text-muted);
      transition: color 0.2s, background 0.2s;
    }

    .nav a:hover { color: var(--blue); background: var(--white); }
    .nav a.active { color: var(--orange); font-weight: 600; }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 12px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
    }

    .btn-outline {
      background: var(--white);
      border-color: var(--blue);
      color: var(--blue);
    }

    .btn-outline:hover { background: var(--blue-light); }

    .btn-primary {
      background: var(--orange);
      color: var(--white);
      box-shadow: 0 2px 12px rgba(245, 130, 32, 0.3);
    }

    .btn-primary:hover { background: var(--orange-dark); }

    .mobile-nav {
      display: none;
      overflow-x: auto;
      gap: 4px;
      padding: 8px 0 10px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .mobile-nav a {
      flex-shrink: 0;
      padding: 6px 12px;
      font-size: 12px;
      color: var(--text-muted);
      border-radius: 8px;
    }

    .mobile-nav a.active { color: var(--orange); font-weight: 600; }

    /* Breadcrumb */
    .breadcrumb {
      font-size: 13px;
      color: var(--text-muted);
      padding-bottom: 8px;
    }

    .breadcrumb a { color: var(--blue); }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb span { margin: 0 8px; opacity: 0.5; }

    /* Hero */
    .contact-hero-wrap {
      padding: 16px 0 48px;
    }

    .contact-hero {
      background: var(--blue-light);
      border-radius: var(--radius-lg);
      padding: 0 28px 0;
      overflow: visible;
      position: relative;
    }

    .contact-hero .breadcrumb {
      position: relative;
      z-index: 2;
      padding: 14px 0 8px;
    }

    .contact-hero-inner {
      position: relative;
      padding-inline-start: min(300px, 38%);
      z-index: 2;
    }

    .contact-hero-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 520px;
      margin-inline-start: auto;
      padding-bottom: 28px;
    }

    .contact-hero-content h1 {
      font-size: clamp(24px, 3.2vw, 34px);
      font-weight: 800;
      color: var(--blue);
      line-height: 1.4;
      margin-bottom: 12px;
    }

    .contact-hero-content p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.85;
      margin-bottom: 0;
    }

    .contact-hero-visual {
      position: absolute;
      top: 0;
      right: 8px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      line-height: 0;
      z-index: 1;
      pointer-events: none;
      transform: translateY(-8px);
    }

    .contact-hero-visual img {
      max-width: 320px;
      width: 100%;
      object-fit: contain;
      display: block;
      margin-bottom: -52px;
    }

    /* Main layout */
    .contact-main {
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      gap: 24px;
      padding-bottom: 28px;
      align-items: start;
    }

    .contact-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--shadow);
    }

    .contact-card h2 {
      font-size: 16px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 22px;
    }

    /* Form */
    .form-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 14px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-group.full { grid-column: 1 / -1; }

    .input-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg);
      border: 1px solid rgba(42, 42, 42, 0.08);
      border-radius: 12px;
      padding: 0 14px;
      min-height: 46px;
      transition: border-color 0.2s;
    }

    .input-wrap:focus-within {
      border-color: rgba(31, 90, 166, 0.35);
    }

    .input-wrap svg {
      flex-shrink: 0;
      color: var(--text-muted);
      width: 18px;
      height: 18px;
    }

    .input-wrap input,
    .input-wrap select,
    .input-wrap textarea {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-family: inherit;
      font-size: 13px;
      color: var(--text);
      min-width: 0;
    }

    .input-wrap select {
      cursor: pointer;
      padding: 12px 0;
      appearance: none;
    }

    .input-wrap textarea {
      padding: 12px 0;
      resize: vertical;
      min-height: 120px;
    }

    .input-wrap textarea { align-self: stretch; }

    .textarea-wrap {
      align-items: flex-start;
      padding-top: 12px;
    }

    .form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-start;
      margin-top: 18px;
    }

    .form-feedback {
      margin-top: 14px;
      padding: 10px 14px;
      border-radius: 10px;
      font-size: 13px;
      line-height: 1.6;
    }

    .form-feedback[hidden] { display: none; }

    .form-feedback--success {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .form-feedback--error {
      background: #FFEBEE;
      color: #C62828;
    }

    /* Info list */
    .info-list li {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 18px;
    }

    .info-icon {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .info-icon svg { width: 20px; height: 20px; }

    .info-text strong {
      display: block;
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .info-text span {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .info-text a {
      color: inherit;
      text-decoration: none;
    }

    .info-text a:hover { text-decoration: underline; }

    .social-row {
      display: flex;
      gap: 10px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .social-row a {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }

    .social-row a:hover { transform: translateY(-2px); }
    .social-row svg { width: 18px; height: 18px; }

    /* Map */
    .contact-map {
      position: relative;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      margin-bottom: 28px;
    }

    .academy-map {
      width: 100%;
      height: 360px;
      z-index: 1;
      background: #e8eef4;
    }

    .map-address-card {
      position: absolute;
      top: 38%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--white);
      border-radius: 14px;
      padding: 14px 28px;
      box-shadow: 0 6px 28px rgba(42, 42, 42, 0.14);
      text-align: center;
      z-index: 1000;
      max-width: calc(100% - 48px);
      transition: box-shadow 0.2s;
    }

    .map-address-card:hover {
      box-shadow: var(--shadow-hover);
    }

    .map-address-card strong {
      display: block;
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }

    .map-address-card span {
      display: block;
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .academy-marker {
      background: none !important;
      border: none !important;
    }

    .academy-marker svg {
      display: block;
      filter: drop-shadow(0 3px 6px rgba(42, 42, 42, 0.25));
    }

    .contact-map .leaflet-control-attribution {
      font-size: 10px;
      background: rgba(255, 255, 255, 0.85);
    }

    /* Quick contact */
    .quick-contact {
      background: #F3F9FF;
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      margin-bottom: 56px;
      overflow: hidden;
      border: 1px solid rgba(31, 90, 166, 0.08);
    }

    .quick-contact-inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 24px;
    }

    .quick-cards {
      justify-self: start;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .quick-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 16px 14px;
      text-align: center;
      box-shadow: var(--shadow);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .quick-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }

    .quick-card-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      margin: 0 auto 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .quick-card-icon svg { width: 22px; height: 22px; }

    .quick-card p {
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 8px;
      line-height: 1.5;
    }

    .quick-card-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
    }

    .quick-text {
      text-align: center;
      max-width: 280px;
      justify-self: center;
    }

    .quick-text h3 {
      font-size: 15px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 8px;
      line-height: 1.6;
    }

    .quick-text p {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.8;
    }

    .quick-visual {
      justify-self: end;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .quick-visual img {
      max-width: 300px;
      width: 100%;
      object-fit: contain;
    }

    /* Footer */
    .footer {
      background: var(--white);
      border-top: 1px solid rgba(42, 42, 42, 0.06);
      padding: 48px 0 24px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 32px;
      margin-bottom: 36px;
    }

    .footer-col h4 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 16px;
      color: var(--blue);
    }

    .footer-col a {
      display: block;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
      transition: color 0.2s;
    }

    .footer-col a:hover { color: var(--orange); }

    .footer-contact li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .footer-contact svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 2px;
      color: var(--orange);
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-top: 24px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .footer-brand img {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      object-fit: cover;
    }

    .social-links { display: flex; gap: 10px; }

    .social-links a {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      transition: background 0.2s, color 0.2s;
    }

    .social-links a:hover { background: var(--orange-light); color: var(--orange); }
    .social-links svg { width: 18px; height: 18px; }

    .copyright {
      font-size: 12px;
      color: var(--text-muted);
      text-align: left;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .nav { display: none; }
      .mobile-nav { display: flex; }
      .contact-main { grid-template-columns: 1fr; }
      .quick-contact-inner { grid-template-columns: 1fr; text-align: center; }
      .quick-cards { grid-template-columns: repeat(2, 1fr); justify-self: center; width: 100%; max-width: 480px; }
      .quick-visual, .quick-text { justify-self: center; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      .contact-hero-inner { padding-inline-start: 0; }
      .contact-hero-visual {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
        pointer-events: auto;
        transform: none;
      }
      .contact-hero-visual img { max-width: 260px; }
      .contact-hero-content { margin-inline-start: auto; margin-inline-end: auto; padding-bottom: 20px; }
      .form-row { grid-template-columns: 1fr; }
      .quick-cards { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 480px) {
      .contact-card { padding: 20px; }
      .quick-cards { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .header-actions .btn-outline { display: none; }
      .footer-bottom { flex-direction: column; text-align: center; }
      .copyright { text-align: center; }
    }

/* Phase 13 registration/track helpers (Luma tokens) */
.luma-form-page { padding: 40px 0 72px; }
.luma-form-page .page-title { font-size: 28px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.luma-form-page .page-lead { color: var(--text-muted); margin-bottom: 24px; }
.luma-form-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.luma-form-panel h2 { font-size: 18px; color: var(--blue); margin-bottom: 14px; }
.luma-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; }
.luma-meta-grid p { margin: 0; font-size: 14px; }
.luma-meta-grid strong { color: var(--blue); }
.luma-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.luma-form-grid .full { grid-column: 1 / -1; }
.luma-form-grid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.luma-form-grid input, .luma-form-grid select, .luma-form-grid textarea {
  width: 100%; border: 1px solid rgba(42,42,42,.12); border-radius: 12px; padding: 11px 14px; font: inherit; background: #fff;
}
.luma-alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.luma-alert-error { background: #fdecea; color: #c0392b; }
.luma-alert-ok { background: #e8f7ef; color: #1e7a46; }
.luma-alert-warn { background: #fff6e8; color: #9a5b00; }
.luma-tracking-code {
  font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--orange);
  direction: ltr; text-align: center; padding: 16px; background: var(--blue-light); border-radius: 14px;
}
@media (max-width: 720px) {
  .luma-meta-grid, .luma-form-grid { grid-template-columns: 1fr; }
}
