/* === Overlay === */
#eds-contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  padding: 20px;
}
#eds-contact-overlay.eds-cp--hidden {
  display: none;
}

/* === Popup Card === */
#eds-contact-popup {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform-origin: center;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Close Button */
}
#eds-contact-popup .eds-cp-close {
  position: sticky;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 10;
  text-align: right;
}

/* === Inner Layout === */
.eds-cp-inner {
  padding: 12px 6px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eds-cp-title {
  line-height: 1.4em;
}

.eds-cp-step {
  transition: opacity 0.3s ease;
  position: relative;
}
.eds-cp-step.eds-cp-hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  position: absolute;
}
.eds-cp-step:not(.eds-cp-hidden) {
  opacity: 1;
  visibility: visible;
  height: auto;
  position: relative;
}

/* === Options Grid === */
.eds-cp-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.eds-cp-options .eds-cp-option {
  display: block;
  position: relative;
  cursor: pointer;
}
.eds-cp-options .eds-cp-option input[type=radio] {
  display: none;
}
.eds-cp-options .eds-cp-option .eds-cp-tile {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  aspect-ratio: 0/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  height: 100%;
}
.eds-cp-options .eds-cp-option .eds-cp-tile .eds-cp-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.eds-cp-options .eds-cp-option .eds-cp-tile .eds-cp-label {
  font-size: 1rem;
  font-weight: 600;
}
.eds-cp-options .eds-cp-option:hover .eds-cp-tile {
  border-color: #444;
  background: #fafafa;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.eds-cp-options .eds-cp-option input[type=radio]:checked + .eds-cp-tile {
  border-color: #FFD500;
  background: rgba(255, 213, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.2);
}

/* === Actions / Buttons === */
.eds-cp-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.eds-cp-actions .eds-cp-btn {
  border: none;
  padding: 10px 14px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.12s ease;
}
.eds-cp-actions .eds-cp-btn.eds-cp-back {
  background: #ffffff;
  color: #000000;
}
.eds-cp-actions .eds-cp-btn:active {
  transform: translateY(1px);
}

/* === Fields === */
.eds-cp-field {
  margin-bottom: 10px;
}
.eds-cp-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #222;
}
.eds-cp-field input,
.eds-cp-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  font-size: 14px;
}
.eds-cp-field input[type=checkbox] {
  width: auto;
}

/* === Result Messages === */
.eds-cp-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
}
.eds-cp-result.eds-cp-error {
  background: #ffecec;
  color: #900;
}
.eds-cp-result.eds-cp-success {
  background: #e7f9ee;
  color: #0a7b3a;
}
.eds-cp-result .eds-cp-success-actions {
  margin-top: 10px;
}

/* === Responsive === */
@media (max-width: 600px) {
  #eds-contact-popup {
    margin: 16px;
    width: calc(100% - 32px);
  }
  .eds-cp-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .eds-cp-actions .eds-cp-btn {
    width: 100%;
  }
}
