
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0d6efd;
}

/* Footer styles are now in _Layout.cshtml */

/* Custom styles for the proposal form */
.card {
  border: none;
  border-radius: 15px;
}

.card-header {
  border-radius: 15px 15px 0 0 !important;
  border: none;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.navbar-brand {
  font-size: 1.5rem;
}

.alert {
  border: none;
  border-radius: 10px;
  border-left: 4px solid;
}

.alert-info {
  border-left-color: #0dcaf0;
  background-color: rgba(13, 202, 240, 0.1);
}

.alert-warning {
  border-left-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.text-success {
  color: #198754 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

/* Loading animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Form validation styles */
.field-validation-error {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.input-validation-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15) !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
}

/* Success and error page styling */
.fas.fa-check-circle,
.fas.fa-exclamation-triangle {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Custom card shadows */
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Navbar styling */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Landing page specific styles */
.hero-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.min-vh-75 {
  min-height: 75vh;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.display-4 {
  font-weight: 700;
  line-height: 1.2;
}

.display-5 {
  font-weight: 600;
}

/* Icon styling */
.fa-star {
  font-size: 0.9rem;
}

/* CTA section */
.bg-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
}

/* Loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(5px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loading-overlay.show {
  opacity: 1;
}

.loading-content {
  text-align: center;
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 450px;
  width: 90%;
  animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-icon {
  font-size: 4rem;
  color: #0d6efd;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.loading-title {
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.loading-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.progress-container {
  margin-bottom: 2rem;
}

.progress {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #495057;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d;
  font-size: 0.9rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  color: #0d6efd;
  opacity: 1;
}

.step.completed {
  color: #198754;
  opacity: 1;
}

.step-icon {
  font-size: 1rem;
  width: 16px;
}

.step.completed .step-icon {
  color: #198754;
}

.step.active .step-icon {
  color: #0d6efd;
}

/* Responsive adjustments for loading overlay */
@media (max-width: 768px) {
  .loading-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .loading-icon {
    font-size: 3rem;
  }
  
  .loading-title {
    font-size: 1.3rem;
  }
}
