:root {
  --primary-500: #ee3322;
  --primary-600: #d92b1b;

  --neutral-50: #f5f5f5;
  --neutral-100: #e8e8e8;
  --neutral-300: #b0b0b0;
  --neutral-500: #5c5c5c;
  --neutral-700: #262626;
  --neutral-900: #0d0d0d;

  --bg-100: #fcfcfc;
  --shadow-lg: 0 18px 50px rgba(13, 13, 13, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background: #f7f7f7;
  color: var(--neutral-900);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}

.quote-page {
  min-height: 100vh;
}

.quote-hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 20px 60px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.58) 38%,
      rgba(0, 0, 0, 0.26) 70%,
      rgba(0, 0, 0, 0.14) 100%
    ),
    url("./assets/hero.jpeg") center / cover no-repeat;
  overflow: hidden;
}

.quote-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(238, 51, 34, 0.18), transparent 25%);
  pointer-events: none;
}

.quote-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 36px;
  align-items: center;
}

.quote-hero-content {
  color: #ffffff;
  max-width: 620px;
  min-width: 0;
}

.quote-tag {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 100%;
}

.quote-hero-content h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.quote-lead {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 58ch;
}

.quote-service-list {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-service-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 100%;
  text-align: center;
}

.quote-form-card {
  width: 100%;
  min-width: 0;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.quote-form-header {
  margin-bottom: 24px;
}

.quote-form-kicker {
  margin: 0 0 10px;
  color: var(--primary-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-form-header h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.05;
}

.quote-form-header p {
  margin: 14px 0 0;
  color: var(--neutral-500);
  line-height: 1.7;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(13, 13, 13, 0.10);
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(238, 51, 34, 0.5);
  box-shadow: 0 0 0 4px rgba(238, 51, 34, 0.08);
}

.form-recaptcha {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.form-message {
  min-height: 22px;
  font-size: 0.94rem;
  font-weight: 500;
}

.form-message.success {
  color: #15803d;
}

.form-message.error {
  color: #b91c1c;
}

.form-submit-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--primary-500);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Large tablet */
@media (max-width: 1100px) {
  .quote-hero {
    padding: 110px 18px 52px;
  }

  .quote-hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quote-hero-content {
    max-width: 100%;
  }

  .quote-form-card {
    max-width: 720px;
    margin-inline: 0;
  }
}

/* Tablet */
@media (max-width: 820px) {
  .quote-hero {
    min-height: auto;
    padding: 100px 18px 42px;
    align-items: flex-start;
    background-position: center;
  }

  .quote-hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 0.98;
  }

  .quote-lead {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .quote-form-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .quote-hero {
    padding: 92px 14px 34px;
  }

  .quote-tag {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    padding: 0 12px;
  }

  .quote-hero-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1;
  }

  .quote-lead {
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .quote-service-list {
    gap: 8px;
  }

  .quote-service-list span {
    width: 100%;
    min-height: 38px;
    font-size: 0.86rem;
  }

  .quote-form-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .quote-form-header {
    margin-bottom: 18px;
  }

  .quote-form-header h2 {
    font-size: 1.45rem;
  }

  .quote-form-header p {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .quote-form {
    gap: 16px;
  }

  .form-grid {
    gap: 14px;
  }

  .form-group label {
    font-size: 0.88rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .form-submit-btn {
    min-height: 50px;
    font-size: 0.92rem;
  }
}

/* Very small devices */
@media (max-width: 380px) {
  .quote-hero {
    padding-inline: 12px;
  }

  .quote-form-card {
    padding: 16px 12px;
  }

  .quote-tag,
  .quote-service-list span {
    font-size: 0.8rem;
  }
}