/* Product Contact Styles */

.product-contact-wrapper {
  margin: 30px 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.product-contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 25px 40px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.contact-title {
  font-size: 20px;
  font-weight: 600;
  color: #4a4a4a;
  margin: 0;
}

.product-contact-card {
  background: #ffffff;
  border-radius: 0;
  padding: 30px 40px;
  box-shadow: none;
}

.contact-form-section {
  max-width: 100%;
  margin: 0;
}

.product-contact-form {
  background: transparent;
}

.form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 15px;
  margin-bottom: 20px;
  align-items: start;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  text-align: left;
  padding-top: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d1d1;
  border-radius: 0;
  font-size: 15px;
  background: #f5f5f5;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #999;
  background: #fff;
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  resize: vertical;
  font-family: inherit;
}

.form-privacy {
  margin-bottom: 20px;
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.privacy-checkbox input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.privacy-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.privacy-text a {
  color: #333;
  text-decoration: underline;
}

.privacy-text a:hover {
  color: #000;
}

.form-recaptcha {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.form-submit {
  text-align: center;
}

.contact-submit-btn {
  background: #4a4a4a;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

.contact-submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
  margin-left: 10px;
}

.spinner .path {
  stroke: #fff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Messages */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Modal Styles */
.product-contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 0;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: relative;
  top: auto;
  right: auto;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #000;
}

/* Estilos para el badge del producto */
.product-info-header {
  margin-top: 0;
  margin-bottom: 0;
}

.product-name-badge {
  display: block;
  background: #f4a742;
  color: #fff;
  padding: 16px 40px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

/* Ajustes responsive para el modal */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 2vh auto;
    max-height: 96vh;
  }

  .product-contact-header {
    padding: 20px;
  }

  .product-contact-card {
    padding: 20px;
  }

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

  .form-row label {
    padding-top: 0;
  }
}
