/* Contact Form Section */
.contact-form-section {
  width: 100%;
  padding: 60px 0;
  background: #ffffff;
}

.contact-form-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 92px;
  background: #ffffff;
  border-radius: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contact Info Styles */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 652px;
  height: 100%;
}

.contact-info-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 604px;
  margin-bottom: 40px;
}

.contact-label {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #24326f;
  text-transform: uppercase;
}

.contact-title {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.contact-description {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #727377;
  max-width: 590px;
  margin: 0;
  margin-bottom: 20px;
}

.contact-map {
  width: 100%;
  margin-top: 40px;
}

.map-image {
  width: 100%;
  max-width: 652px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

/* Form Styles */
.contact-form-wrapper {
  flex: 1;
  max-width: 696px;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #000000;
}

.input-container,
.select-container,
.textarea-container {
  position: relative;
  width: 100%;
}

.input-container input,
.select-container select,
.textarea-container textarea {
  width: 100%;
  padding: 12px 16px 12px 16px;
  background: #ffffff;
  border: 1px solid #e9ebf1;
  border-radius: 6px;
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-size: 14px;
  line-height: 21px;
  color: #000000;
  box-sizing: border-box;
}

.textarea-container textarea {
  height: 160px;
  resize: none;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.textarea-container .input-icon {
  top: 24px;
  transform: none;
}

.select-container {
  position: relative;
}

.select-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-right: 2px solid #727377;
  border-bottom: 2px solid #727377;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.helper-text {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #727377;
  margin-top: 5px;
}

.submit-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 44px;
  gap: 10px;
  width: 100%;
  height: 72px;
  background: #ad2324;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 16px;
}

.submit-button:hover {
  background: #8e1d1e;
}

.submit-button span {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  text-align: center;
  color: #f5f5f5;
}

/* Contact Info Section */
.contact-info-section {
  padding: 60px 0;
  background: #ffffff;
}

.contact-info-cards {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 335px;
}

.info-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  background: #e8e9f3;
  border-radius: 50%;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-content h3 {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 130%;
  color: #030027;
  margin: 0;
}

.info-content p,
.info-content a {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 130%;
  color: #030027;
  margin: 0;
}

.info-content a {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: #ad2324;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .contact-form-container {
    gap: 60px;
  }

  .contact-title {
    font-size: 48px;
  }

  .map-image {
    max-width: 100%;
  }

  .contact-info-cards {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }

  .info-card {
    width: calc(50% - 20px);
    min-width: 280px;
  }
}

@media (max-width: 992px) {
  .contact-form-container {
    flex-direction: column;
    gap: 40px;
    padding: 0 30px;
  }

  .contact-info,
  .contact-form-wrapper {
    max-width: 100%;
  }

  .contact-info-header {
    max-width: 100%;
  }

  .contact-title {
    font-size: 42px;
  }

  .info-card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 40px 0;
  }

  .contact-info-section {
    padding: 40px 0;
  }

  .contact-form-container {
    padding: 0 20px;
    gap: 30px;
  }

  .contact-info-cards {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 24px;
  }

  .contact-title {
    font-size: 36px;
  }

  .info-card {
    width: 100%;
    max-width: 100%;
  }

  .submit-button {
    height: 60px;
  }

  .contact-info .info-card {
    margin-top: 20px;
    gap: 12px;
  }

  .contact-info .info-card .info-icon {
    width: 48px;
    height: 48px;
  }

  .contact-info .info-card .info-content h3 {
    font-size: 16px;
  }

  .contact-info .info-card .info-content a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact-form-section,
  .contact-info-section {
    padding: 30px 0;
  }

  .contact-form-container {
    padding: 0 15px;
    gap: 24px;
  }

  .contact-info-cards {
    padding: 0 15px;
  }

  .contact-title {
    font-size: 32px;
  }

  .contact-info-header {
    gap: 12px;
    margin-bottom: 30px;
  }

  .submit-button {
    padding: 12px 24px;
    height: 54px;
  }

  .submit-button span {
    font-size: 18px;
  }

  .input-container input,
  .select-container select,
  .textarea-container textarea {
    padding: 10px 16px 10px 40px;
    font-size: 14px;
  }

  .input-icon {
    left: 14px;
  }

  .form-group label {
    font-size: 14px;
  }

  .info-icon {
    width: 48px;
    height: 48px;
  }

  .info-icon img {
    width: 22px;
    height: 22px;
  }

  .info-content h3 {
    font-size: 18px;
  }

  .info-content p,
  .info-content a {
    font-size: 16px;
  }

  .contact-info .info-card {
    margin-top: 16px;
    gap: 10px;
  }

  .contact-info .info-card .info-icon {
    width: 40px;
    height: 40px;
  }

  .contact-info .info-card .info-content h3 {
    font-size: 14px;
  }

  .contact-info .info-card .info-content a {
    font-size: 13px;
  }
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.popup-overlay.fade-out {
  animation: fadeOut 0.3s forwards;
}

.popup-container {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 480px;
  padding: 40px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.4s 0.1s forwards;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.popup-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.popup-icon.success {
  background-color: rgba(39, 174, 96, 0.1);
}

.popup-icon.error {
  background-color: rgba(235, 87, 87, 0.1);
}

.popup-icon img {
  width: 40px;
  height: 40px;
}

.popup-content h3 {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  color: #000000;
  margin: 0 0 16px 0;
}

.popup-content p {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #727377;
  margin: 0 0 32px 0;
}

.popup-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  background: #ad2324;
  border-radius: 8px;
  border: none;
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-button:hover {
  background: #8e1d1e;
}

.popup-overlay.error .popup-button {
  background: #eb5757;
}

.popup-overlay.error .popup-button:hover {
  background: #d04848;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Popup Styles */
@media (max-width: 768px) {
  .popup-container {
    padding: 30px;
  }

  .popup-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .popup-icon img {
    width: 35px;
    height: 35px;
  }

  .popup-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .popup-container {
    padding: 24px;
  }

  .popup-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .popup-icon img {
    width: 30px;
    height: 30px;
  }

  .popup-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .popup-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .popup-button {
    padding: 12px 24px;
    font-size: 14px;
  }
}
