.contact-page {
  padding: 24px 20px 72px;
  background: var(--color-background);
}

.contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

.contact-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-breadcrumb a:hover {
  color: var(--color-secondary);
}

.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  align-items: center;
  gap: 40px;
  min-height: 360px;
  padding: 52px 60px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #05668d, #028090 65%, #02a896);
  color: #fff;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.contact-eyebrow,
.contact-section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-eyebrow {
  color: #c8fff0;
}

.contact-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.7;
}

.contact-hero-content p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 2.1;
}

.contact-hero-content strong {
  display: inline-block;
  margin-top: 8px;
  color: #c8fff0;
  font-size: 1rem;
}

.contact-hero-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
}

.contact-hero-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.06),
    0 0 0 38px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  text-align: center;
}

.contact-hero-circle span {
  font-size: 2.5rem;
  font-weight: 700;
}

.contact-hero-circle small {
  margin-top: 8px;
  color: #d8fff5;
  font-size: 0.85rem;
  line-height: 1.8;
}

.contact-form-section {
  max-width: 900px;
  margin: 64px auto 0;
}

.contact-section-heading {
  margin-bottom: 26px;
  text-align: center;
}

.contact-section-heading h2 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.8;
}

.contact-section-heading > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 2.1;
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.contact-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 9px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-field label span {
  color: var(--color-text-soft);
  font-size: 0.82rem;
  font-weight: 400;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input {
  min-height: 50px;
}

.contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--color-text-soft);
  opacity: 0.8;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.1);
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
  border-color: #dc5656;
}

.contact-field-error {
  min-height: 0;
  color: #dc5656;
  font-size: 0.8rem;
  line-height: 1.7;
}

.contact-field-error:empty {
  display: none;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.contact-form-footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.contact-form-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 170px;
  min-height: 50px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-form-footer button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-form-footer button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-feedback {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.9;
}

.contact-feedback[hidden] {
  display: none;
}

.contact-feedback.is-success {
  border-color: #299b72;
  background: rgba(41, 155, 114, 0.08);
  color: #23845f;
}

.contact-feedback.is-error {
  border-color: #dc5656;
  background: rgba(220, 86, 86, 0.07);
  color: #dc5656;
}

@media (max-width: 850px) {
  .contact-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 36px;
  }

  .contact-hero-decoration {
    min-height: 180px;
  }

  .contact-hero-circle {
    width: 165px;
    height: 165px;
  }

  .contact-hero-circle span {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .contact-page {
    padding: 18px 14px 48px;
  }

  .contact-breadcrumb {
    margin-bottom: 18px;
  }

  .contact-hero {
    gap: 18px;
    padding: 30px 22px;
    border-radius: var(--radius-lg);
  }

  .contact-hero h1 {
    font-size: 1.65rem;
  }

  .contact-hero-content p {
    font-size: 0.9rem;
    line-height: 2;
  }

  .contact-hero-decoration {
    min-height: 150px;
  }

  .contact-hero-circle {
    width: 140px;
    height: 140px;
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.06),
      0 0 0 25px rgba(255, 255, 255, 0.04);
  }

  .contact-hero-circle span {
    font-size: 1.8rem;
  }

  .contact-hero-circle small {
    font-size: 0.72rem;
  }

  .contact-form-section {
    margin-top: 44px;
  }

  .contact-form {
    padding: 22px 17px;
    border-radius: var(--radius-lg);
  }

  .contact-fields-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .contact-field-full {
    grid-column: auto;
  }

  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-footer button {
    width: 100%;
  }
}

/* ========================================
   CONTACT RESULT MODAL
======================================== */

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: contactBackdropIn 0.2s ease;
}

.contact-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 42px 30px 30px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: contactModalIn 0.3s ease;
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-modal-close:hover {
  background: var(--color-background);
}

.contact-modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
}

.contact-modal.is-success .contact-modal-icon {
  color: #299b72;
  background: rgba(41, 155, 114, 0.12);
}

.contact-modal.is-error .contact-modal-icon {
  color: #dc5656;
  background: rgba(220, 86, 86, 0.12);
}

.contact-modal-card h2 {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-modal-card p {
  margin: 0 0 26px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 2;
}

.contact-modal-action {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-modal-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@keyframes contactModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .contact-modal-card {
    padding: 38px 22px 24px;
    border-radius: var(--radius-lg);
  }

  .contact-modal-card h2 {
    font-size: 1.12rem;
  }

  .contact-modal-card p {
    font-size: 0.88rem;
  }
}
