/* ======================== */
/* CONTACT PAGE STYLES */
/* ======================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

/* ======================== */
/* HEADER */
/* ======================== */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #2c3e50 !important;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-link {
  padding: 8px 15px;
  font-weight: 500;
  color: #555 !important;
  transition: all 0.3s ease;
  border-radius: 6px;
  position: relative;
}

.nav-link:hover {
  background-color: #f0f0f0;
  color: var(--primary-color) !important;
}

.nav-link.active {
  background: var(--primary-color);
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(127, 166, 149, 0.3);
}

.nav-link.active:hover {
  background: #6a8d7e;
  box-shadow: 0 6px 16px rgba(127, 166, 149, 0.4);
}

/* ======================== */
/* SECTION STYLING */
/* ======================== */
.section {
  padding: clamp(30px, 8vw, 60px) 0;
}

.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-header {
  margin-bottom: 50px;
}

.page-title {
  font-size: clamp(28px, 6vw, 42px);
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-subtitle {
  font-size: clamp(14px, 3vw, 18px);
  color: #7f8c8d;
  line-height: 1.6;
}

/* ======================== */
/* CONTACT CONTENT */
/* ======================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}

/* ======================== */
/* FORM STYLING */
/* ======================== */
.contact-form-container {
  background: white;
  padding: clamp(30px, 6vw, 55px);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: sticky;
  top: 100px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.contact-form-container:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.form-title {
  font-size: clamp(22px, 4.5vw, 32px);
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 35px;
  padding-bottom: 18px;
  border-bottom: 3px solid #396afc;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mb-3 {
  margin-bottom: 0 !important;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: clamp(14px, 2.5vw, 16px);
  margin-bottom: 12px;
  display: block;
}

.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: clamp(12px 16px, 2.5vw 3.5vw, 15px 20px);
  font-size: clamp(14px, 2.5vw, 16px);
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  background-color: #fafafa;
  width: 100%;
}

.form-control:focus {
  border-color: #396afc;
  box-shadow: 0 0 0 4px rgba(57, 106, 252, 0.15);
  outline: none;
  background-color: white;
}

.form-control:hover:not(:focus) {
  border-color: #d0d0d0;
  background-color: #f5f5f5;
}

.form-control::placeholder {
  color: #bdc3c7;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #f5f5f5;
  color: #7f8c8d;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #396afc, #2948ff);
  border: none;
  border-radius: 12px;
  padding: clamp(14px 24px, 3vw 5vw, 18px 32px);
  font-weight: 700;
  font-size: clamp(15px, 2.5vw, 17px);
  transition: all 0.3s ease;
  margin-top: 25px;
  box-shadow: 0 6px 20px rgba(57, 106, 252, 0.4);
  color: white;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2948ff, #1e36cc);
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(57, 106, 252, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 106, 252, 0.4);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary i {
  margin-left: 8px;
  font-size: 18px;
}

/* ======================== */
/* CONTACT INFO SECTION */
/* ======================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: white;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-card:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #396afc, #2948ff);
  border-radius: 12px;
  color: white;
  font-size: 28px;
  flex-shrink: 0;
}

.contact-card-content {
  flex: 1;
}

.contact-card-content h3 {
  font-size: clamp(16px, 3vw, 20px);
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-card-content p {
  margin: 0;
  font-size: clamp(13px, 2vw, 15px);
  color: #7f8c8d;
}

.contact-card-content a {
  color: #396afc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-card-content a:hover {
  color: #2948ff;
  text-decoration: underline;
}

/* Social Card */
.social-card {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.social-card h3 {
  width: 100%;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link.whatsapp {
  background: #25d366;
}

.social-link.whatsapp:hover {
  background: #1fa857;
  transform: translateY(-5px) scale(1.1);
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.facebook:hover {
  background: #0a66c2;
  transform: translateY(-5px) scale(1.1);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover {
  transform: translateY(-5px) scale(1.1);
}


/* ======================== */
/* RESPONSIVE DESIGN */
/* ======================== */

/* Mobile */
@media (max-width: 576px) {
  .section {
    padding: 25px 0;
  }

  .contact-section {
    min-height: auto;
    padding: 30px 0;
  }

  .section-header {
    margin-bottom: 35px;
  }

  .page-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-form-container {
    padding: 30px 20px;
    position: static;
  }

  .form-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .contact-form {
    gap: 18px;
  }

  .form-control {
    padding: 14px 16px;
    font-size: 15px;
  }

  .btn-primary {
    padding: 15px 20px;
    font-size: 16px;
    margin-top: 20px;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-card-content h3,
  .contact-card-content p {
    text-align: center;
  }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    padding: 35px 25px;
    position: static;
  }

  .section-header {
    margin-bottom: 45px;
  }

  .page-title {
    font-size: 34px;
  }

  .form-title {
    font-size: 26px;
  }

  .contact-card {
    flex-direction: row;
  }
}

/* Large Desktop */
@media (min-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .contact-form-container {
    padding: 50px;
    position: sticky;
    top: 120px;
  }

  .section-header {
    margin-bottom: 70px;
  }

  .page-title {
    font-size: 46px;
  }

  .page-subtitle {
    font-size: 18px;
    max-width: 600px;
  }

  .form-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .contact-form {
    gap: 22px;
  }

  .form-control {
    padding: 16px 22px;
    font-size: 16px;
  }

  .btn-primary {
    padding: 18px 35px;
    font-size: 17px;
    margin-top: 30px;
  }
}

/* Extra Large Devices */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .contact-form-container {
    padding: 55px;
  }

  .form-control {
    padding: 18px 25px;
    font-size: 17px;
  }
}

/* ======================== */
/* ANIMATIONS */
/* ======================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form-container,
.contact-card {
  animation: slideInUp 0.6s ease;
}
