.all_contact_block {
  padding: 60px 0;
  background-color: #ffffff;
}

.contact_section {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 80px;
}
.contact_section .section_title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  position: relative;
  font-style: italic;
  padding-left: 28px;
  width: 30%;
}
.contact_section .section_title:after {
  content: "";
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  border-radius: 0 12px 12px 0;
  background-color: #941b0c;
}
.contact_section .contact_wrapper {
  width: 70%;
}
.contact_section .contact_info_wrapper {
  display: flex;
  flex-direction: column;
}
.contact_section .contact_info_wrapper .office-info-item {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: solid 1px #dedede;
  margin-bottom: 24px;
}
.contact_section .contact_info_wrapper .office-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.contact_section .contact_info_wrapper .office-info-item .office-map {
  width: 100%;
  max-width: 312px;
  height: 100%;
}
.contact_section .contact_info_wrapper .office-info-item .office-map iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 12px;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-title {
  font-size: 16px;
  font-weight: 800;
  color: #000;
  margin-bottom: 16px;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-row svg {
  width: 18px;
  height: 18px;
  color: #666666;
  flex-shrink: 0;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-row span {
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-row a {
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-row a:hover {
  color: #764d2a;
  text-decoration: underline;
}
.contact_section .contact_info_wrapper .office-info-item .office-details .office-row:last-child {
  margin-bottom: 0;
}
.contact_section .contact_form_wrapper .form_contact .form_title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}
.contact_section .contact_form_wrapper .form_contact .form_subtitle {
  font-size: 16px;
  color: #757575;
  line-height: 1.4;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper {
  display: flex;
  flex-direction: column;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper.full-width {
  grid-column: 1/-1;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper label {
  font-size: 16px;
  font-weight: 600;
  color: #757575;
  margin-bottom: 16px;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .input-field {
  position: relative;
  width: 100%;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .input_item {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 400;
  color: #949494;
  background: #f2f3f5;
  outline: none;
  transition: all 0.3s ease;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .input_item::-moz-placeholder {
  color: #999999;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .input_item::placeholder {
  color: #999999;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .input_item:focus {
  border-color: #8b5a2b;
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .input_item.error {
  border-color: #e74c3c;
  background-color: #fff5f5;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper textarea.input_item {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper .error-message {
  font-size: 14px;
  color: #e74c3c;
  margin-top: 12px;
  display: none;
  font-weight: 500;
  line-height: 1.4;
  padding-left: 5px;
  animation: fadeInError 0.3s ease-in-out;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper.has-error .input_item {
  border-color: #e74c3c !important;
  background-color: #fff5f5;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper.has-error .error-message {
  display: block;
  animation: fadeInError 0.3s ease-in-out;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper.has-error .file-label {
  border-color: #e74c3c !important;
  background-color: #fff5f5;
}
.contact_section .contact_form_wrapper .form_contact .input-wrapper.has-error .file-label.error {
  border-color: #e74c3c !important;
  background-color: #fff5f5;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper {
  position: relative;
  display: block;
  width: 100%;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-input {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-input:focus + .file-label {
  border-color: #8b5a2b;
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 400;
  color: #949494;
  background: #f2f3f5;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-label .file-text {
  color: #999999;
  flex: 1;
  text-align: left;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-label .file-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
  background-color: #fff;
  color: #000;
  padding: 6px 12px;
  border: solid 1px #dedede;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-label:hover .file-button {
  background: #941b0c;
  color: #ffffff;
}
.contact_section .contact_form_wrapper .form_contact .file-upload-wrapper .file-label.error {
  border-color: #e74c3c;
  background-color: #fff5f5;
}

.contact_info_section {
  margin-bottom: 80px;
}

.contact_form_section {
  margin-top: 80px;
}

.form_group {
  margin-bottom: 24px;
}

.form_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form_row:last-child {
  margin-bottom: 0;
}

.required {
  color: #e71313;
}

.form_actions {
  float: right;
}
.form_actions .btn-submit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background-color: #941b0c;
  color: #ffffff;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}
.form_actions .btn-submit:hover {
  flex-direction: row-reverse;
  transition: all 0.3s ease;
  background-color: #460a03;
}
.form_actions .btn-submit.sending {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}
.form_actions .btn-submit.sending span {
  display: none;
}
.form_actions .btn-submit.sending svg {
  display: none;
}
.form_actions .btn-submit.sending:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinLoading 0.8s linear infinite;
}

.contact-success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.contact-success-modal.show {
  display: flex;
  opacity: 1;
}
.contact-success-modal .modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.contact-success-modal .modal-content .modal-icon {
  color: #8b5a2b;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.contact-success-modal .modal-content .modal-icon svg {
  width: 64px;
  height: 64px;
}
.contact-success-modal .modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}
.contact-success-modal .modal-content p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 28px 0;
}
.contact-success-modal .modal-content .close-modal-btn {
  background-color: #fff;
  color: #941b0c;
  border: 2px solid #941b0c;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}
.contact-success-modal .modal-content .close-modal-btn:hover {
  background-color: #941b0c;
  color: #fff;
}
.contact-success-modal.show .modal-content {
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spinLoading {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .all_contact_block {
    padding: 40px 0;
  }
  .section_title {
    font-size: 26px;
  }
  .contact_info_section {
    margin-bottom: 50px;
  }
  .form_row {
    grid-template-columns: 1fr !important;
  }
  .form_title {
    font-size: 20px;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .all_contact_block {
    padding: 30px 0;
  }
  .section_title {
    font-size: 22px;
  }
  .contact_info_wrapper {
    gap: 20px !important;
  }
  .office-info-item .office-details {
    padding: 16px;
  }
  .office-info-item .office-map {
    height: 150px;
  }
  .form_title {
    font-size: 18px;
  }
  .form_subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }
}
