/* ============================================
   Aykan Otomotiv Landing Page
   Mercedes layout korunur — sadece font ailesi farklı
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: #000;
  background-color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #00adef;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===============================
   HERO SECTION
   Based on globalelem-simple-stage
   =============================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
}

.hero__image-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 45vw;
  object-fit: cover;
  object-position: center;
}

.hero__image-mobile {
  display: none;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 45vw;
  background:
    linear-gradient(to top, #fff, transparent 50%),
    linear-gradient(to right, #fff, transparent 50%);
  z-index: 1;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 45vw;
  padding: 11vw 0 0 7%;
  z-index: 2;
  max-width: 43%;
}

.hero__title {
  font-family: Poppins, Inter, Helvetica, Arial, sans-serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 72px;
  color: #000;
  margin: 0 0 16px 0;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero__cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  padding: 12px 32px;
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background-color: #00adef;
  border: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.hero__cta:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

/* ===============================
   FORM SECTION - Desktop
   =============================== */
.form-section {
  padding: 40px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.form-section__intro {
  font-family: Poppins, Inter, Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 44px;
  color: #333;
  margin-bottom: 40px;
}

/* === Form === */
.contact-form {
  max-width: 100%;
}

.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.form-row--full {
  flex-direction: column;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group--full {
  width: 100%;
}

.form-label {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.form-label .required {
  color: #333;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: #000;
  background-color: #f4f4f4;
  border: 1px solid #d6d6d6;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #0078c8;
  background-color: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

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

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* === Date Picker (Flatpickr) === */
.flatpickr-date {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.flatpickr-calendar {
  font-family: Inter, Helvetica, Arial, sans-serif;
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #d6d6d6;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.selected:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.flatpickr-calendar .flatpickr-day:hover {
  background: #f4f4f4;
  border-color: #d6d6d6;
}

.flatpickr-calendar .flatpickr-day.today {
  border-color: #000;
}

.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar span.flatpickr-weekday {
  background: #000;
  color: #fff;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  fill: #fff;
  color: #fff;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover svg {
  fill: #ccc;
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  color: #fff;
  font-weight: 500;
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
  color: #000;
  background: #fff;
}

/* === Privacy & Consent Section === */
.privacy-section {
  margin-top: 32px;
  padding-top: 16px;
}

.privacy-text {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
}

.privacy-text a {
  color: #00adef;
  text-decoration: underline;
}

.privacy-text a:hover {
  color: #0078c8;
}

.consent-block {
  margin-bottom: 24px;
}

.consent-question {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.consent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #999;
  border-radius: 0;
  cursor: pointer;
  accent-color: #0078c8;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
  background-color: #0078c8;
  border-color: #0078c8;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

/* === Validation Errors === */
.field-error {
  display: block;
  font-size: 13px;
  color: #d32f2f;
  margin-top: 6px;
  line-height: 1.4;
}

.form-input--error,
.form-textarea--error {
  border-color: #d32f2f;
}

/* === Submit Button === */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: #fff;
  background-color: #0078c8;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background-color: #005fa3;
}

.btn-submit:active {
  background-color: #004c82;
}

/* === Footer === */
.footer {
  background-color: #000;
  color: #fff;
  padding: 32px 80px;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer__links a {
  color: #999;
  font-size: 13px;
  text-decoration: none;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copyright {
  font-size: 13px;
  color: #666;
}

/* ===============================
   RESPONSIVE - Tablet (768-1024)
   =============================== */
@media (max-width: 1024px) {
  .hero__image-desktop {
    min-height: 67vw;
  }

  .hero__overlay {
    min-height: 67vw;
  }

  .hero__content {
    min-height: 67vw;
    max-width: 50%;
    padding: 6vw 0 0 7%;
  }

  .hero__title {
    font-size: 48px;
    line-height: 60px;
  }

  .hero__cta {
    font-size: 12px;
    padding: 7px 18px;
  }

  .form-section {
    padding: 32px 48px 60px;
  }

  .footer {
    padding: 32px 48px;
  }
}

/* ===============================
   RESPONSIVE - Mobile (≤768px)
   Based on original site's actual
   mobile rendering behavior
   =============================== */
@media (max-width: 768px) {

  /* --- Hero: Mobile --- */
  .hero {
    overflow: visible;
  }

  .hero__image-desktop {
    display: none;
  }

  .hero__image-wrapper {
    position: relative;
    min-height: 102vw;
    padding-bottom: 10rem;
  }

  .hero__image-mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: auto;
    background: linear-gradient(to top, rgb(255, 255, 255), rgba(0, 0, 0, 0) 25%);
  }

  .hero__content {
    position: absolute;
    bottom: -6.5rem;
    left: 0;
    right: 0;
    min-height: auto;
    max-width: 100%;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }

  .hero__title {
    font-family: Poppins, Inter, Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 56px;
    color: #000;
    margin: 0;
    text-align: center;
    overflow-wrap: break-word;
    max-width: 504px;
    -webkit-font-smoothing: antialiased;
  }

  .hero__cta {
    align-self: center;
    margin-top: 10px;
    padding: 10px 24px;
    font-size: 13px;
  }

  /* --- Form Section: Mobile layout --- */
  .form-section {
    padding: 7rem 20px 40px;
  }

  .form-section__intro {
    font-size: 26px;
    line-height: 34px;
    margin-top: 1.5rem;
    margin-bottom: 24px;
  }

  /* Stack all form rows vertically */
  .form-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-input,
  .form-textarea {
    padding: 14px 16px;
    font-size: 16px;
  }

  .form-textarea {
    min-height: 100px;
  }

  /* Privacy & Consent: stacked checkboxes */
  .privacy-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .consent-question {
    font-size: 14px;
    line-height: 1.5;
  }

  .consent-options {
    flex-direction: column;
    gap: 16px;
  }

  .checkbox-group {
    gap: 12px;
  }

  .checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .checkbox-group input[type="checkbox"]:checked::after {
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
  }

  .checkbox-label {
    font-size: 15px;
    line-height: 1.4;
  }

  /* Submit button: full width on mobile */
  .form-actions {
    justify-content: center;
    margin-top: 24px;
  }

  .btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 4px;
  }

  /* Footer: compact on mobile */
  .footer {
    padding: 24px 20px;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===============================
   RESPONSIVE - Small Mobile (≤414px)
   Fine-tuning for narrow screens
   =============================== */
@media (max-width: 414px) {
  .hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero__cta {
    font-size: 11px;
    padding: 6px 16px;
  }

  .form-section__intro {
    font-size: 18px;
    line-height: 24px;
  }
}
