/* contact-panel.css - shared slide-in contact panel */

.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(920px, 64vw);
  background: #ffffff;
  border-left: 1px solid rgba(76, 87, 100, 0.16);
  box-shadow: -28px 0 70px rgba(15, 23, 42, 0.18), -1px 0 18px rgba(76, 87, 100, 0.1);
  z-index: var(--z-panel);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

[dir="rtl"] .contact-panel {
  left: 0;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
}

.contact-panel.active {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: clamp(20px, 3vh, 30px);
  right: clamp(22px, 5vw, 92px);
  min-height: 50px;
  padding: 8px 12px 8px 20px;
  border: 1px solid rgba(244, 226, 154, 0.72);
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(244, 226, 154, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.panel-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.45) 42%, transparent 72%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

[dir="rtl"] .panel-close {
  left: clamp(22px, 5vw, 92px);
  right: auto;
}

.panel-close:hover {
  border-color: var(--color-primary-light);
  background: var(--gold-gradient-hover);
  color: #000;
  box-shadow: var(--gold-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-3px) scale(1.015);
}

.panel-close:hover::before,
.panel-close:focus-visible::before {
  width: 300px;
  height: 300px;
}

.panel-close__label {
  position: relative;
  z-index: 1;
}

.panel-close__icon-wrap {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94) 0%, rgba(208, 216, 225, 0.98) 34%, rgba(168, 178, 189, 0.96) 68%, rgba(245, 248, 251, 0.96) 100%);
  border: 1px solid rgba(123, 136, 150, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    inset 0 -2px 4px rgba(88, 99, 112, 0.18),
    0 2px 8px rgba(22, 28, 34, 0.16);
}

.panel-close__icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.panel-close__icon::before,
.panel-close__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(145deg, #0b1626 0%, #1e3552 28%, #436586 52%, #1b304a 74%, #09121f 100%);
  transform-origin: center;
}

.panel-close__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.panel-close__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.panel-close:hover .panel-close__icon-wrap {
  background: linear-gradient(140deg, rgba(255, 247, 219, 0.98) 0%, rgba(214, 165, 76, 0.98) 28%, rgba(142, 91, 22, 0.98) 58%, rgba(244, 216, 146, 0.99) 82%, rgba(116, 71, 18, 0.98) 100%);
  border-color: rgba(156, 101, 26, 0.46);
  box-shadow:
    inset 0 1px 1px rgba(255, 250, 232, 0.9),
    inset 0 -3px 5px rgba(99, 57, 10, 0.22),
    0 0 0 1px rgba(255, 228, 165, 0.2),
    0 0 14px rgba(223, 176, 88, 0.42),
    0 4px 12px rgba(66, 35, 8, 0.22);
}

.panel-content {
  padding: var(--spacing-3xl) clamp(24px, 3vw, 44px) var(--spacing-2xl);
}

.panel-label {
  font-size: var(--font-size-xs);
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.panel-content h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: var(--spacing-xl);
  font-size: 2.35rem;
  line-height: 1.05;
  text-align: center;
  color: #000000;
}

.panel-content > p {
  color: rgba(22, 32, 43, 0.74);
  margin-bottom: var(--spacing-xl);
}

.contact-panel-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.contact-panel-form-column {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 26%),
    linear-gradient(135deg, #eef2f6 0%, #cdd4dc 18%, #ffffff 44%, #bac2cb 68%, #909ba7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 42px rgba(15, 23, 42, 0.12);
}

.panel-content form {
  display: block;
}

.contact-panel .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-sm);
}

.contact-panel .form-group {
  margin-bottom: 18px;
}

.contact-panel .form-group label {
  color: #16202b;
  text-shadow: none;
}

.contact-panel .form-group label span {
  color: #b8860b;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.18);
}

.contact-panel .form-group input,
.contact-panel .form-group textarea,
.contact-panel .form-group select {
  border: 1px solid rgba(212, 175, 55, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(227, 233, 239, 0.94) 48%, rgba(190, 199, 209, 0.9)),
    #edf2f6;
  color: #16202b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.contact-panel .form-group input::placeholder,
.contact-panel .form-group textarea::placeholder {
  color: rgba(22, 32, 43, 0.46);
}

.contact-panel .form-group select option {
  color: #16202b;
  background-color: #f5f7fa;
}

.contact-panel .form-group input:hover,
.contact-panel .form-group textarea:hover,
.contact-panel .form-group select:hover {
  border-color: rgba(244, 226, 154, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(15, 23, 42, 0.1), 0 0 18px rgba(212, 175, 55, 0.12);
}

.contact-panel .form-group input:focus,
.contact-panel .form-group textarea:focus,
.contact-panel .form-group select:focus {
  border-color: var(--color-primary-light);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 240, 245, 0.98) 48%, rgba(204, 214, 224, 0.94)),
    #f3f6f9;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22), 0 0 24px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.contact-panel .form-group input:-webkit-autofill,
.contact-panel .form-group textarea:-webkit-autofill,
.contact-panel .form-group select:-webkit-autofill {
  -webkit-text-fill-color: #16202b;
  box-shadow: 0 0 0 1000px rgba(233, 239, 245, 0.96) inset, 0 0 24px rgba(212, 175, 55, 0.16);
  caret-color: #16202b;
}

.contact-panel .form-group input.error,
.contact-panel .form-group textarea.error,
.contact-panel .form-group select.error {
  border-color: #D4AF37;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22), 0 0 18px rgba(212, 175, 55, 0.2);
}

.contact-form-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  text-align: center;
}

.contact-form-note {
  max-width: 32rem;
  margin: 0;
  color: rgba(22, 32, 43, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-form-actions .btn {
  min-width: 180px;
  justify-content: center;
}

.contact-form-actions .contact-submit-btn {
  --cta-circle-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 18px;
  white-space: nowrap;
}

.contact-form-actions .contact-submit-btn__icon-wrap {
  width: var(--cta-circle-size);
  height: var(--cta-circle-size);
  flex: 0 0 var(--cta-circle-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94) 0%, rgba(208, 216, 225, 0.98) 34%, rgba(168, 178, 189, 0.96) 68%, rgba(245, 248, 251, 0.96) 100%);
  border: 1px solid rgba(123, 136, 150, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    inset 0 -2px 4px rgba(88, 99, 112, 0.18),
    0 2px 8px rgba(22, 28, 34, 0.16);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.contact-form-actions .contact-submit-btn__icon {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.contact-form-actions .contact-submit-btn:hover .contact-submit-btn__icon-wrap,
.contact-form-actions .contact-submit-btn:focus-visible .contact-submit-btn__icon-wrap {
  background:
    linear-gradient(140deg, rgba(255, 247, 219, 0.98) 0%, rgba(214, 165, 76, 0.98) 28%, rgba(142, 91, 22, 0.98) 58%, rgba(244, 216, 146, 0.99) 82%, rgba(116, 71, 18, 0.98) 100%);
  border-color: rgba(156, 101, 26, 0.46);
  box-shadow:
    inset 0 1px 1px rgba(255, 250, 232, 0.9),
    inset 0 -3px 5px rgba(99, 57, 10, 0.22),
    0 0 0 1px rgba(255, 228, 165, 0.2),
    0 0 14px rgba(223, 176, 88, 0.42),
    0 4px 12px rgba(66, 35, 8, 0.22);
  transform: translateY(-1px);
}

.contact-form-actions .contact-submit-btn.is-submitting,
.contact-form-actions .contact-submit-btn:disabled {
  cursor: wait;
}

.contact-panel-info {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(135deg, #eef2f6 0%, #cdd4dc 18%, #ffffff 44%, #bac2cb 68%, #909ba7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 42px rgba(15, 23, 42, 0.12);
}

.contact-info-block h3 {
  margin-bottom: 12px;
  color: #b8860b;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.22);
}

.contact-info-list {
  display: grid;
  gap: 12px;
}

.contact-social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 18px;
  align-items: center;
  justify-content: start;
}

.contact-info-row,
.contact-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(22, 32, 43, 0.84);
  transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
}

.contact-info-row:hover,
.contact-social-link:hover {
  color: var(--color-primary-light);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.32);
  transform: translateX(2px);
}

.contact-info-icon {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
  border: 1px solid rgba(244, 226, 154, 0.72);
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(244, 226, 154, 0.5);
  overflow: hidden;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.contact-info-icon::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(208, 216, 225, 0.98) 34%, rgba(168, 178, 189, 0.96) 68%, rgba(245, 248, 251, 0.98) 100%);
  border: 1px solid rgba(123, 136, 150, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    inset 0 -2px 4px rgba(88, 99, 112, 0.18),
    0 2px 8px rgba(22, 28, 34, 0.16);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-info-icon__asset {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

.contact-social-link .contact-info-icon {
  width: 2.45rem;
  height: 2.45rem;
  flex-basis: 2.45rem;
}

.contact-social-link .contact-info-icon__asset {
  width: 0.88rem;
  height: 0.88rem;
}

.contact-info-row strong,
.contact-social-link span {
  display: block;
  color: rgba(22, 32, 43, 0.94);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.contact-info-row small {
  display: block;
  margin-top: 2px;
  color: rgba(22, 32, 43, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.contact-info-row:hover .contact-info-icon,
.contact-social-link:hover .contact-info-icon {
  border-color: var(--color-primary-light);
  background: var(--gold-gradient-hover);
  box-shadow: var(--gold-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-3px) scale(1.015);
}

.contact-info-row:hover .contact-info-icon::before,
.contact-social-link:hover .contact-info-icon::before {
  background:
    linear-gradient(140deg, rgba(255, 247, 219, 0.98) 0%, rgba(214, 165, 76, 0.98) 28%, rgba(142, 91, 22, 0.98) 58%, rgba(244, 216, 146, 0.99) 82%, rgba(116, 71, 18, 0.98) 100%);
  border-color: rgba(156, 101, 26, 0.46);
  box-shadow:
    inset 0 1px 1px rgba(255, 250, 232, 0.9),
    inset 0 -3px 5px rgba(99, 57, 10, 0.22),
    0 0 0 1px rgba(255, 228, 165, 0.2),
    0 0 14px rgba(223, 176, 88, 0.42),
    0 4px 12px rgba(66, 35, 8, 0.22);
}

.contact-info-row:hover strong,
.contact-info-row:hover small,
.contact-social-link:hover span {
  color: var(--color-primary-light);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.32);
}

.contact-social-note {
  margin: 10px 0 0;
  color: rgba(22, 32, 43, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

#contactForm.hidden {
  display: none;
}

@media (max-width: 780px) {
  .contact-panel {
    width: 100%;
  }

  .panel-content {
    padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-2xl);
  }

  .panel-content h2 {
    margin-bottom: var(--spacing-lg);
    font-size: 1.9rem;
  }

  .contact-panel-shell {
    grid-template-columns: 1fr;
  }

  .contact-social-row {
    gap: 14px;
  }

  .contact-panel .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-panel-info {
    padding: 18px;
  }

  .contact-panel-form-column {
    padding: 18px;
  }
}
