/* ---- FONTS ---- */
@font-face {
  font-family: 'Oil Can';
  src: url('assets/fonts/Retro Gaming.woff2') format('woff2'),
       url('assets/fonts/Retro Gaming.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- RESET ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
}

/* ---- CSS VARIABLES ---- */
:root {
  --font-body: 'Oil Can', Georgia, serif;
  --font-display: 'Oil Can', Georgia, serif;
  --color-accent: #c9a227;
  --bg-panel: #000000;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --border-base: #333333;
  --bg-input: #0a0a0a;
}

/* ---- LEFT PANEL ---- */
#left-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 42%;
  min-width: 360px;
  max-width: 560px;
  height: 100vh;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

#logo-block {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 28px 12px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 1;
  min-width: 0;
}

.logo-img {
  max-height: 70px;
  flex-shrink: 0;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
}

#form-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 28px 32px;
}

/* ---- RIGHT PANEL ---- */
#right-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: calc(42%);
  height: 100vh;
  overflow: hidden;
}

/* When left panel hits max-width, right panel needs fixed offset */
@media (min-width: 1334px) {
  #right-panel {
    left: 560px;
  }
}

/* ---- CAROUSEL ---- */
#carousel-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
}

.car-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100vh;
}

.car-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.30) saturate(0.70) contrast(0.88) brightness(0.96) hue-rotate(8deg);
  display: block;
}

/* ---- MOBILE BANNER (hidden on desktop) ---- */
#mobile-banner {
  display: none;
}

/* ---- RESPONSIVE: TABLET / MOBILE ---- */
@media (max-width: 1024px) {
  #left-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    overflow: visible;
  }

  #right-panel {
    display: none;
  }

  #mobile-banner {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
  }

  #mobile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.30) saturate(0.70) contrast(0.88) brightness(0.96) hue-rotate(8deg);
    display: block;
  }

  #form-wrapper {
    padding: 24px 24px 40px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  #logo-block {
    padding: 16px 20px 8px;
    gap: 12px;
  }

  .contact-heading {
    font-size: 1.8rem;
  }

  .logo-img {
    max-height: 48px;
    margin-right: 6px;
  }

  #form-wrapper {
    padding: 20px 20px 40px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ---- FORM ---- */
.contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 16px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #ffffff;
  background: var(--bg-input);
  border: 3px solid var(--border-base);
  border-radius: 4px;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ffffff;
  outline: none;
}

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

/* ---- CONSENT ---- */
.consent-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #ffffff;
}

.consent-group label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.6;
  color: #888888;
  cursor: pointer;
}

/* ---- FORM ERROR ---- */
.form-error {
  font-size: 0.75rem;
  color: #ff4444;
  margin-bottom: 12px;
  min-height: 1em;
}

/* ---- SUBMIT BUTTON ---- */
.submit-btn {
  width: 100%;
  padding: 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #000000;
  background: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.submit-btn:hover {
  background: #000000;
  color: #ffffff;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- SUCCESS STATE ---- */
.form-success {
  width: 100%;
  text-align: center;
  padding: 40px 0;
}

.form-success p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.5;
}

/* ---- SHORT VIEWPORT: tighten spacing so form fits without scrolling ---- */
@media (max-height: 820px) and (min-width: 1025px) {
  #logo-block {
    padding: 14px 28px 8px;
  }

  #form-wrapper {
    padding: 10px 28px 16px;
  }

  .form-group {
    margin-bottom: 10px;
  }

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

  .consent-group {
    margin-bottom: 10px;
  }
}
