@font-face {
  font-family: 'Somar';
  src: url('assets/fonts/somar.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'DroidArabic';
  src: url('assets/fonts/droid-sans.ttf');
  font-display: swap;
}

:root {
  --gold1: #c6a15b;
  --gold2: #8c6a29;
  --bg: #f9f7f2;
  --text: #2e2410;
  --muted: #7b6b45;
  --border: #e4d6b8;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  direction: rtl;
  font-family: 'DroidArabic', sans-serif;
  background: linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
  color: var(--text);
}

.contact-app {
  min-height: 100vh;
  padding-bottom: 84px;
}

.contact-header {
  text-align: center;
}

.contact-hero {
  display: grid;
  gap: 18px;
}

.contact-content {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 22px 0 36px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), #fcf7ea);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card-highlight {
  background: linear-gradient(180deg, #fffaf0, #f7ebce);
  border-color: #dabb74;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8e7bd, #ead29a);
  color: var(--gold2);
  font-size: 22px;
}

.contact-card-body h2 {
  margin: 0;
  font-family: 'Somar';
  font-size: 22px;
  line-height: 1.5;
  color: var(--gold2);
}

.contact-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.contact-form-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), #fcf7ea);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form-head h2 {
  margin: 0;
  font-family: 'Somar';
  font-size: 24px;
  color: var(--gold2);
}

.contact-form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field span {
  font-family: 'Somar';
  color: var(--gold2);
  font-size: 16px;
}

.contact-select,
.contact-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
}

.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--gold1);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

.contact-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-family: 'Somar';
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.contact-action.whatsapp {
  background: linear-gradient(135deg, #29a85b, #1f7f45);
}

.contact-action.telegram {
  background: linear-gradient(135deg, #34a6e7, #197ab5);
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-grid {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 520px) {
  .contact-content {
    width: min(100% - 24px, 1040px);
    padding-top: 18px;
  }

  .contact-card {
    padding: 16px;
    border-radius: 20px;
  }

  .contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 20px;
  }

  .contact-card-body h2 {
    font-size: 19px;
  }

  .contact-card-body p {
    font-size: 14px;
  }

  .contact-form-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .contact-form-head h2 {
    font-size: 21px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-action {
    width: 100%;
  }
}
