/* Contact Form Popup Styles - Matching Website Design */
.contact-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-popup-overlay.active {
  display: flex;
}

.contact-popup {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f5f5f5;
  border: none;
  color: #666;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.popup-close:hover {
  background: #000;
  color: #fff;
  transform: rotate(90deg);
}

.popup-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.popup-left {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  color: #fff;
  position: relative;
}

.popup-left h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.popup-left .arrow {
  display: inline-block;
  margin-left: 15px;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.popup-left:hover .arrow {
  transform: translateX(10px);
}

.contact-info {
  margin-top: 3rem;
}

.contact-info p {
  font-size: 1rem;
  margin: 8px 0;
  opacity: 0.9;
  font-weight: 300;
}

.popup-right {
  background: #ffffff;
  padding: 60px 50px;
  border-radius: 0 12px 12px 0;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

.form-row.checkbox-row {
  grid-template-columns: 1fr;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
  background: #ffffff;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23000' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Style for the default option to match placeholder color */
.contact-form select option[value=""] {
  color: #757575;
}

.contact-form select:invalid {
  color: #757575;
}

.contact-form select:valid {
  color: inherit;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  font-weight: 400;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Google reCAPTCHA styling */
.g-recaptcha {
  transform: scale(0.95);
  transform-origin: 0 0;
  margin-top: 5px;
  display: inline-block;
}

/* Center reCAPTCHA on mobile */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
    margin: 0 auto;
    display: block;
    width: fit-content;
  }
}

.submit-btn {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  padding: 16px 40px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  width: 100%;
  font-family: "Inter", sans-serif;
}

.submit-btn:hover {
  background: transparent;
  color: #000;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Error message styling */
.error-message {
  background: #fff5f5;
  border: 1px solid #ff4444;
  border-radius: 6px;
  padding: 12px 16px;
  color: #cc0000;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  display: none;
}

.error-message.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Field error styling */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: #ff4444;
  background-color: #fff5f5;
}

/* Contact Thank You Page Fullscreen */
.contact-thank-you-fullscreen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2rem;
}

.contact-thank-you-fullscreen .thank-you-center {
  text-align: center;
  max-width: 32rem;
}

.contact-thank-you-fullscreen .success-icon-large {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  animation: checkmark 0.5s ease-out;
}

.contact-thank-you-fullscreen .success-icon-large svg {
  width: 5rem;
  height: 5rem;
}

.contact-thank-you-fullscreen .success-icon-large circle {
  stroke-dasharray: 238;
  stroke-dashoffset: 238;
  animation: circle-draw 0.5s ease-out forwards;
}

.contact-thank-you-fullscreen .success-icon-large path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: check-draw 0.4s ease-out 0.5s forwards;
}

@keyframes circle-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-thank-you-fullscreen .confirmation-title {
  font-size: 2rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 0.75rem 0;
}

.contact-thank-you-fullscreen .confirmation-subtitle {
  font-size: 1.125rem;
  color: #666;
  margin: 0 0 2rem 0;
}

.contact-thank-you-fullscreen .confirmation-footer {
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-popup {
    max-width: 95%;
    max-height: 90vh;
  }

  .popup-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .popup-left {
    padding: 40px 30px;
    min-height: auto;
    background: #000;
  }

  .popup-left h2 {
    font-size: 1.75rem;
  }

  .popup-left .arrow {
    font-size: 2rem;
  }

  .popup-right {
    padding: 40px 30px;
    border-radius: 0 0 12px 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .popup-close {
    top: 10px;
    right: 10px;
  }
}
