/* Form validation stilleri */
.form-input.error {
  border-color: #f44336 !important;
  background-color: #ffebee;
}

.form-input.success {
  border-color: #4CAF50 !important;
  background-color: #f1f8e9;
}

/* Animasyon için keyframe */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:url(assets/images/background.png);
  min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:20px;
}

.header{display:flex;justify-content:flex-start;align-items:center;width:100%;max-width:1206px;margin:0 auto 16px;padding:20px 0}
.logo{display:flex;align-items:center;gap:15px}
.logo-icon{width:50px;height:50px;background:linear-gradient(135deg,#ff5722,#ff8a50);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:bold;font-size:24px;box-shadow:0 4px 15px rgba(255,87,34,.3)}
.logo-text{color:#fff;font-size:50px;font-weight:500;font-family:'MuseoModerno',sans-serif}

.main-container{
  background:#fff;border-radius:25px;width:1206px;height:688px;max-width:none;box-shadow:0 20px 80px rgba(0,0,0,.15);
  position:relative;overflow:hidden;padding:36px 50px 46px;
}

.form-content{position:relative;z-index:1}

.form-title{
  color:#ff5722;font-size:36px;font-weight:600;font-family:'MuseoModerno',sans-serif;text-align:center;margin-bottom:30px;letter-spacing:-.5px
}

/* 👇 Robot overlay */
.form-robot {
  position: absolute;
  right: 33px; 
  width: 380px;       
  height: auto;
  bottom: auto;       
  z-index: 3;
  pointer-events: none;
  top: calc( (NOTUNUZ_LABEL_Y)px - (ROBOT_HEIGHT)px );
}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-bottom:0;align-items:start}
.form-group{display:flex;flex-direction:column;align-items:stretch}
.form-group.full-width{grid-column:1/-1}

.form-label{color:#ff5722;font-size:20px;font-weight:600;font-family:'Poppins',sans-serif;margin-bottom:10px}

.form-input{
  padding:18px;border:2px solid transparent;background:#EEEEEE;border-radius:15px;font-size:15px;font-family:'Poppins',sans-serif;color:#222;transition:.3s
}
.form-select{cursor:pointer;appearance:none;background-image:url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ff5722" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');background-repeat:no-repeat;background-position:right 18px center;background-size:12px;padding-right:45px}
.form-input:focus{outline:none;background:#fff;border-color:#ff5722;transform:translateY(-2px);box-shadow:0 8px 25px rgba(255,87,34,.1)}
.form-input::placeholder{color:#999}
.form-textarea{height:80px;resize:none;font-family:inherit}

/* Butonlar */
.button-group{display:flex;justify-content:flex-end;gap:138px;margin-top:30px}
.btn{padding:18px 40px;border:none;border-radius:30px;font-size:16px;font-weight:600;font-family:'Poppins',sans-serif;cursor:pointer;transition:.3s;width:200px;box-shadow:0 4px 15px rgba(0,0,0,.1)}
.btn-clear,.btn-submit{background:linear-gradient(135deg,#F96332,#F96332);color:#fff}
.btn-clear:hover,.btn-submit:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(255,87,34,.3)}

/* Footer */
.footer{width:100%;max-width:1000px;margin:30px auto 0;padding:0;display:flex;justify-content:space-between;align-items:flex-end;text-align:left;color:rgba(255,255,255,.9);font-family:'Poppins',sans-serif;font-size:15px;font-weight:300;line-height:1.6;gap:20px}
.footer-text{flex:1;min-width:0}
.footer-text p:first-child{margin-bottom:12px}
.footer-robot{width:200px;height:180px;object-fit:contain;animation:none;margin:0}
.footer a{color:#ff5722;text-decoration:none;font-weight:500}
.footer a:hover{text-decoration:underline}
.yatgak-link{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.yatgak-logo{background:url(assets/images/yatgak_Logo.png) no-repeat center;background-size:contain;width:80px;height:24px}


/* ===================== RESPONSIVE TASARIM ===================== */

/* --- Tablet & küçük dizüstü (≤ 1024px) --- */
@media (max-width: 1024px) {
  .main-container {
    width: 100%;
    height: auto;
    padding: 28px 28px 32px;
  }

  .form-title { font-size: 30px; margin-bottom: 22px; }

  /* Robot biraz küçültülür ve yeniden konumlanır */
  .form-robot {
    width: 320px;
    right: 24px;
    top: 140px;
  }
  .form-robot { display: none !important; }
}

/* --- Mobil temel (≤ 768px) --- */
@media (max-width: 768px) {
  /* Kart & başlık */
  .main-container {
    padding: 20px 16px 24px;
    border-radius: 18px;
  }
  .form-title { font-size: 22px; margin-bottom: 16px; }

  /* Header & logo küçültme */
  .header { gap: 10px; padding: 12px 0; max-width: 100%; justify-content: center; }
  .logo-image { max-height: 28px; width: auto; }
  .logo-text { font-size: 26px; font-weight: 500; }

  /* Grid tek kolon */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Form elemanlarını büyüt ve taşmayı engelle */
  .form-label { font-size: 16px; margin-bottom: 6px; }

  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 14px 12px;
    border-radius: 12px;
  }
  .form-textarea { min-height: 120px; }

  .form-select {
    padding-right: 38px;
    background-position: right 12px center;
    background-size: 10px;
  }

  /* Butonlar tam genişlik */
  .button-group {
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }
  .btn {
    width: 100%;
    max-width: none;
    padding: 14px 16px;          /* ~48px tap hedefi */
    font-size: 16px;
    border-radius: 14px;
  }

  /* Robot mobilde görünmesin */
  .form-robot { display: none !important; }

  /* Footer sadeleşsin */
  .footer {
    max-width: 100%;
    margin: 16px auto 0;
    padding: 0 12px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    text-align: center;
    flex-direction: column;
  }
  .footer-robot { display: none; }
}

/* --- Küçük telefonlar (≤ 480px) --- */
@media (max-width: 480px) {
  .logo-image { max-height: 22px; }
  .logo-text { font-size: 22px; }

  .form-title { font-size: 20px; }

  .form-label { font-size: 15px; }
  .form-input, .form-textarea, .form-select {
    font-size: 15px;
    padding: 12px 10px;
  }
  .form-textarea { min-height: 140px; }

  .btn { font-size: 16px; padding: 16px; }  /* ~48px yükseklik */
}

/* --- Çok küçük cihazlar (≤ 360px) — opsiyonel --- */
@media (max-width: 360px) {
  .logo-text { font-size: 20px; }
  .form-title { font-size: 18px; }
  .form-label { font-size: 14px; }
  .form-input, .form-textarea, .form-select { font-size: 15px; padding: 14px; }
  .btn { font-size: 15px; padding: 14px; }
}

/* ===================== POPUP MODAL ===================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px 50px;
  max-width: none;
  width: 820px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  position: relative;

  height: 360px;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.success-icon::before {
  content: '✓';
  color: white;
  font-size: 35px;
  font-weight: bold;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #333;
  margin-bottom: 12px;
}

.modal-message {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.modal-button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.modal-button:hover {
  background: #e64a19;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

/* Animasyonlar */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Modal */
@media (max-width: 1024px) {
  .modal-content {
    width: 820px;
    height: auto;
    min-height: 400px;
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 40px 30px;
    width: 820px;
    height: auto;
    min-height: 350px;
  }
  
  .success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
  }
  
  .success-icon::before {
    font-size: 40px;
  }
  
  .modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #333;
  margin-bottom: 12px;
}
  
  .modal-message {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}
  
  .modal-button {
    padding: 14px 40px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 35px 25px;
    min-height: 320px;
  }
  
  .success-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  
  .success-icon::before {
    font-size: 35px;
  }
  
  .modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #333;
  margin-bottom: 12px;
}
  
  .modal-message {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}
}
/* Input validation colors */
input.error {
  border: 2px solid #ff3333; /* canlı kırmızı */
}
input.success {
  border: 2px solid #33cc33; /* yeşil */
}

/* Modal açıkken sayfa kaydırmasını kilitle */
body.modal-open { overflow: hidden; }
