/* Стили для страницы контакта - двухколоночная структура */

/* Основная структура страницы */
.contact-page-layout {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

/* Левая колонка */
.contact-left-column {
  flex: 1;
  max-width: 50%;
  padding: 0 24px;
}

/* Правая колонка */
.contact-right-column {
  flex: 1;
  max-width: 50%;
  padding: 0 24px;
}

/* Стили для контактной информации */
.com-contact__address {
  margin: 20px 0;
}

.contact-section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  position: relative;
}

.contact-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f97316;
  border-radius: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-text {
  flex: 1;
  margin-right: 20px;
  text-align: right;
  order: 1;
}

.contact-label {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.contact-value a {
  color: #007cba;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: #005a8b;
  text-decoration: underline;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fed7aa;
  border-radius: 50%;
  color: #f97316;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

/* Секция с дополнительной информацией */
.contact-misc-section {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-misc-section h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

/* Секция с картой */
.contact-map-section {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-map-section iframe {
  border: none;
  width: 100%;
  height: 300px;
}

/* Стили для формы контакта */
.contact-form-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-form-wrapper {
  max-width: 100%;
}

.contact-form-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-field {
  flex: 1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea,
#contact-form select {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border 0.2s;
  resize: none;
  text-align: right;
  font-family: "Assistant Regular", sans-serif;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus,
#contact-form select:focus {
  border-color: #fd7e14;
  outline: none;
  box-shadow: none;
}

#contact-form textarea {
  min-height: 120px;
  max-height: 150px;
}

.captcha-reg {
  margin: 20px 0;
  text-align: center;
}

.submit-button {
  background: #f97316;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  opacity: 0.95;
}

.submit-button:hover {
  opacity: 1;
}

.form-submit {
  margin-top: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1000px) {
  .contact-page-layout {
    flex-direction: column;
    gap: 20px;
  }

  .contact-left-column,
  .contact-right-column {
    max-width: 100%;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-text {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: center;
    order: 1;
  }

  .contact-icon {
    align-self: center;
    margin-left: 0;
    order: 1;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form-container {
    padding: 20px;
  }
}

/* Стили для reCAPTCHA на маленьких экранах */
@media (max-width: 403px) {

  .captcha-reg {
    transform: scale(0.8);
    transform-origin: right;
  }

  .g-recaptcha {
    transform: scale(0.8);
    transform-origin: right;
  }
}

.success-msg {
  direction: rtl;
  margin-top: 1rem;
  color: #059669 !important;
  background-color: #d1fae5 !important;
  border: 1px solid #a7f3d0;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-family: "Assistant Bold", Arial, sans-serif;
  animation: slideIn 1.5s ease-out;
}
.error-msg,
.warning-msg {
  direction: rtl;
  margin-top: 1rem;
  background: #fee2e2 !important;
  color: #dd4c4c !important;
  border: 1px solid #fecaca;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-family: "Assistant Bold", Arial, sans-serif;
  animation: slideIn 1.5s ease-out;
}

/* Form Validation Styles */
#contact-form input[type="text"].border-red-500,
#contact-form input[type="email"].border-red-500,
#contact-form textarea.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: none;
  transition: all 0.3s ease;
}

#contact-form input[type="text"].focus\:ring-red-500:focus,
#contact-form input[type="email"].focus\:ring-red-500:focus,
#contact-form textarea.focus\:ring-red-500:focus {
  border-color: #ef4444 !important;
  box-shadow: none;
}

#contact-form input[type="text"].border-gray-300,
#contact-form input[type="email"].border-gray-300,
#contact-form textarea.border-gray-300 {
  border-color: #d1d5db !important;
  transition: all 0.3s ease;
}

#contact-form input[type="text"].focus\:ring-orange-500:focus,
#contact-form input[type="email"].focus\:ring-orange-500:focus,
#contact-form textarea.focus\:ring-orange-500:focus {
  border-color: #fd7e14 !important;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Form Message Styles */
#contact-form-message {
  text-align: center;
  border-radius: 0.5rem;
  font-family: "Assistant Bold", Arial, sans-serif;
  animation: slideIn 1.5s ease-out;
}

#contact-form-message.text-green-600 {
  direction: rtl;
  margin-top: 1rem;
  padding: 0.75rem;

  color: #059669 !important;
  background-color: #d1fae5 !important;
  border: 1px solid #a7f3d0;
  animation: slideIn 1.5s ease-out, pulse 2s ease-in-out;
}

#contact-form-message.text-red-600 {
  direction: rtl;
  margin-top: 1rem;
  padding: 0.75rem;

  color: #dd4c4c !important;
  background-color: #fee2e2 !important;
  border: 1px solid #fecaca;
  animation: slideIn 1.5s ease-out;
}

/* Captcha Error Styling */
.captcha-reg {
  border: none;
  transition: border 0.2s;
}

.captcha-reg.error {
  border: 2px solid #ef4444 !important;
  border-radius: 8px;
  padding: 0.5rem;
}

/* Form Validation Icons */
#contact-form-message i {
  margin-left: 0.5rem;
}

/* SVG Icon Styles */
.inline-icon {
  display: inline-block;
  vertical-align: text-top;
  margin-left: 0.5rem;
  margin-right: 0.25rem;
  margin-top: 2px;
}

/* Responsive adjustments for validation */
@media (max-width: 700px) {
  #contact-form-message {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}
.g-recaptcha {
  direction: rtl;
}
/* Error Tooltip Styles */
.error-tooltip {
  position: absolute;
  background: #dd4c4c;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 49;
  top: -8px;
  left: -16px;
  white-space: nowrap;
  font-family: "Assistant", Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: tooltipSlideIn 0.3s ease-out;
}

.error-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: #dd4c4c;
  border-right: 0;
}

/* Animation Keyframes */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tooltipSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-5px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Responsive adjustments for tooltips */
@media (max-width: 1000px) {
  .error-tooltip {
    left: 0px;
  }
  .error-tooltip::after {
    border-width: 8px;
    right: -5px;
  }
}
