﻿/* ===================================================
   IQx – Ön Kayıt Formu | style.css
   Layout: Flexbox, Responsive
=================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background-color: #0f0d0b;
  color: #d6d5d4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* Mevcut genel kodu bu şekilde güncelliyoruz */
.input-field:-webkit-autofill, 
.input-field:-webkit-autofill:hover, 
.input-field:-webkit-autofill:focus, 
.phone-input:-webkit-autofill, 
.phone-input:-webkit-autofill:hover, 
.phone-input:-webkit-autofill:focus {
    -webkit-text-fill-color: rgb(214, 213, 212) !important;
    caret-color: rgb(214, 213, 212) !important;    
    border-color: rgb(46, 45, 45) !important;  
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: background-color 99999s ease-in-out 0s !important;
}
.input-field:autofill,
.phone-input:autofill {
    background-color: rgba(23, 20, 17, 0.3) !important;
    color: rgb(214, 213, 212) !important;
}

/*olmazsa ikinci tercih.input-field:-webkit-autofill, 
.input-field:-webkit-autofill:hover, 
.input-field:-webkit-autofill:focus, 
.phone-input:-webkit-autofill, 
.phone-input:-webkit-autofill:hover, 
.phone-input:-webkit-autofill:focus {*/
    /* Yazı rengi: Açık Gri */
    /*-webkit-text-fill-color: rgb(214, 213, 212) !important;
    caret-color: rgb(214, 213, 212) !important;
    border-color: rgb(46, 45, 45) !important;*/
    

    /*box-shadow: 0 0 0px 1000px rgb(23, 20, 17) inset !important;
    -webkit-box-shadow: 0 0 0px 1000px rgb(23, 20, 17) inset !important;
}*/

/* ---------- Page Layout ---------- */
.page {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
    background-image: url("../images/iqx-icons/bg-hero-new.png");
  background-size: cover;
  background-position: center top;
  /*filter: brightness(0.55);*/
}

/* ---------- Sol Panel ---------- */
.form-panel {
  width: 500px;
  min-width: 320px;
  flex-shrink: 0;
  background-color: #0f0d0b;
  border-right: 0.5px solid #2e2d2d;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px;
  height: 100%;
  min-height: 100vh;
}

.panel-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- Logo ---------- */
.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  color: #d6d5d4;
  line-height: 1;
}

/* ---------- Başlık Bloğu ---------- */
.heading-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heading {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.22;
  color: #d6d5d4;
}

.subheading {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(167, 167, 165, 0.6);
}

/* ---------- Form Kartı ---------- */
.form-card {
  background-color: #0f0d0b;
  border: 0.5px solid #2e2d2d;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

/* ---------- Input Satırları ---------- */
.input-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.input-row .input-group {
  flex: 1 0 0;
  min-width: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-field {
  height: 40px;
  background-color: rgba(23, 20, 17, 0.3);
  border: 0.7px solid #2e2d2d;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #d6d5d4;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
}

.input-field::placeholder {
  color: rgba(167, 167, 165, 0.6);
}

.input-field:focus {
  border-color: rgba(167, 167, 165, 0.4);
}

.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.phone-input:-webkit-autofill,
.phone-input:-webkit-autofill:hover,
.phone-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #11100e inset;
  -webkit-text-fill-color: #d6d5d4;
  caret-color: #d6d5d4;
  border-color: #2e2d2d;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Telefon Alanı ---------- */
.phone-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgba(23, 20, 17, 0.3);
  border: 0.7px solid #2e2d2d;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.phone-field:focus-within {
  border-color: rgba(167, 167, 165, 0.4);
}

.phone-code {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 10px 10px 12px;
  border-right: 1px solid #2e2d2d;
  flex-shrink: 0;
  color: #d6d5d4;
}

.flag {
  display: flex;
  align-items: center;
}

.flag-svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
}

.chevron {
  width: 10px;
  height: 6px;
}

.phone-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(167, 167, 165, 0.6);
}

.phone-input::placeholder {
  color: rgba(167, 167, 165, 0.6);
}

/* ---------- Captcha Alanı ---------- */
.captcha-area {
  border: 1px solid #2e2d2d;
  border-radius: 6px;
  background-color: rgba(23, 20, 17, 0.3);
  padding: 14px 16px;
  margin-top: 4px;
}

.captcha-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.captcha-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(167, 167, 165, 0.4);
  border-radius: 3px;
  flex-shrink: 0;
}

.captcha-label {
  font-size: 14px;
  color: rgba(167, 167, 165, 0.8);
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.recaptcha-icon {
  width: 28px;
  height: 28px;
}

.recaptcha-text {
  font-size: 9px;
  color: rgba(167, 167, 165, 0.5);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.recaptcha-sub {
  font-size: 7px;
  color: rgba(167, 167, 165, 0.35);
}

/* ---------- Onay Kutuları ---------- */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 1. Mevcut .checkbox-box kuralına "position: relative" ekliyoruz ki içine koyacağımız tik işaretini ortalayabilelim */
.checkbox-box {
  position: relative; /* İçindeki tiki konumlandırmak için şart */
  width: 14px;
  height: 14px;
  border: 1px solid rgba(167, 167, 165, 0.6);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* 2. Tik işaretinin kendisini CSS ile çiziyoruz (Varsayılan olarak gizli) */
.checkbox-box::after {
  content: "";
  position: absolute;
  /* Tik işaretini tam ortalamak için */
  left: 4px;
  top: 1px;
  /* Küçük bir L harfi çizip döndürerek tik işareti yapıyoruz */
  width: 4px;
  height: 8px;
  border: solid #d6d5d4; /* İstediğin renk */
  border-width: 0 2px 2px 0; /* Sadece alt ve sağ kenarları çiziyoruz */
  transform: rotate(45deg) scale(0); /* İlk başta döndürülmüş ama görünmez (scale 0) */
  transition: transform 0.1s ease; /* Tikin ekrana tatlıca büyümesini sağlar */
}

/* 3. Checked olduğunda arka plan mavi olurken, tik işaretini de görünür yapıyoruz */
.checkbox-input:checked + .checkbox-box {
  background-color: #0056cb;
  border-color: #0056cb;
}

/* Tik işaretini scale(1) yaparak ekrana çıkartıyoruz */
.checkbox-input:checked + .checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-input:checked ~ .checkbox-text {
  color: #ffffff;
}

.checkbox-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(167, 167, 165, 0.6);
  line-height: 1.54;
}

.link {
  color: #0056cb;
  transition: opacity 0.15s ease;
}

.link:hover {
  opacity: 0.8;
  color: #0056cb;
}

/* ---------- Gönder Butonu ---------- */
.submit-btn {
  width: 100%;
  padding: 10px 20px;
  background-color: #d6d5d4;
  color: #0f0d0b;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  letter-spacing: 0;
  cursor: not-allowed;
  opacity: 0.5;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

.submit-btn:not(:disabled) {
  background-color: #d6d5d4;
  color: #0F0D0B;
  cursor: pointer;
  opacity: 1;
}

.submit-btn:not(:disabled):hover {
  opacity: 0.9;

}

.submit-btn:not(:disabled):active {
  transform: scale(0.99);
}

.submit-btn:hover {

background: #0056CB;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 8px;
color:#0F0D0B;
}

.submit-btn:disabled:hover {  
  background-color: #d6d5d4;
  color: #0f0d0b;
}

/* ---------- Alt Logo (Matriks) ---------- */
.panel-footer {
 padding-top: 100px;
    text-align: center;
}

.matriks-logo {
  display: inline-flex;
  align-items: center;
}

.matriks-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.matriks-accent {
  color: #50b4e7;
}

/* ---------- Sağ Panel (Mockup Arka Plan) ---------- */
.mockup-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/*.mockup-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/iqx-icons/bg-hero.png");
  background-size: cover;
  background-position: right top;
  filter: brightness(0.55);
}*/

/* ---------- Responsive ---------- */

/* Tablet (≤900px): Sol panel tam genişlik, resim küçülür */
@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .form-panel {
    width: 100%;
    border-right: none;
    border-bottom: 0.5px solid #2e2d2d;
  }

  .panel-inner {
    min-height: unset;
    padding: 40px 32px;
  }

  .mockup-panel {
    min-height: 300px;
    flex: none;
    height: 300px;
  }
}

/* Mobil (≤600px): Padding ve font küçülür */
@media (max-width: 600px) {
  .panel-inner {
    padding: 32px 20px;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .logo-text {
    font-size: 28px;
  }

  .heading {
    font-size: 26px;
  }

  .subheading {
    font-size: 14px;
  }

  .form {
    padding: 24px 20px;
  }

  .input-row {
    flex-direction: column;
    gap: 12px;
  }

  .mockup-panel {
    height: 220px;
    display:none;
  }
}

/* Geniş ekran (≥1440px): Sağ panel oranı sabit kalır */
@media (min-width: 1440px) {
  .form-panel {
    width: 500px;
  }
}

/* ===================================================
           IQx – Popup | #iqx-popup-overlay
        =================================================== */
        #iqx-popup-overlay {
          position: fixed;
          inset: 0;
          z-index: 9999;
          display: none; /* Varsayılan olarak gizli */
          align-items: center;
          justify-content: center;
          background-color: rgba(15, 13, 11, 0.70);
          backdrop-filter: blur(20px);
          -webkit-backdrop-filter: blur(20px);
          padding: 20px;
        }

        #iqx-popup-overlay.is-active {
          display: flex;
          animation: iqx-fade-in 0.2s ease;
        }

        @keyframes iqx-fade-in {
          from { opacity: 0; }
          to   { opacity: 1; }
        }

        .iqx-popup-card {
          position: relative;
          background-color: #0f0d0b;
          border: 0.5px solid #2e2d2d;
          border-radius: 16px;
          padding: 42px;
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 13px;
          max-width: 532px;
          width: 100%;
        }

        #iqx-popup-overlay.is-active .iqx-popup-card {
          animation: iqx-slide-up 0.25s ease;
        }

        @keyframes iqx-slide-up {
          from { opacity: 0; transform: translateY(16px); }
          to   { opacity: 1; transform: translateY(0); }
        }

        .iqx-popup-close {
          position: absolute;
          top: 16px;
          right: 16px;
          width: 28px;
          height: 28px;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 6px;
          color: rgba(167, 167, 165, 0.5);
          background: transparent;
          border: none;
          transition: background-color 0.15s ease, color 0.15s ease;
          cursor: pointer;
        }

        .iqx-popup-close:hover {
          background-color: rgba(167, 167, 165, 0.08);
          color: #d6d5d4;
        }

        .iqx-popup-close svg {
          width: 14px;
          height: 14px;
        }

        .iqx-popup-icon {
          width: 60px;
          height: 60px;
          flex-shrink: 0;
        }

        .iqx-popup-icon svg {
          width: 100%;
          height: 100%;
        }

        .iqx-popup-body {
          display: flex;
          flex-direction: column;
          gap: 20px;
          align-items: center;
          text-align: center;
          width: 100%;
        }

        .iqx-popup-title {
          font-size: 28px;
          font-weight: 500;
          letter-spacing: -1px;
          line-height: 1.286;
          color: #d6d5d4;
          margin: 0;
        }

        .iqx-popup-desc {
          font-size: 16px;
          font-weight: 400;
          line-height: 1.5;
          color: rgba(167, 167, 165, 0.6);
          max-width: 448px;
          margin: 0;
        }

        @media (max-width: 600px) {
          .iqx-popup-card {
            padding: 32px 24px;
          }
          .iqx-popup-title {
            font-size: 22px;
          }
          .iqx-popup-desc {
            font-size: 14px;
          }
        }


        .checkbox-label:first-child .checkbox-box{
            margin-top:23px;
        }
        .checkbox-label:nth-child(2) .checkbox-box{
            margin-top:29px;
        }