/* ============================================
   CROVIO PERSONALIZATION MODAL STYLES
   Simplified - Name Only + Optional Contact Fields
   ============================================ */

/* Modal Overlay & Container */
.personalization-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.personalization-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 520px;
  background: white;
  border-radius: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.personalization-modal.active .modal-content {
  transform: scale(1);
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  font-size: 1.75rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 107, 0, 0.1);
  color: #FF6B00;
  transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
  padding: 3rem 2.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #FF6B00, #FF8F3D);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.modal-badge svg {
  width: 14px;
  height: 14px;
}

.modal-header h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: #1a202c;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.modal-header p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* Modal Body */
.modal-body {
  padding: 2rem 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  color: #1a202c;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #FF6B00;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

/* Contact Divider */
.contact-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.contact-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.contact-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
  transform: translateY(-50%);
}

/* Hints */
.modal-hint {
  padding: 1rem 1.25rem;
  background: rgba(79, 70, 229, 0.05);
  border-left: 3px solid #4F46E5;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-hint.contact-hint {
  background: rgba(255, 107, 0, 0.05);
  border-left-color: #FF6B00;
}

/* Modal Footer */
.modal-footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 1rem;
}

.btn-skip,
.btn-primary {
  flex: 1;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-skip {
  background: #f1f5f9;
  color: #64748b;
}

.btn-skip:hover {
  background: #e2e8f0;
  color: #475569;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B00, #FF8F3D);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
}

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

/* Responsive */
@media (max-width: 640px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 24px;
  }

  .modal-header {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1.5rem;
    flex-direction: column;
  }

  .btn-skip,
  .btn-primary {
    width: 100%;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 0 32px 32px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF6B00, #FF8F3D);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF8F3D, #FF6B00);
}