/* RTL helper */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .text-box h3{
  text-align: right;
}

html[dir="rtl"] #phone{
  direction: rtl;
}

html[dir="rtl"] .contact-card {
  text-align: right;
}

.contact-hero {
  position: relative;
  background-image: url('assets/contact-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #982224, #451519, #4d7cb1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-section {
  padding: 60px 10px 20px;
  background-color: #f9f9f9;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #2c3e50;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  justify-content: center;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.contact-form form {
  background: white;
  padding: 20px;
  border-radius: 20px;
  border:1px solid #ececec;
  display: flex;
  flex-direction: column;
}

input::placeholder{
    font-size: 14px;
}

option{
    font-size: 14px;
}
#category {
  font-size: 14px; 
}


.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 10px;
  text-align: left;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.full-width {
  width: 97%;
  margin: 10px;
}


.form-row input,
.form-row select {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 20px;
}

.send-btn {
  background: linear-gradient(to right, #4d7cb1, #649bd6);
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  place-self: center;
  align-self: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1);
}

.send-btn:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-item {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 16px;
}

.icon-box {
  font-size: 24px;
  color: #4d7cb1;
  flex-shrink: 0;
  padding-top: 4px;
}

.text-box{
    text-align: left;
}

.text-box h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.text-box p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

.contact-reasons {
  background: #f9f9f9;
  padding: 30px 20px;
}

.contact-reasons .container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.contact-card {
  background: white;
  border-radius: 12px;
  border:1px solid #ececec;
  padding: 20px;
  text-align: left;
  height: 280px;
}

.contact-card h2 {
  font-size: 24px;
  color: #982223;
  margin-bottom: 10px;
}

.reasons-list {
  list-style: none;
  padding: 0;
}

.reasons-list li {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: #333;
}

.reasons-list i {
  color: #982223;
  margin-right: 10px;
  margin-left: 10px;
  font-size: 18px;
}

.trust-card p {
  color: #555;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-icons a {
  display: inline-block;
  color: white;
  background: #982223;
  margin-right: 10px;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: #3a6493;
}


@media (max-width: 600px) {
  .info-item {
    flex-direction: row;
    align-items: flex-start;
  }
}


@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}


@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 20px;
  }
}
