/* Custom CSS for EziCargo Registration */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar-brand img {
  margin-right: 10px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Features Section */
.features-section .card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.features-section .fas {
  color: var(--primary-color);
}

/* Registration Form */
.registration-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.registration-section .card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.registration-section .card-header {
  background: linear-gradient(135deg, #ff0039 0%, #03040fc2 100%);
  border-bottom: none;
  padding: 2rem;
}

.registration-section .form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.registration-section .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.registration-section .btn-primary {
  background: linear-gradient(135deg, #ff0039 0%, #03040fc2 100%);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.registration-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

/* Footer */
footer {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .registration-section .card-header {
    padding: 1.5rem;
  }
}

/* Loading States */
.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Custom Alerts */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Payment Modal */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: none;
  padding: 2rem 2rem 1rem;
}

.modal-body {
  padding: 1rem 2rem 2rem;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Terms and Conditions Modal */
#termsModal .modal-dialog {
  max-width: 100%;
  margin: 0;
}

#termsModal .modal-content {
  border-radius: 0;
  height: 100vh;
  background-color: #ffffff;
}

#termsModal .modal-header {
  background: linear-gradient(135deg, #ff0039 0%, #03040fc2 100%);
  padding: 1.5rem 2rem;
  border-bottom: none;
}

#termsModal .modal-title {
  font-size: 2rem;
  font-weight: 700;
}

#termsModal .btn-close {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  opacity: 1;
  transition: all 0.3s ease;
}

#termsModal .btn-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

#termsModal .btn-understand {
  background: linear-gradient(135deg, #ff0039 0%, #03040fc2 100%);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
}

#termsModal .modal-body {
  padding: 2rem;
  overflow-y: auto;
  background-color: #f8f9fa;
}

#termsModal .terms-content {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#termsModal .terms-content h4 {
  font-weight: 600;
  margin-top: 2rem;
}

#termsModal .terms-content h4:first-child {
  margin-top: 0;
}

#termsModal .terms-content p {
  line-height: 1.7;
  color: #495057;
}

#termsModal .terms-content ul {
  padding-left: 1.5rem;
}

#termsModal .terms-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#termsModal .contact-info {
  border-left: 4px solid var(--primary-color);
}

#termsModal .contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

#termsModal .contact-info a:hover {
  text-decoration: underline;
}

/* Terms and Conditions link styling */
a[data-bs-target="#termsModal"] {
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: none;
}

a[data-bs-target="#termsModal"]:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Mobile responsiveness for terms modal */
@media (max-width: 768px) {
  #termsModal .modal-title {
    font-size: 1.5rem;
  }

  #termsModal .terms-content {
    padding: 2rem 1.5rem;
  }

  #termsModal .modal-body {
    padding: 1rem;
  }

  #termsModal .btn-close {
    width: 35px;
    height: 35px;
  }
}