:root {
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #111329 100%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-bg: rgba(22, 28, 45, 0.6);
  --card-border: rgba(255, 255, 255, 0.05);
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --success-color: #10b981;
  --error-color: #ef4444;
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
  --info-box-bg: rgba(99, 102, 241, 0.08);
  --info-box-border: rgba(99, 102, 241, 0.2);
  --info-box-text: #a5b4fc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background floating decorative circles */
.background-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.blob-1 {
  top: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 75%);
}

.blob-2 {
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 75%);
}

.container {
  max-width: 1050px;
  width: 100%;
  padding: 4rem 1.5rem;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 4.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.header h1 {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 820px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .header h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }
  .header h1 {
    font-size: 2.2rem;
  }
  .header p.subtitle {
    font-size: 0.95rem;
  }
  .card {
    padding: 1.75rem 1.25rem 1.5rem 1.25rem;
    border-radius: 20px;
  }
  .card-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .card-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .card-svg-icon {
    width: 20px;
    height: 20px;
  }
  .card h2 {
    font-size: 1.4rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
  }
  .btn-with-icon {
    gap: 0.6rem;
  }
  .btn-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    padding: 4px;
  }
  .btn-icon {
    width: 20px;
    height: 20px;
  }
  .form-group input,
  .form-group select {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .steps-box, .info-box {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
  }
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 3rem 2.2rem 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12), inset 0 0 15px rgba(99, 102, 241, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
}

.card:hover .card-icon-wrapper {
  transform: scale(1.06);
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.card-svg-icon {
  width: 24px;
  height: 24px;
}

.card h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.info-box {
  background: var(--info-box-bg);
  border: 1px solid var(--info-box-border);
  color: var(--info-box-text);
  border-radius: 16px;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 1.5rem;
  width: 100%;
  flex-grow: 1; /* Pushes the box to align card heights perfectly */
}

.info-box.warning {
  --info-box-bg: rgba(245, 158, 11, 0.06);
  --info-box-border: rgba(245, 158, 11, 0.2);
  --info-box-text: #fcd34d;
}

.info-box strong {
  font-family: var(--font-title);
  font-weight: 600;
}

.info-box > strong:first-child {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.btn-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9px;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.btn-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.action-section {
  width: 100%;
  margin-top: 0.75rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1);
}

.form-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.form-container.active {
  max-height: 350px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  gap: 0.75rem;
  width: 100%;
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid var(--card-border);
  color: white;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select option {
  background: #0f172a;
  color: white;
}

.form-group select option:disabled {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Form Validation styles */
form.was-validated input.is-invalid,
form.was-validated select.is-invalid {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

form.was-validated input.is-valid,
form.was-validated select.is-valid {
  border-color: var(--success-color) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.btn-send {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0.8rem 1.3rem;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-send:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

.message {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 1.2rem;
}

.message.success {
  color: var(--success-color);
  opacity: 1;
}

.message.error {
  color: var(--error-color);
  opacity: 1;
}

.footer {
  text-align: center;
  padding: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  width: 100%;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Steps Box styling */
.steps-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: left;
  margin-top: 1.5rem;
}

.steps-box h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.steps-box ol {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.steps-box li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.steps-box li:last-child {
  margin-bottom: 0;
}

/* App Links styling */
.app-links {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

.app-links p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.app-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.app-btn svg {
  color: var(--text-primary);
}
