/* ============================================================
   CONTACT UX — Modern Contact Page
   With floating labels, cards, and animations
============================================================ */

.contact-ux {
  padding: 80px 0;
  background: var(--color-background, #f8fafc);
  min-height: 70vh;
}

/* ============================================================
   HEADER SECTION
============================================================ */

.contact-ux__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  position: relative;
}

.contact-ux__header-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary, #2563eb);
  opacity: 0.5;
}

.contact-ux__header-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary, #2563eb);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 100px;
}

.contact-ux__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text, #0f172a);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.contact-ux__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary, #2563eb);
  border-radius: 3px;
}

.contact-ux__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #475569);
  line-height: 1.6;
  margin-top: 20px;
}

/* ============================================================
   GRID LAYOUT
============================================================ */

.contact-ux__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .contact-ux__grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .contact-ux__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   CONTACT INFO CARDS
============================================================ */

.contact-ux__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: start;
}

@media (max-width: 480px) {
  .contact-ux__info {
    grid-template-columns: 1fr;
  }
}

/* Contact Card */
.contact-card {
  background: var(--color-surface, #ffffff);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--color-border, #e2e8f0);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
  border-color: var(--color-primary, #2563eb);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light, #dbeafe);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #2563eb);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card__icon {
  background: var(--color-primary, #2563eb);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
}

.contact-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 8px;
}

.contact-card__content {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #475569);
  margin-bottom: 8px;
  line-height: 1.5;
  word-break: break-word;
}

.contact-card__address {
  font-style: normal;
}

.contact-card__note {
  font-size: 0.75rem;
  color: var(--color-text-muted, #94a3b8);
  margin-bottom: 16px;
}

.contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary, #2563eb);
  text-decoration: none;
  margin-top: auto;
  transition: all 0.2s ease;
}

.contact-card__link:hover {
  gap: 12px;
  color: var(--color-primary-dark, #1d4ed8);
}

.contact-card__link svg {
  width: 16px;
  height: 16px;
}

/* Social Media */
.contact-social {
  grid-column: 1 / -1;
  background: var(--color-surface, #ffffff);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--color-border, #e2e8f0);
  margin-top: 20px;
}

.contact-social__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.contact-social__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-social__link {
  width: 44px;
  height: 44px;
  background: var(--color-background, #f8fafc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary, #475569);
  transition: all 0.2s ease;
  border: 1px solid var(--color-border, #e2e8f0);
}

.contact-social__link:hover {
  background: var(--color-primary, #2563eb);
  color: white;
  transform: translateY(-2px);
  border-color: var(--color-primary, #2563eb);
}

.contact-social__link svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   CONTACT FORM
============================================================ */

.contact-ux__form {
  background: var(--color-surface, #ffffff);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
  .contact-ux__form {
    padding: 30px 20px;
  }
}

.contact-form__header {
  margin-bottom: 30px;
}

.contact-form__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 8px;
}

.contact-form__subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #475569);
  line-height: 1.6;
}

/* Alerts */
.contact-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-alert--success {
  background: var(--color-success-light, #dcfce7);
  border: 1px solid var(--color-success, #16a34a);
  color: var(--color-success, #16a34a);
}

.contact-alert--error {
  background: var(--color-danger-light, #fee2e2);
  border: 1px solid var(--color-danger, #dc2626);
  color: var(--color-danger, #dc2626);
}

.contact-alert svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-alert p {
  margin: 0;
  font-size: 0.95rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

/* Floating Label Fields */
.field {
  position: relative;
  width: 100%;
}

.field--float {
  margin-top: 8px;
}

.field__input {
  width: 100%;
  padding: 16px 16px 8px;
  font-size: 1rem;
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  background: transparent;
  color: var(--color-text, #0f172a);
  outline: none;
  transition: all 0.2s ease;
}

.field__input:focus {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 3px var(--color-primary-light, #dbeafe);
}

.field__input:hover {
  border-color: var(--color-border-strong, #cbd5e1);
}

.field__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--color-text-muted, #94a3b8);
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 4px;
}

.field--textarea .field__label {
  top: 24px;
  transform: none;
}

.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  background: var(--color-surface, #ffffff);
  color: var(--color-primary, #2563eb);
}

.field__input::placeholder {
  color: transparent;
}

.field__focus {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary, #2563eb);
  transition: width 0.3s ease;
}

.field__input:focus ~ .field__focus {
  width: 100%;
}

/* Required Star */
.required-star {
  color: var(--color-danger, #dc2626);
  margin-left: 2px;
}

[dir="rtl"] .required-star {
  margin-left: 0;
  margin-right: 2px;
}

/* Honeypot (anti-spam) */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Submit Button */
.btn-send {
  width: 100%;
  padding: 16px 24px;
  background: var(--color-primary, #2563eb);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-send:hover {
  background: var(--color-primary-dark, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-send:active {
  transform: translateY(0);
}

.btn-send__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-send:hover .btn-send__icon {
  transform: translateX(4px) scale(1.1);
}

[dir="rtl"] .btn-send:hover .btn-send__icon {
  transform: translateX(-4px) scale(1.1);
}

/* Button Loading State */
.btn-send.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-send.is-loading .btn-send__text,
.btn-send.is-loading .btn-send__icon {
  opacity: 0;
}

.btn-send.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Note */
.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted, #94a3b8);
  text-align: center;
  margin-top: 20px;
}

.form-note a {
  color: var(--color-primary, #2563eb);
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   FAQ SECTION
============================================================ */

.contact-faq {
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-faq__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}

.contact-faq__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary, #2563eb);
  border-radius: 3px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary-light, #dbeafe);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text, #0f172a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-question:hover {
  color: var(--color-primary, #2563eb);
  background: var(--color-background, #f8fafc);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-primary, #2563eb);
  background: var(--color-primary-light, #dbeafe);
}

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--color-primary, #2563eb);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-background, #f8fafc);
  border-top: 1px solid transparent;
}

.faq-answer[aria-hidden="false"] {
  max-height: 200px;
  border-top-color: var(--color-border, #e2e8f0);
}

.faq-answer {
  padding: 0 20px;
  color: var(--color-text-secondary, #475569);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-answer[aria-hidden="false"] {
  padding: 0 20px 20px;
}

/* ============================================================
   RTL SUPPORT
============================================================ */

[dir="rtl"] .btn-send__icon {
  transform: rotate(180deg);
}

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .field__label {
  left: auto;
  right: 16px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
  .contact-ux {
    padding: 40px 0;
  }

  .contact-ux__title {
    font-size: 2rem;
  }

  .contact-ux__subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-ux__title {
    font-size: 1.75rem;
  }

  .contact-card__icon {
    width: 48px;
    height: 48px;
  }

  .contact-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .contact-form__title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   PRINT STYLES
============================================================ */

@media print {
  .contact-ux {
    padding: 20px 0;
    background: none;
  }

  .contact-ux__header-ornament,
  .contact-ux__header-tag,
  .btn-send,
  .contact-social,
  .contact-faq {
    display: none;
  }

  .contact-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}