/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0a0e17 0%, #0d1426 50%, #0a0e17 100%);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}

.logo img {
  height: 150px;
  width: 80px;
}

.text-btn {
  background: none;
  border: none;
  color: #8ab4f8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.text-btn:hover {
  color: #ffffff;
}

/* ===== ONBOARDING CONTAINER ===== */
.onboarding-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

/* ===== CARD ===== */
.card {
  background: rgba(18, 24, 40, 0.85);
  border: 1px solid rgba(100, 180, 255, 0.25);
  border-radius: 20px;
  padding: 48px 56px;
  width: 100%;
  max-width: 720px;
  box-shadow: 
    0 0 0 1px rgba(100, 180, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(100, 180, 255, 0.08);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PROGRESS ===== */
.progress {
  margin-bottom: 32px;
}

#progressText {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8ab4f8;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.progress-bar {
  height: 4px;
  background: rgba(100, 180, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #64b4ff, #8ab4f8);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(100, 180, 255, 0.4);
}

/* ===== QUESTION ===== */
.question {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 32px;
  color: #ffffff;
}

.optional {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

/* ===== INPUT AREA ===== */
.input-area {
  margin-bottom: 40px;
}

.input-area input[type="text"],
.input-area input[type="email"],
.input-area input[type="url"],
.input-area textarea,
.input-area select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(30, 38, 60, 0.8);
  border: 1px solid rgba(100, 180, 255, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-area input:focus,
.input-area textarea:focus,
.input-area select:focus {
  outline: none;
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(100, 180, 255, 0.15);
}

.input-area textarea {
  min-height: 120px;
  resize: vertical;
}

.input-area select option {
  background: #121828;
  color: #ffffff;
}

/* Toggle Yes/No */
.toggle-group {
  display: flex;
  gap: 16px;
}

.toggle-btn {
  flex: 1;
  padding: 14px 20px;
  background: rgba(30, 38, 60, 0.8);
  border: 1px solid rgba(100, 180, 255, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.toggle-btn.active,
.toggle-btn:hover {
  background: rgba(100, 180, 255, 0.2);
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(100, 180, 255, 0.1);
}

/* File Upload */
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-label {
  padding: 16px 20px;
  background: rgba(30, 38, 60, 0.8);
  border: 1px dashed rgba(100, 180, 255, 0.4);
  border-radius: 12px;
  color: #8ab4f8;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-label:hover {
  border-color: #8ab4f8;
  background: rgba(100, 180, 255, 0.1);
}

.file-name {
  font-size: 14px;
  color: #8ab4f8;
  text-align: center;
}

/* Google Calendar Button */
.google-connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.35);
}

.google-connect.connected {
  background: rgba(52, 168, 83, 0.2);
  border: 1px solid #34a853;
  cursor: default;
}

/* ===== NAV BUTTONS ===== */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #64b4ff, #8ab4f8);
  color: #0a0e17;
  box-shadow: 0 4px 20px rgba(100, 180, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(100, 180, 255, 0.45);
}

.btn-secondary {
  background: rgba(30, 38, 60, 0.8);
  color: #ffffff;
  border: 1px solid rgba(100, 180, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(100, 180, 255, 0.15);
  border-color: #8ab4f8;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 23, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal:not(.hidden) {
  display: flex;
}

.modal-content {
  background: rgba(18, 24, 40, 0.95);
  border: 1px solid rgba(100, 180, 255, 0.3);
  border-radius: 20px;
  padding: 48px 56px;
  max-width: 560px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(100, 180, 255, 0.1);
}

.modal-content h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #8ab4f8;
}

.modal-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 12px;
}

.modal-content strong {
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header {
    padding: 16px 24px;
  }

  .card {
    padding: 32px 28px;
    margin: 0 12px;
  }

  .question {
    font-size: 20px;
  }

  .nav-buttons {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }
}
