/* ============================================================
   MITYVO – modal.css
   Multi-Step Contact Modal
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,11,18,0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: rgba(22,22,24,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.modal-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.modal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4F9CF9, #67E8F9);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 20%;
}
.modal-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #A8B2C8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.modal-close:hover {
  border-color: rgba(255,255,255,0.3);
  color: #ECEEF2;
}
.modal-step {
  display: none;
}
.modal-step.active {
  display: block;
}
.step-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: #4F9CF9;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.modal-step h2 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ECEEF2;
  margin: 0 0 24px 0;
  line-height: 1.2;
}
.option-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.option-card:hover {
  border-color: rgba(79,156,249,0.30);
  background: rgba(79,156,249,0.05);
}
.option-card.selected {
  border-color: #4F9CF9;
  background: rgba(79,156,249,0.10);
}
.option-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.option-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ECEEF2;
}
.option-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: #A8B2C8;
  margin-top: 2px;
  display: block;
}
.option-card > div {
  display: flex;
  flex-direction: column;
}
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ECEEF2;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ECEEF2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(79,156,249,0.50);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a5878;
}
.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.modal-back {
  min-width: 110px;
}
.modal-next {
  min-width: 130px;
  margin-left: auto;
}
.modal-success {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 60px;
  height: 60px;
  background: rgba(34,197,94,0.15);
  border: 2px solid #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #22C55E;
  margin: 0 auto 20px;
}
.modal-success p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #A8B2C8;
  line-height: 1.7;
  margin-top: 10px;
}

.success-hours {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #4F9CF9;
  margin-top: 6px;
  font-weight: 500;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

@media (max-width: 600px) {
  .modal-box { padding: 24px 20px; }
  .modal-step h2 { font-size: 22px; }
}
