/* Contact page — from frontend/src/components/ContactComponent.vue (unscoped for PHP) */

.contact-component {
  direction: rtl;
  padding: 0 0 3.25rem;
  background: #f8fafc;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 40px auto 0;
  overflow: visible;
  direction: ltr;
  min-height: 520px;
  padding: 0 1rem;
  box-sizing: border-box;
}

.contact-form-section {
  background: #ffffff;
  padding: 2.6rem 2.3rem;
  direction: rtl;
  border: 1px solid #e5e7eb;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-title {
  margin: 0 0 1.9rem 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  text-align: right;
  font-family: inherit;
  line-height: 1.25;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 0.95rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  direction: rtl;
  width: 100%;
  background: #f8fafc;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.6rem;
  appearance: none;
  background-color: #f8fafc;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  direction: rtl;
  box-sizing: border-box;
}

.select-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group textarea:focus,
.select-wrapper select:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.16);
}

.form-group textarea {
  resize: vertical;
  min-height: 155px;
}

.submit-btn {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  direction: rtl;
  background: linear-gradient(135deg, #ff6b00, #ff6b00);
  color: #ffffff;
  border: none;
  padding: 0 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.45);
}

.submit-btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.submit-btn-loader[hidden] {
  display: none;
}

.submit-btn-label {
  line-height: 1.2;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ba5c14, #dc6916);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.65);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-info-section {
  background: transparent;
  color: #111827;
  padding: 2.6rem 2.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  direction: rtl;
  border-radius: 16px;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
  text-align: right;
  font-family: inherit;
}

.info-description {
  color: #6b7280;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
  text-align: right;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  direction: ltr;
}

.info-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  direction: rtl;
  text-align: right;
}

.info-card-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b7280;
}

.info-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.info-card-value a {
  color: inherit;
  text-decoration: none;
}

.info-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-card-icon--phone {
  background: rgba(255, 107, 0, 0.12);
  color: #ff6b00;
}

.info-card-icon--email {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.info-card-icon--location {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.availability-block {
  text-align: right;
  background: #f1f5f9;
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
}

.availability-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.availability-time {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  color: #6b7280;
}

.availability-text {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.contact-success {
  text-align: center;
  padding: 2.5rem 1.5rem 2.75rem;
}

.contact-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00, #ff8533);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.85rem;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.42);
}

.contact-success-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
  line-height: 1.25;
}

.contact-success-text {
  font-size: 1.125rem;
  color: #718096;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

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

  .contact-form-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact-component {
    padding: 0 0 2rem;
  }

  .contact-form-section,
  .contact-info-section {
    padding: 2rem 1.5rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
