/* Contact Page Styles */

/* RTL Support for Arabic Text */
body {
  direction: rtl;
  text-align: right;
}

.form-label {
  text-align: right;
}

.form-control,
.form-select,
textarea.form-control {
  text-align: right;
  direction: rtl;
}

.btn {
  direction: rtl;
}

.accordion-button {
  text-align: right;
  direction: rtl;
}

.accordion-body {
  text-align: right;
  direction: rtl;
  line-height: 1.8;
}

.contact-info-item h4,
.contact-info-item p {
  text-align: right;
  direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
  text-align: right;
  direction: rtl;
}

p, .lead {
  text-align: right;
  direction: rtl;
  line-height: 1.8;
}

/* Adjust Bootstrap components for RTL */
.row {
  direction: rtl;
}

.form-check {
  text-align: right;
  direction: rtl;
}

.form-check-input {
  margin-left: 0.25rem;
  margin-right: 0;
}

.form-check-label {
  padding-right: 0;
  padding-left: 1.25rem;
}


.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 700px;
}

/* Contact Section */
#contact-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.contact-form-wrapper {
  background-color: #fff;
  border-radius: 8px;
}

.contact-form-wrapper h2,
.contact-info h2 {
  color: #333;
  font-weight: 600;
  font-size: 2rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.btn-primary {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #333;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #333;
}

/* Contact Info */
.contact-info {
  border-radius: 8px;
}

.contact-info-item h4 {
  color: #333;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: #666;
  line-height: 1.6;
}

.contact-info-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: #ffc107;
}

.icon-box {
  background-color: #ffc107;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  font-size: 1.25rem;
  color: #fff;
}

/* Map Section */
.map-container {
  border-radius: 8px;
  overflow: hidden;
}

/* FAQ Section */
#faq-section {
  background-color: #f9f9f9;
}

.accordion-item {
  border: none;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  background-color: #fff;
  color: #333;
}

.accordion-button:not(.collapsed) {
  background-color: #ffc107;
  color: #333;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(255, 193, 7, 0.25);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Travel Inquiry Form Specific Styles */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: #ffc107;
  font-size: 1.5rem;
}

.section-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffc107, transparent);
  margin: 2rem 0;
}

.text-danger {
  color: #dc3545 !important;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Children Ages Input Styling */
#contactChildrenAgesContainer .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.child-age {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
}

.child-age:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Radio and Checkbox Styling */
.form-check {
  padding-right: 1.25rem;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.form-check-input {
  float: right;
  margin-right: 0;
  margin-left: 0.25rem;
}

.form-check-label {
  padding-right: 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.form-check-label strong {
  color: #333;
  font-weight: 600;
}

.form-check-label small {
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.3;
}

/* Destinations Grid (for checkbox layout) */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .destinations-grid {
    grid-template-columns: 1fr;
  }
}

/* Invalid feedback */
.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success message styling */
.text-success {
  color: #198754 !important;
}

/* Submit button specific styling */
#submitContactTravelInquiry {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #333;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

#submitContactTravelInquiry:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

#submitContactTravelInquiry:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive adjustments for form */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.1rem;
  }
  
  .section-title i {
    font-size: 1.2rem;
  }
  
  .form-control,
  .form-select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .contact-info {
    margin-top: 2rem;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    height: 50vh;
  }

  .contact-form-wrapper,
  .contact-info {
    padding: 1.5rem !important;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }
}

/* Additional RTL Support */
.hero__text {
  direction: rtl;
  text-align: right;
}

.hero__text a {
  direction: rtl;
}

.navbar, .nav {
  direction: rtl;
}

/* Fix icon positioning for RTL */
.icon-box {
  margin-left: 0;
  margin-right: 0;
}

.contact-info-item {
  text-align: right;
  direction: rtl;
}

/* Fix accordion arrow for RTL */
.accordion-button::after {
  margin-left: 0;
  margin-right: auto;
}

/* Map iframe container */
.map-container iframe {
  direction: ltr; /* Keep maps in LTR */
}

/* Form validation and links */
.form-check-label a {
  direction: rtl;
  text-align: right;
}

/* Bootstrap 5.3 RTL fixes for input-group */
[dir="rtl"] .input-group > .form-control:not(:first-child),
[dir="rtl"] .input-group > .form-select:not(:first-child),
[dir="rtl"] .input-group > .form-floating:not(:first-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
}

[dir="rtl"] .input-group > .form-control:not(:last-child),
[dir="rtl"] .input-group > .form-select:not(:last-child),
[dir="rtl"] .input-group > .form-floating:not(:last-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

[dir="rtl"] .input-group > .btn:not(:first-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
  margin-right: -1px;
  margin-left: 0;
}

[dir="rtl"] .input-group > .btn:not(:last-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
  margin-left: -1px;
  margin-right: 0;
}

/* Fix input-group-text for RTL */
[dir="rtl"] .input-group-text:not(:first-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
}

[dir="rtl"] .input-group-text:not(:last-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

/* Fix dropdown toggle in input-group for RTL */
[dir="rtl"] .input-group > .dropdown-toggle:not(:first-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

[dir="rtl"] .input-group > .dropdown-toggle:not(:last-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Additional input-group RTL fixes for Bootstrap 5.3 */
.input-group {
  direction: rtl;
}

.input-group .form-control,
.input-group .form-select {
  text-align: right;
  direction: rtl;
}

/* Fix button positioning in search forms */
.search-form .input-group {
  direction: rtl;
  display: flex;
  flex-direction: row-reverse;
}

.search-form .input-group .btn {
  border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
  border-left: 1px solid #ced4da;
  border-right: none;
}

.search-form .input-group .form-control {
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
  border-right: 1px solid #ced4da;
  border-left: none;
}

/* Focus states for RTL input-group */
.search-form .input-group .form-control:focus {
  border-right-color: #ffc107;
  border-left: none;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.search-form .input-group .btn:focus {
  border-left-color: #ffc107;
  border-right: none;
}
