/* ================================
   TFC × Harley Davidson Component
   Style: Tall Poster, Zoomed Out & EXTRA SHARP Bike
   ================================ */

/* Custom Dialog Width */
@media (min-width: 576px) {
  .tfc-hd-dialog-custom {
    max-width: 600px !important;
  }
}

/* Modal Container - TALLER HEIGHT */
.tfc-hd-modal {
  background: #28282b;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 1);
  min-height: 700px;
  width: 100%;
}

/* --- BACKGROUND LAYER (The Bike) --- */
.tfc-hd-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* UPDATED IMAGE STYLES */
.tfc-hd-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  /* EXTRA SHARP: Increased contrast significantly */
  filter: brightness(1.15) contrast(1.5) saturate(1.1);
  transform: scale(1.0);
}

/* Gradient Overlay */
.tfc-hd-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.3) 35%,
      rgba(0, 0, 0, 0.3) 55%,
      rgba(0, 0, 0, 0.95) 100%);
}

/* --- CONTENT LAYER --- */
.tfc-hd-content {
  position: relative;
  z-index: 10;
  padding: 45px 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Close Button */
.btn-close-custom {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  z-index: 50;
  transition: all 0.2s ease;
}

.btn-close-custom:hover {
  background: #f97316;
}

/* Header & Logos */
.tfc-hd-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.tfc-hd-header img {
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
  max-width: 100%;
}

.tfc-hd-header .hd-og-logo {
  max-height: 88px;
}

.tfc-hd-header .hd-yl-logo {
  max-height: 103px;
}

.tfc-hd-divider {
  width: 2px;
  height: 65px;
  background: #f97316;
  margin: 0 25px;
  box-shadow: 0 0 12px #f97316;
}

/* Title */
.tfc-hd-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  margin-bottom: auto;
  padding-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 1);
  word-wrap: break-word;
}

.tfc-hd-title span {
  color: #f97316;
}

.tfc-hd-title p {
  color: #ffffff;
}

/* --- FORM STYLING --- */
.tfc-hd-form-wrapper {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  margin-top: 55px;
}

/* Inputs */
.tfc-hd-input {
  width: 100%;
  background: transparent !important;
  border: 2px solid #f97316 !important;
  color: #fff !important;
  padding: 14px 20px;
  font-size: 1.1rem;
  border-radius: 12px;
  margin-bottom: 0;
  outline: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.tfc-hd-input::placeholder {
  color: #ffffff;
  opacity: 1;
}

.tfc-hd-input:focus {
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
  border-color: #eba454 !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

select {
  background: transparent;
}

/* Dropdown Options */
select.tfc-hd-input option {
  background-color: #121212;
  color: #f97316;
}

select.tfc-hd-input option[value=""] {
  color: #fff;
}

/* Button */
.tfc-hd-btn {
  width: 100%;
  background-color: #d35e15;
  color: #fff;
  font-weight: 700;
  padding: 15px 0;
  border-radius: 12px;
  border: none;
  font-size: 1.25rem;
  margin-top: 20px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-sizing: border-box;
}

.tfc-hd-btn:hover {
  background-color: #ea580c;
  color: #fff;
  transform: translateY(-2px);
}

/* Valid Text */
.tfc-hd-valid-text {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
  letter-spacing: 0.5px;
  word-wrap: break-word;
}

/* ====================
   RESPONSIVE BREAKPOINTS
   ==================== */

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
  .tfc-hd-modal {
    min-height: 650px;
    margin: 15px;
  }

  .tfc-hd-title {
    font-size: 1.7rem;
  }

  .tfc-hd-header img {
    max-height: 85px;
  }

  .tfc-hd-divider {
    height: 55px;
    margin: 0 20px;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .tfc-hd-modal {
    min-height: 600px;
    border-radius: 16px;
    margin: 10px;
  }

  .tfc-hd-content {
    padding: 35px 20px;
  }

  .tfc-hd-title {
    font-size: 1.6rem;
    padding-bottom: 15px;
  }

  .tfc-hd-header {
    margin-bottom: 15px;
  }

  .tfc-hd-header img {
    max-height: 75px;
  }

  .tfc-hd-divider {
    height: 50px;
    margin: 0 15px;
  }

  .tfc-hd-form-wrapper {
    margin-top: 40px;
    max-width: 400px;
  }

  .tfc-hd-input {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .tfc-hd-btn {
    padding: 14px 0;
    font-size: 1.1rem;
  }

  .tfc-hd-valid-text {
    font-size: 1.1rem;
    margin-top: 15px;
  }

  .btn-close-custom {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

/* Large Mobile (576px and below) */
@media (max-width: 576px) {
  .tfc-hd-modal {
    min-height: 550px;
    border-radius: 14px;
    margin: 8px;
  }

  .tfc-hd-content {
    padding: 30px 18px;
  }

  .tfc-hd-title {
    font-size: 1.4rem;
    line-height: 1.3;
    padding-bottom: 12px;
  }

  /* .tfc-hd-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  } */

  .tfc-hd-header img {
    max-height: 65px;
  }

  .tfc-hd-form-wrapper {
    margin-top: 30px;
    max-width: 100%;
  }

  .tfc-hd-input {
    padding: 11px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .tfc-hd-btn {
    padding: 13px 0;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 15px;
  }

  .tfc-hd-valid-text {
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.4;
  }

  .btn-close-custom {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
  .tfc-hd-modal {
    min-height: 500px;
    border-radius: 12px;
    margin: 5px;
  }

  .tfc-hd-content {
    padding: 25px 15px;
  }

  .tfc-hd-title {
    font-size: 1.25rem;
    padding-bottom: 10px;
  }

  .tfc-hd-header {
    gap: 3px;
  }

  .tfc-hd-header img {
    max-height: 55px;
  }

  .tfc-hd-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .tfc-hd-btn {
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .tfc-hd-valid-text {
    font-size: 0.95rem;
  }

  .btn-close-custom {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
  .tfc-hd-modal {
    min-height: 480px;
  }

  .tfc-hd-content {
    padding: 20px 12px;
  }

  .tfc-hd-title {
    font-size: 1.15rem;
  }

  .tfc-hd-header img {
    max-height: 50px;
  }

  .tfc-hd-input {
    padding: 9px 10px;
    font-size: 0.85rem;
  }

  .tfc-hd-btn {
    padding: 11px 0;
    font-size: 0.9rem;
  }

  .tfc-hd-valid-text {
    font-size: 0.9rem;
  }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .tfc-hd-modal {
    min-height: 400px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .tfc-hd-content {
    padding: 20px 15px;
  }

  .tfc-hd-header {
    margin-bottom: 10px;
  }

  .tfc-hd-header img {
    max-height: 50px;
  }

  .tfc-hd-title {
    font-size: 1.2rem;
    padding-bottom: 8px;
    margin-bottom: 5px;
  }

  .tfc-hd-form-wrapper {
    margin-top: 20px;
  }

  .tfc-hd-input {
    padding: 8px 12px;
    margin-bottom: 8px;
  }

  .tfc-hd-btn {
    padding: 10px 0;
    margin-top: 10px;
  }
}