/*
 * Frontend Styling for Muzammil Developer Assets Core
 * Luxury Theme Matching: #70439B, #A875D6, #FAF8F5, #171419
 */

.mda-frontend-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 20, 25, 0.78);
  backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mda-frontend-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.mda-frontend-modal-container {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(112, 67, 155, 0.25);
  border: 1px solid rgba(168, 117, 214, 0.35);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mda-frontend-modal-overlay.active .mda-frontend-modal-container {
  transform: scale(1) translateY(0);
}

.mda-frontend-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #F3ECF8;
  color: #70439B;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
}

.mda-frontend-modal-close:hover {
  background: #70439B;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.mda-modal-grid {
  display: flex;
  flex-wrap: wrap;
}

.mda-modal-sidebar {
  flex: 0 0 38%;
  background: linear-gradient(145deg, #171419 0%, #2A1F36 100%);
  color: #FAF8F5;
  padding: 40px 32px;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mda-modal-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 117, 214, 0.15);
  border: 1px solid rgba(168, 117, 214, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #C9A7E8;
  margin-bottom: 20px;
}

.mda-pulse-dot {
  width: 8px;
  height: 8px;
  background: #A875D6;
  border-radius: 50%;
  box-shadow: 0 0 10px #A875D6;
  animation: mdaPulse 1.5s infinite;
}

@keyframes mdaPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.mda-modal-sidebar-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #FAF8F5;
  margin-bottom: 12px;
  font-family: var(--th-fonts-Onest, sans-serif);
}

.mda-modal-sidebar-desc {
  color: #D1C7D9;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.mda-modal-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 117, 214, 0.25);
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 25px;
}

.mda-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #A875D6;
}

.mda-modal-author-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.mda-modal-author-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #C9A7E8;
}

.mda-modal-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mda-modal-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #FAF8F5;
  margin-bottom: 10px;
}

.mda-modal-features li i {
  color: #A875D6;
  font-size: 12px;
}

/* Right Form */
.mda-modal-form-wrap {
  flex: 0 0 62%;
  padding: 40px 36px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.mda-form-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #171419;
  font-family: var(--th-fonts-Onest, sans-serif);
}

.mda-form-header p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #49444D;
}

.mda-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.mda-form-group {
  flex: 1;
  margin-bottom: 16px;
}

.mda-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #171419;
  margin-bottom: 6px;
}

.mda-form-group label .required {
  color: #A875D6;
}

.mda-form-group input,
.mda-form-group select,
.mda-form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(168, 117, 214, 0.35);
  background: #FAF8F5;
  color: #171419;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.25s ease;
  font-family: inherit;
}

.mda-form-group input:focus,
.mda-form-group select:focus,
.mda-form-group textarea:focus {
  outline: none;
  border-color: #70439B;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(168, 117, 214, 0.2);
}

.mda-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #A875D6 0%, #70439B 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(112, 67, 155, 0.3);
}

.mda-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(112, 67, 155, 0.4);
  background: linear-gradient(135deg, #70439B 0%, #582F7E 100%);
}

.mda-feedback-message {
  margin-top: 15px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.mda-feedback-message.success {
  background: #EAFaf1;
  color: #1E8449;
  border: 1px solid #A9DFBF;
}

.mda-feedback-message.error {
  background: #FDEDEC;
  color: #B03A2E;
  border: 1px solid #FADBD8;
}

@media (max-width: 820px) {
  .mda-modal-sidebar {
    flex: 0 0 100%;
    border-radius: 24px 24px 0 0;
    padding: 25px 20px;
  }
  .mda-modal-form-wrap {
    flex: 0 0 100%;
    padding: 25px 20px;
  }
  .mda-form-row {
    flex-direction: column;
    gap: 0;
  }
}
