/* EWO Request Callback Modal - Consistent with ewo-form.css */

.ewo-modal-overlay {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 63, 154, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ewoFadeIn 0.3s ease;
}

@keyframes ewoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ewo-modal {
  background: linear-gradient(to top, #E8F1FC 0%, #D5E5F8 100%);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 60px 80px;
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: ewoSlideUp 0.3s ease;
}

@keyframes ewoSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ewo-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #203F9A;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
}

.ewo-modal-close:hover {
  background: #162d6b;
  transform: rotate(90deg);
}

.ewo-modal-title {
  color: #203F9A;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 40px 0;
  text-align: center;
  line-height: 1.3;
  font-family: 'Inter', Arial, sans-serif !important;
}

.ewo-modal-subtitle {
  display: none;
}

.ewo-user-form {
  width: 100%;
}

/* Use same styles as ewo-form.css */
.ewo-user-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
  width: 100%;
  align-items: start;
}

.ewo-field-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ewo-row {
  margin-bottom: 18px;
  width: 100%;
}

.ewo-col-2 {
  width: 100%;
}

.ewo-col-2.ad_source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ewo-col-2 label {
  display: block;
  font-weight: 700 !important;
  margin-bottom: 6px;
  font-size: 16px !important;
  color: #222 !important;
  letter-spacing: 0.01em;
  font-family: 'Inter', Arial, sans-serif !important;
}

.ewo-col-2.ad_source label {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.ewo-user-fields-row input,
.ewo-form-select,
.ewo-user-fields-row textarea {
  border-radius: 32px !important;
  border: 1.5px solid #e0e0e0 !important;
  padding: 16px 22px !important;
  width: 100% !important;
  font-size: 17px !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border 0.2s;
  font-family: 'Inter', Arial, sans-serif !important;
}

.ewo-user-fields-row input::placeholder,
.ewo-user-fields-row textarea::placeholder {
  color: #b5b5b5 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.ewo-user-fields-row input:focus,
.ewo-form-select:focus,
.ewo-user-fields-row textarea:focus {
  border-color: var(--ewo-secondary) !important;
  background: #fff !important;
}

.ewo-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23222' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 45px !important;
  cursor: pointer;
}

.ewo-col-2.ad_source .ewo-form-select {
  flex: 1;
  margin-bottom: 0 !important;
}

.ewo-user-fields-row textarea {
  border-radius: 24px !important;
  resize: vertical;
  min-height: 120px;
  font-family: 'Inter', Arial, sans-serif !important;
  line-height: 1.5;
}

button[type="submit"].ewo-btn-primary {
  background: var(--ewo-secondary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 32px !important;
  padding: 18px 0 !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  width: 100% !important;
  margin-top: 32px !important;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(78, 227, 255, 0.12) !important;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-family: 'Inter', Arial, sans-serif !important;
}

button[type="submit"].ewo-btn-primary:hover {
  background: #2ad2ff !important;
}

/* Field error states */
.ewo-field-error {
  border: 1.5px solid #e53935 !important;
  background: #fff0f0 !important;
}

.ewo-field-error-message {
  color: #e53935 !important;
  font-size: 13px !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  padding-left: 4px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  display: block !important;
  width: 100% !important;
  animation: slideIn 0.2s ease;
}

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

.ewo-request-callback-success {
  color: #4CAF50;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.ewo-request-callback-error {
  color: #d32f2f;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 15px;
  background: #ffebee;
  border-radius: 12px;
}

/* Responsive - Match ewo-form.css behavior */
@media (max-width: 900px) {
  .ewo-modal {
    padding: 50px 40px;
    max-width: 95vw;
  }

  .ewo-user-fields-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ewo-col-2.ad_source {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ewo-col-2.ad_source label {
    margin-bottom: 6px;
  }

  .ewo-col-2.ad_source .ewo-form-select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ewo-modal {
    padding: 40px 30px;
  }

  .ewo-modal-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .ewo-modal {
    padding: 30px 20px;
  }

  .ewo-modal-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
}

body.ewo-modal-open {
  overflow: hidden !important;
} 