body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 32px;
  padding: 48px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: 120px;
  max-height: 80px;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out 0.2s both;
  object-fit: contain;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.title {
  font-size: 32px;
  font-weight: 700;
  color: #6B46C1;
  margin-bottom: 8px;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.subtitle {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 32px;
  font-weight: 500;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

.dot {
  width: 12px;
  height: 12px;
  background: #E5E7EB;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot.active {
  background: #8B5CF6;
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.form-group {
  text-align: left;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out 1s both;
}

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  display: block;
  border-left: 4px solid #8B5CF6;
  padding-left: 12px;
}

.phone-row {
  display: flex;
  gap: 12px;
}

.country-select {
  width: 30%;
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  background: white;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.phone-input {
  width: 70%;
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  font-size: 16px;
  color: #374151;
  background: white;
  transition: all 0.3s ease;
}

.full-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  font-size: 16px;
  color: #374151;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.country-select:focus,
.phone-input:focus,
.full-input:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.phone-input::placeholder,
.full-input::placeholder {
  color: #9CA3AF;
}

.demo-note {
  font-size: 14px;
  color: #8B5CF6;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.8s ease-out 1.2s both;
}

.terms {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 32px;
  animation: fadeIn 0.8s ease-out 1.4s both;
}

.terms input {
  margin-right: 8px;
  transform: scale(1.2);
  accent-color: #8B5CF6;
}

.terms a {
  color: #8B5CF6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.terms a:hover {
  color: #7C3AED;
  text-decoration: underline;
}

.send-btn {
  width: 100%;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out 1.6s both;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4);
}

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

.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.send-btn.loading {
  pointer-events: none;
}

.send-btn.loading .btn-text {
  opacity: 0;
}

.send-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

.send-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: scale(1.02);
}

.send-btn.success:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: scale(1.02);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.powered {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 32px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.8s ease-out 1.8s both;
}

.powered img {
  width: 120px;
  margin-top: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.powered img:hover {
  opacity: 1;
}

.status-message {
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
  animation: slideIn 0.3s ease-out;
  display: none;
}

.status-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 0;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 16px 32px;
  border-bottom: 1px solid #E5E7EB;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1;
  border-radius: 24px 24px 0 0;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #6B46C1;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6B7280;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

.close-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.modal-body {
  color: #6B7280;
  line-height: 1.6;
  font-size: 14px;
  padding: 0 32px 32px 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-body h3 {
  color: #6B46C1;
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px 0;
}

.modal-body p {
  margin: 12px 0;
}

.modal-body ul {
  margin: 12px 0;
  padding-left: 20px;
}

.modal-body li {
  margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .card {
    padding: 32px 24px;
    max-width: 100%;
    border-radius: 24px;
  }
  
  .logo {
    width: 100px;
    max-height: 65px;
    margin-bottom: 20px;
  }
  
  .title {
    font-size: 24px;
    margin-bottom: 6px;
  }
  
  .subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .steps {
    margin-bottom: 32px;
    gap: 12px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .form-label {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .country-select,
  .phone-input,
  .full-input {
    padding: 14px;
    font-size: 16px;
  }
  
  .phone-row {
    gap: 8px;
  }
  
  .country-select {
    width: 32%;
  }
  
  .phone-input {
    width: 68%;
  }
  
  .send-btn {
    padding: 16px;
    font-size: 16px;
  }
  
  .demo-note {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .terms {
    font-size: 12px;
    margin-bottom: 24px;
  }
  
  .powered {
    margin-top: 24px;
    font-size: 11px;
  }
  
  .powered img {
    width: 100px;
  }
  
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 90vh;
    margin: 0;
  }
  
  .modal-header {
    padding: 24px 24px 16px 24px;
  }
  
  .modal-body {
    padding: 0 24px 24px 24px;
  }
  
  .modal-title {
    font-size: 18px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .card {
    padding: 24px 16px;
  }
  
  .logo {
    width: 80px;
    max-height: 50px;
    margin-bottom: 16px;
  }
  
  .title {
    font-size: 20px;
  }
  
  .subtitle {
    font-size: 13px;
  }
  
  .country-select,
  .phone-input,
  .full-input {
    padding: 12px;
    font-size: 15px;
  }
  
  .send-btn {
    padding: 14px;
    font-size: 15px;
  }
  
  .powered img {
    width: 80px;
  }
} 