/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f2f4f8;
  color: #333;
  padding: 40px 20px;
  line-height: 1.5;
}

.form-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: transparent;
}

/* Opet Logo, Otobil Logo ve Başlık Alanı */
.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #dce0e5;
  flex-wrap: wrap;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  height: 45px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-divider {
  width: 5px;
  height: 50px;
  background-color: #dce0e5;
  border-radius: 4px;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  color: #174092;
  margin-top: 5px;
}

/* Form Elemanları */
.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #174092;
  margin-bottom: 8px;
}

/* BÜTÜN KUTULARIN BOYUNU SABİTLEYEN KISIM (52px) */
.form-control {
  width: 100%;
  height: 52px; /* Tüm form elemanları için sabit yükseklik */
  padding: 0 16px; /* İçeriği dikeyde otomatik ortalar */
  font-size: 14px;
  color: #495057;
  background-color: #fff;
  border: 1px solid #dce0e5;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.form-control:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.form-control::placeholder {
  color: #8f959e;
}

.form-control:focus:not(:disabled) {
  border-color: #174092;
  box-shadow: 0 0 0 3px rgba(23, 64, 146, 0.1);
}

/* Özel Select Ok */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23174092'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  cursor: pointer;
}

select.form-control:disabled {
  background-image: none;
}

/* GÜVENLİK KODU ALANI İÇİN KUSURSUZ HİZALAMA */
.captcha-wrapper {
  display: flex;
  align-items: stretch; /* İçindeki elemanların yüksekliği doldurmasını sağlar */
  background-color: #fff;
  border: 1px solid #dce0e5;
  border-radius: 6px;
  overflow: hidden;
  height: 52px; /* Diğer inputlarla birebir aynı boyda */
}

.captcha-wrapper .form-control {
  border: none;
  border-radius: 0;
  border-right: 1px solid #dce0e5;
  height: 100%; /* Wrapper'ın yüksekliğini alır */
  flex: 1;
}

.captcha-wrapper .form-control:focus {
  box-shadow: none;
}

.captcha-image-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 160px;
  padding: 0 15px;
  background-color: #f9fafb;
  flex-shrink: 0;
  height: 100%; /* Görsel alanın da yüksekliği doldurmasını sağlar */
}

.captcha-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  color: #222;
  letter-spacing: 2px;
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, #ccc 2px, #ccc 4px);
  padding: 2px 6px;
  border-radius: 4px;
  user-select: none;
}

.captcha-refresh {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  height: 100%;
}

.captcha-refresh svg {
  width: 22px;
  height: 22px;
  fill: #174092;
  transition: transform 0.3s ease;
}

.captcha-refresh:active svg {
  transform: rotate(180deg);
}

/* Checkbox Alanları */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}

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

.checkbox-label {
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.checkbox-label a {
  color: #174092;
  font-weight: 600;
  text-decoration: underline;
}

/* Gönder Butonu */
.submit-btn {
  background-color: #153f94;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 16px 24px;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 30px;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
  background-color: #0f2c6e;
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-btn:disabled {
  background-color: #818a99;
  cursor: not-allowed;
}

/* Alt Bilgi Metinleri */
.footer-note {
  font-size: 12px;
  color: #818a99;
  margin-bottom: 10px;
}

/* POP-UP (MODAL) TASARIMI */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
  background-color: #174092;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}

.modal-body {
  width: 100%;
  height: 65vh;
  padding: 0;
  position: relative;
}

.iframe-shield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

.iframe-scroll-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.iframe-scroll-wrapper iframe {
  height: 12000px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #dce0e5;
  text-align: right;
  background-color: #f9fafb;
}

.accept-policy-btn {
  background-color: #174092;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.accept-policy-btn:hover {
  background-color: #0f2c6e;
}

/* =========================================
   RESPONSIVE EKRAN UYUMLULUĞU (MEDYA SORGULARI)
   ========================================= */

@media (max-width: 992px) {
  .form-row {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px 15px;
  }
  .brand-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 25px;
  }
  .brand-title {
    font-size: 22px;
    margin-top: 0;
  }
  .form-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }
  .submit-btn {
    max-width: 100%;
    padding: 18px 24px;
  }
  .modal-body {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .logo-group {
    gap: 10px;
  }
  .brand-logo {
    height: 35px;
  }
  .brand-divider {
    height: 30px;
  }
  .brand-title {
    font-size: 20px;
  }
  .captcha-wrapper {
    flex-direction: column;
    align-items: stretch;
    height: auto; /* Mobilde alt alta geldiğinde sabit yüksekliği iptal et */
  }
  .captcha-wrapper .form-control {
    border-right: none;
    border-bottom: 1px solid #dce0e5;
    border-radius: 6px 6px 0 0;
    text-align: center;
    height: 52px; /* Mobil kutu boyutu */
  }
  .captcha-image-area {
    width: 100%;
    height: 52px; /* Mobil alt görsel alanı boyutu */
    justify-content: center;
    padding: 12px;
    border-radius: 0 0 6px 6px;
    gap: 15px;
  }
  .captcha-text {
    font-size: 24px;
    letter-spacing: 4px;
  }
  .checkbox-label {
    font-size: 12px;
  }
  .accept-policy-btn {
    width: 100%;
  }
  .modal-footer {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .logo-group {
    gap: 10px;
  }
  .brand-logo {
    height: 35px;
  }
  .brand-divider {
    height: 30px;
  }
  .brand-title {
    font-size: 20px;
  }

  /* === YENİLENEN GÜVENLİK KODU MOBİL TASARIMI === */
  .captcha-wrapper {
    flex-direction: row; /* Mobilde alt alta değil, yan yana kalmasını sağlar */
    align-items: center;
    height: 52px; /* Yüksekliği diğer kutularla aynı tutar */
  }

  .captcha-wrapper .form-control {
    border-right: 1px solid #dce0e5; /* Sağ aradaki çizgiyi geri getirir */
    border-bottom: none;
    border-radius: 0;
    text-align: left; /* Placeholder yazısını sola hizalar */
    padding: 0 12px; /* İç boşluğu mobilde hafif daraltır */
  }

  .captcha-image-area {
    width: auto; /* Sabit genişlik yerine içeriğe göre genişlemesini sağlar */
    height: 100%;
    justify-content: flex-end;
    padding: 0 10px;
    border-radius: 0;
    gap: 8px; /* Sayı ve ikon arasındaki boşluk */
  }

  .captcha-text {
    font-size: 18px; /* Ekrana sığması için fontu 1 tık küçültür */
    letter-spacing: 2px;
  }
  /* ============================================= */

  .checkbox-label {
    font-size: 12px;
  }
  .accept-policy-btn {
    width: 100%;
  }
  .modal-footer {
    text-align: center;
  }
}
