/* styles.css */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f9fa !important;
  font-family: "DM Sans", sans-serif !important;
  color: #1f2937;
  border-bottom: 1px solid #f2f2f2;
}

/* Top Bar */
.topbar {
  background-color: #ffffff;
  height: 64px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111827;
}

.help-btn {
  background: none;
  border: 1px solid #11162a !important;
  color: #11162a;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.help-btn:hover {
  background-color: #11162a !important;
  color: #fff;
}

/* Layout */
.content-container {
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: none !important;
  background-color: #ffffff !important;
  margin-top: 2rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.card-body {
  padding: 3rem 2rem;
}

/* Typography */
h3,
h4,
h5 {
  font-weight: 600;
  color: #1a1f36;
}

.bigx {
  font-size: 4.1rem !important;
}

p {
  color: #374151;
}

p.lead {
  font-size: 1.1rem;
}

/* Form Section Logic */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

/* Labels & Fields */
.form-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1f2937;
  display: block;
  margin-bottom: 0.25rem;
}

.required::after {
  content: "*";
  color: red;
  margin-left: 4px;
}

.form-control,
.form-select {
  border: none !important;
  border-bottom: 1px solid #d1d5db !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  transition: border-color 0.3s ease;
  width: 100%;
  margin-bottom: 1.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #1a1f36 !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Buttons */
button,
.btn {
  font-family: "DM Sans", sans-serif !important;
  cursor: pointer;
}

.big-button,
.btn-primary,
.btn-success {
  background-color: #1a1f36 !important;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  color: #ffffff !important;
  transition: background-color 0.3s ease;
  display: inline-block;
  min-width: 120px;
  text-align: center;
}

.btn-primary:hover,
.btn-success:hover {
  background-color: #0a0f28 !important;
  color: #ffffff !important;
}

.d-grid {
  margin-top: 1.5rem;
}

/* Spinner */
.spinner-border {
  display: none !important;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #ddd;
  border-top-color: #1a1f36;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.site-footer {
  color: #131836;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.site-footer a {
  color: grey;
  text-decoration: none;
  margin: 0 10px;
}

/* Progress Title */
.page-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1f36;
}

/* Payment Status Message */
.payment-status {
  margin-top: 1rem;
  font-weight: 500;
  color: #1a1f36;
}

/* Responsive */
@media (max-width: 480px) {
  .card-body {
    padding: 2rem 1rem;
  }

  .content-container {
    margin: 2rem 1rem 3rem;
  }
}
