/* ================== Global & Variables ================== */
:root {
  --primary-blue: #0d6efd;
  --accent-red: #ff0000;
  --dark-bg: #061730;
  --light-gray: #f4f6f8;
  --text-main: #333;
}

body {
  line-height: 1.6;
  color: var(--text-main);
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ================== Navbar ================== */
.navbar {
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .nav-link {
  color: #111 !important;
  font-weight: 700;
  margin-left: 1rem;
  position: relative;
  transition: 0.3s;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--primary-blue) !important;
}

/* ================== Hero Section ================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ================== Contact Section ================== */
h2.text-primary {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent-red);
  margin-bottom: 3rem !important;
}

.col-md-6 h5 {
  font-weight: 700;
  margin-top: 1.5rem;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Form Styling */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  /* Fix for the HTML structure provided */
  width: 100%; 
  max-width: 600px;
  margin-left: auto;
}

.form-label {
  font-weight: 600;
  color: var(--dark-bg);
}

.form-control {
  border: 1px solid #ddd;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Submit Button */
.btn-primary {
  background-color: var(--primary-blue);
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  width: 100%; /* Full width on mobile */
}

.btn-primary:hover {
  background-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* ================== Footer ================== */
footer.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 4rem 0 2rem;
}

footer.footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

footer.footer h5::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--accent-red);
  left: 0;
  bottom: 0;
}

footer.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.3s;
}

footer.footer a:hover {
  color: var(--accent-red) !important;
  padding-left: 5px;
}

/* ================== Responsiveness ================== */
@media (max-width: 768px) {
  .hero { height: 50vh !important; }
  form { margin-top: 2rem; padding: 1.5rem; }
  .btn-primary { width: 100%; }
}