/* Contact Page Styles - Based on Figma Design */
.contact-page-container {
  width: 100%;
  position: relative;
  background: url('/static/Contact-bg.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16rem 1rem 4rem 1rem;
}

/* Ensure no scrollbars and full viewport */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.contact-form-section {
  width: 868px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.contact-title {
  align-self: stretch;
  color: black;
  font-size: 24px;
  font-family: Alexandria, sans-serif;
  font-weight: 700;
  word-wrap: break-word;
  text-align: left;
}

/* Arabic version - right aligned title */
html[lang="ar"] .contact-title {
  text-align: right;
}

.contact-form {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 32px;
}

.form-row {
  align-self: stretch;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  display: inline-flex;
}

.form-input-group {
  width: 100%;
  flex: 1 1 0;
  position: relative;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 16px;
  border-radius: 8px;
  border: none;
  outline: 1px var(--Color-Gray-Gray-2, #797373) solid;
  outline-offset: -1px;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  display: flex;
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 400;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(0, 0, 0, 0.50);
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 400;
}

.form-textarea {
  align-self: stretch;
  width: 100%;
  height: 177px;
  padding: 16px;
  border-radius: 8px;
  border: none;
  outline: 1px var(--Color-Gray-Gray-2, #797373) solid;
  outline-offset: -1px;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  display: inline-flex;
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 400;
  resize: vertical;
  box-sizing: border-box;
}

.form-textarea::placeholder {
  opacity: 0.50;
  color: var(--Color-Black-2, black);
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 400;
}

.form-submit-btn {
  align-self: stretch;
  height: 48px;
  padding: 16px;
  background: var(--Color-Primary-Primary, #0FA304);
  border-radius: 8px;
  border: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: inline-flex;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--Color-Primary-White, white);
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 400;
}

.form-submit-btn:hover {
  background: #0d8a03;
}

.form-submit-btn:active {
  background: #0b7a02;
}

.contact-info-section {
  align-self: stretch;
  justify-content: space-between;
  align-items: flex-start;
  display: inline-flex;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 12px;
}

.contact-info-item:first-child {
  width: 368px;
  height: 46px;
  justify-content: flex-start;
  align-items: center;
}

.contact-info-item:last-child {
  width: 361px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: inline-flex;
}

.contact-info-label {
  width: 51px;
  height: auto;
  color: black;
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 600;
  word-wrap: break-word;
}

.contact-info-content {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  display: inline-flex;
}

.contact-info-content div {
  color: black;
  font-size: 12px;
  display: flex;
  order: 1; /* Default order for desktop */
}

.contact-detail-label {
  color: black;
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 600;
  word-wrap: break-word;
}

.contact-detail-value {
  color: black;
  font-size: 12px;
  font-family: Alexandria, sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

/* Social Media Section */
.social-media-section {
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 33px;
  display: inline-flex;
  margin-top: 2rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: black;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}

a.social-icon {
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
  background: var(--Color-Primary-Primary, #0FA304);
}

.social-icon i {
  font-size: 12px;
  color: rgb(178 185 138);
  transition: color 0.3s ease;
}

.social-icon:hover i {
  color: rgba(255, 255, 255, 0.9);
}

/* Focus states */
.form-input:focus,
.form-textarea:focus {
  outline: 1px var(--Color-Primary-Primary, #0FA304) solid;
  outline-offset: -1px;
  box-shadow: 0 0 0 2px rgba(15, 163, 4, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {

  .social-media-section {
    margin-top: unset;
  }

  .contact-form-section {
    width: 100%;
    gap: 15px;
  }
  
  .contact-form {
    gap: 15px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .contact-info-section {
    flex-direction: column-reverse; /* Reverse the order on mobile */
    gap: 9px;
  }
  
  .contact-info-item:first-child,
  .contact-info-item:last-child {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-page-container {
    padding: 14rem 1.5rem 0;
  }
  
  .form-textarea {
    height: 135px;
  }
  .contact-form-section {
    gap: 25px;
  }
  
  .contact-form {
    gap: 15px;
  }

  .contact-title {
    font-size: 20px;
  }
}
