
:root {
  --primary: #1f3c88; /* Deep blue for main headers */
  --accent: #e43f3f;  /* Professional red for highlights/buttons */
  --light: #f5f6fa;   /* Neutral light background */
  --dark: #222;       /* Text color */
  --container: 1100px;
  --radius: 10px;

  --blue1: #0a1f44;  /* Dark professional blue */
  --blue2: #1f3c88;  /* Main logo blue */
  --blue3: #3b5aa6;  /* Slightly lighter blue for gradients */
  --shadow-light: rgba(0,0,0,0.07);
  --shadow-dark: rgba(0,0,0,0.15);
}

/* GLOBAL */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

/* HEADER */
header {
  background: linear-gradient(120deg, var(--blue1), var(--blue2), var(--blue3));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 20px var(--shadow-dark);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  width: 92%;
  margin: auto;
}
.logo img {
  height: 55px;
  border-radius: 6px;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}
nav a:hover,
nav a.active { color: var(--accent); }
nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(270deg, var(--blue1), var(--blue2), var(--blue3));
  background-size: 600% 600%;
  animation: gradientWave 25s ease infinite;
  color: #fff;
  padding: 6rem 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.1);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15), transparent 70%);
  transform: skewX(-20deg);
  animation: lightSweep 6s infinite ease-in-out;
}
.hero .container {
  max-width: var(--container);
  margin: auto;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}
.hero p {
  max-width: 700px;
  font-size: 1.1rem;
  color: #f0f0f0;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  margin-top: 1rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background: #c73737;
  transform: translateY(-3px);
}

/* SECTIONS */
section { padding: 4rem 1rem; }
h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
}
.container { max-width: var(--container); margin: auto; }

/* GRID + CARD */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow-light);
  transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px var(--shadow-dark); }
.card h3 { color: var(--accent); }

/* FORM */
form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow-light);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
input, textarea, button {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}
button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
button:hover { background: var(--accent); }

/* JOIN PAGE — shared styles for both Carriers and Agents */
.join .container {
  max-width: 900px; /* keeps heading + text centered consistently */
  margin: auto;
}

/* TEXT CENTER FIX — aligns paragraph text across both pages */
.join p {
  text-align: center;
  max-width: 700px;
  margin: 0.5rem auto 2rem auto; /* consistent spacing under heading */
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.6;
}

/* CENTER FORM */
.join form {
  max-width: 600px;
  margin: 2rem auto;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, var(--blue1), var(--blue2));
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 -4px 12px var(--shadow-dark);
}
footer p { margin: 0.3rem 0; }
footer strong { color: var(--accent); }

/* ANIMATIONS */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gradientWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes lightSweep {
  0% { left: -50%; opacity: 0; }
  50% { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
