/**
 * Diesel Home Delivery - plain HTML/CSS (no Tailwind).
 * Matches structure of pump finder page with normal CSS.
 */

/* Theme */
:root {
  --diesel-bg: #1e40af;
  --diesel-accent: #60a5fa;
  --diesel-light: #eff6ff;
  --diesel-wave: #1e40af;
}

/* Animations (pump finder style) */
@keyframes diesel-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes diesel-fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes diesel-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .diesel-hero,
  .diesel-hero-content,
  .diesel-hero-visual,
  .diesel-light-section {
    animation: none;
  }
}

body.page-diesel {
  margin: 0;
  min-height: 100vh;
  background-color: var(--diesel-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111;
}

.diesel-wrap {
  position: relative;
  overflow: hidden;
}

/* Hero */
.diesel-hero {
  background-color: var(--diesel-bg);
  padding-bottom: 1rem;
  animation: diesel-fade-in-down 0.55s ease-out;
}

@media (min-width: 640px) {
  .diesel-hero {
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .diesel-hero {
    overflow: hidden;
    padding-bottom: 3.5rem;
    min-height: 0;
  }
}

.diesel-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.875rem;
  padding-left: max(0.875rem, env(safe-area-inset-left));
  padding-right: max(0.875rem, env(safe-area-inset-right));
}

@media (min-width: 375px) {
  .diesel-hero-inner {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (min-width: 768px) {
  .diesel-hero-inner {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .diesel-hero-inner {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

.diesel-hero-content {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  text-align: center;
  animation: diesel-fade-in 0.5s ease-out 0.15s both;
}

@media (min-width: 375px) {
  .diesel-hero-content {
    padding: 0 1rem;
  }
}

@media (min-width: 640px) {
  .diesel-hero-content {
    max-width: 42rem;
    padding: 0 1.5rem;
    animation-delay: 0.2s;
  }
}

.diesel-hero-text {
  display: flex;
  flex-direction: column;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .diesel-hero-text {
    padding-bottom: 3rem;
  }
}

.diesel-hero h1 {
  margin: 0;
  margin-top: 1.25rem;
  font-size: clamp(1.625rem, 5.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

@media (min-width: 375px) {
  .diesel-hero h1 {
    margin-top: 1.5rem;
    font-size: 2rem;
  }
}

@media (min-width: 640px) {
  .diesel-hero h1 {
    margin-top: 2rem;
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .diesel-hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .diesel-hero h1 {
    margin-top: 2.5rem;
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .diesel-hero h1 {
    font-size: 3.75rem;
  }
}

.diesel-hero h1 .block {
  display: block;
}

.diesel-hero h1 .accent {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  color: var(--diesel-accent);
}

@media (min-width: 640px) {
  .diesel-hero h1 .accent {
    padding-bottom: 1.25rem;
  }
}

.diesel-hero-tagline {
  font-family: ui-monospace, monospace;
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  font-weight: 300;
  color: var(--diesel-accent);
  margin-top: 0.25rem;
}

.diesel-hero-desc {
  font-size: clamp(0.9375rem, 2.2vw, 1rem);
  color: #d1d5db;
  margin-top: 0.875rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .diesel-hero-desc {
    margin-top: 1.25rem;
    font-size: 1.125rem;
  }
}

.diesel-hero-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
}

.diesel-hero-cta .diesel-btn-primary,
.diesel-hero-cta .diesel-btn-secondary {
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

@media (min-width: 375px) {
  .diesel-hero-cta {
    margin-top: 1.5rem;
    gap: 0.75rem;
  }
}

@media (min-width: 640px) {
  .diesel-hero-cta {
    margin-top: 2rem;
    flex-direction: row;
    justify-content: center;
  }
  .diesel-hero-cta .diesel-btn-primary,
  .diesel-hero-cta .diesel-btn-secondary {
    min-height: auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

.diesel-btn-primary {
  display: inline-block;
  text-align: center;
  background-color: var(--diesel-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.diesel-btn-primary:hover {
  background-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.diesel-btn-secondary {
  display: inline-block;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.diesel-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero visual (tanker box) - hidden on mobile/tablet so buttons stay visible */
.diesel-hero-visual {
  display: none;
  animation: diesel-fade-in 0.6s ease-out 0.35s both;
}

@media (min-width: 1024px) {
  .diesel-hero-visual {
    display: flex;
    margin: 0;
    position: relative;
    animation-delay: 0.45s;
    align-items: center;
    justify-content: center;
  }
}

.diesel-hero-visual-inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 0.75rem;
  color: #fff;
}

@media (min-width: 375px) {
  .diesel-hero-visual-inner {
    padding: 0 1rem;
  }
}

@media (min-width: 640px) {
  .diesel-hero-visual-inner {
    max-width: 42rem;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .diesel-hero-visual-inner {
    max-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

.diesel-tanker-box {
  display: none;
}

@media (min-width: 1024px) {
  .diesel-tanker-box {
    display: flex;
    position: relative;
    height: 280px;
    width: 280px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
  }
}

.diesel-tanker-card {
  width: 100%;
  height: 100%;
  border-radius: clamp(1rem, 4vw, 2rem);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diesel-tanker-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.diesel-tanker-card .big-num {
  font-size: clamp(2rem, 10vw, 3.75rem);
  font-weight: 700;
  color: var(--diesel-accent);
}

.diesel-tanker-card .unit {
  font-size: clamp(0.875rem, 3vw, 1.25rem);
  color: #fff;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .diesel-tanker-card .unit {
    margin-top: 0.5rem;
  }
}

.diesel-tanker-card .caption {
  font-size: clamp(0.6875rem, 2.2vw, 0.875rem);
  color: #d1d5db;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .diesel-tanker-card .caption {
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .diesel-tanker-card .big-num {
    font-size: 2.5rem;
  }
  .diesel-tanker-card .unit {
    font-size: 1rem;
  }
  .diesel-tanker-card .caption {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
  }
}

/* Light section (wave + content) */
.diesel-light-section {
  position: relative;
  background-color: var(--diesel-light);
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: diesel-fade-in-up 0.5s ease-out 0.5s both;
}

.diesel-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  pointer-events: none;
}

.diesel-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: transparent;
  pointer-events: none;
}

/* Book form */
#book-diesel.diesel-book {
  padding-top: 85px;
  padding-bottom: 80px;
}

.diesel-book {
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
  scroll-margin-top: 6rem;
}

@media (min-width: 640px) {
  .diesel-book {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

.diesel-book-header {
  text-align: center;
  margin-bottom: 2rem;
}

.diesel-book-label {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 300;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diesel-book-title {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
}

@media (min-width: 640px) {
  .diesel-book-title {
    font-size: 1.875rem;
  }
}

.diesel-book-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Alerts */
.diesel-alert {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.diesel-alert-blue {
  border: 1px solid rgba(147, 197, 253, 0.5);
  background-color: #dbeafe;
  color: #1e40af;
}

.diesel-alert-blue .diesel-alert-title {
  font-weight: 600;
}

.diesel-alert-blue p {
  margin: 0.25rem 0 0;
}

.diesel-alert-blue p + p {
  margin-top: 0.75rem;
}

.diesel-alert-red {
  border: 1px solid #fecaca;
  background-color: #fef2f2;
  color: #b91c1c;
}

.diesel-alert-red ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.diesel-alert-red li {
  margin-top: 0.25rem;
}

/* Form card */
.diesel-form-card {
  width: 100%;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 2rem;
}

@media (min-width: 640px) {
  .diesel-form-card {
    padding: 2.5rem;
  }
}

.diesel-form-card .form-group {
  margin-bottom: 1.5rem;
}

.diesel-form-card .form-group:last-of-type {
  margin-bottom: 0;
}

.diesel-form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.diesel-form-card input {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #111;
  box-sizing: border-box;
}

.diesel-form-card input::placeholder {
  color: #9ca3af;
}

.diesel-form-card input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.diesel-form-card .submit-wrap {
  padding-top: 0.5rem;
}

.diesel-form-card button[type="submit"],
.diesel-form-card .diesel-btn-primary {
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

/* Sections */
.diesel-section {
  width: 100%;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .diesel-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.diesel-section-tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#cta {
  padding-top: 40px;
  padding-bottom: 80px;
}

.diesel-section-header {
  text-align: center;
}

.diesel-section-label {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 300;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diesel-section-title {
  margin: 0.75rem 0 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
}

@media (min-width: 640px) {
  .diesel-section-title {
    font-size: 3rem;
  }
}

.diesel-section-desc {
  font-size: 1rem;
  color: #6b7280;
  margin: 1.5rem auto 0;
  max-width: 42rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .diesel-section-desc {
    font-size: 1.125rem;
  }
}

/* Cards */
.diesel-cards {
  margin-top: 3rem;
  width: 100%;
  max-width: 64rem;
}

@media (min-width: 640px) {
  .diesel-cards {
    margin-top: 3.5rem;
  }
}

.diesel-cards-grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .diesel-cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.diesel-cards-grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .diesel-cards-grid-2 {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .diesel-cards-grid-2.diesel-cards-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.diesel-cards-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 64rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .diesel-cards-row {
    flex-direction: row;
    gap: 2rem;
    margin-top: 3.5rem;
  }
}

.diesel-cards-grid-5 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .diesel-cards-grid-5 {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .diesel-cards-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.diesel-card {
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(147, 197, 253, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.diesel-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(147, 197, 253, 0.45);
}

.diesel-form-card:hover {
  transform: none;
}

.diesel-card-entrance {
  opacity: 0;
  transform: translateY(20px);
  animation: diesel-card-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.diesel-card-entrance:nth-child(1) { animation-delay: 0.05s; }
.diesel-card-entrance:nth-child(2) { animation-delay: 0.12s; }
.diesel-card-entrance:nth-child(3) { animation-delay: 0.19s; }
.diesel-card-entrance:nth-child(4) { animation-delay: 0.26s; }
.diesel-card-entrance:nth-child(5) { animation-delay: 0.33s; }
.diesel-card-entrance:nth-child(6) { animation-delay: 0.4s; }

@keyframes diesel-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diesel-card-pad {
  padding: 2rem;
}

@media (min-width: 640px) {
  .diesel-card-pad {
    padding: 2.5rem;
  }
}

.diesel-card-pad-sm {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .diesel-card-pad-sm {
    padding: 1.75rem;
  }
}

.diesel-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111;
}

.diesel-card p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}

.diesel-card .step-num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: #dbeafe;
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 700;
}

.diesel-card.text-center {
  text-align: center;
}

.diesel-card.text-center p {
  margin-top: 0.75rem;
}

.diesel-card-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.diesel-card-with-icon .icon-box {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #dbeafe;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 700;
}

.diesel-card-with-icon .icon-box + p {
  margin-top: 0;
  padding-top: 0.125rem;
  font-weight: 500;
  color: #374151;
}

.diesel-card-cta {
  text-align: center;
}
.diesel-card-cta .diesel-btn-primary,
.diesel-card-cta .diesel-btn-outline {
  margin-top: 1.25rem;
  display: inline-block;
  text-decoration: none;
  width: auto;
}

/* CTA section */
.diesel-cta-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
}

@media (min-width: 640px) {
  .diesel-cta-title {
    font-size: 3rem;
  }
}

.diesel-cta-desc {
  margin: 1.5rem auto 0;
  font-size: 1rem;
  color: #6b7280;
  max-width: 42rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .diesel-cta-desc {
    font-size: 1.125rem;
  }
}

.diesel-cta-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .diesel-cta-buttons {
    flex-direction: row;
  }
}

.diesel-btn-outline {
  display: inline-block;
  text-align: center;
  border: 2px solid #bfdbfe;
  color: #2563eb;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.diesel-btn-outline:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
}

/* Footer */
.diesel-footer {
  background-color: var(--diesel-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.diesel-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .diesel-footer-inner {
    padding: 2.5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .diesel-footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.diesel-footer-flex {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .diesel-footer-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.diesel-footer-brand {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.diesel-footer-tagline {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.diesel-footer-contact {
  font-size: 0.875rem;
  color: #9ca3af;
}

.diesel-footer-contact p {
  margin: 0.25rem 0;
}

/* Bottom spacer */
.diesel-hero-bottom {
  background-color: var(--diesel-bg);
  padding-top: 3rem;
}
