/* KVKK Checkbox and Modal Styles */

/* KVKK Checkbox Wrapper */
.kvkk-consent-wrapper {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.kvkk-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.kvkk-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #38c760;
}

.kvkk-consent-text {
  flex: 1;
  word-wrap: break-word;
}

.kvkk-link {
  color: #38c760;
  text-decoration: underline;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.kvkk-link:hover {
  color: #2da350;
}

/* Disabled button style */
.btn-submit:disabled,
.btn-submit-quote:disabled,
.btn.btn-submit:disabled {
  background-color: #a8e4b8 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-submit:disabled:hover,
.btn-submit-quote:disabled:hover,
.btn.btn-submit:disabled:hover {
  background-color: #a8e4b8 !important;
  transform: none;
  box-shadow: none;
}

/* KVKK Modal Styles */
.kvkk-modal-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.7) !important;
  z-index: 999999 !important;
  justify-content: center;
  align-items: center;
  padding: 15px;
  overflow: hidden;
  backdrop-filter: blur(3px);
}

.kvkk-modal-overlay.show {
  display: flex !important;
}

.kvkk-modal-content {
  background: #fff !important;
  border-radius: 10px;
  max-width: 800px;
  width: calc(100% - 30px);
  max-height: calc(100vh - 30px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1000000 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.kvkk-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #38c760;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.kvkk-modal-header h3 {
  margin: 0;
  color: #323c45;
  font-size: 18px;
  font-weight: 600;
  padding-right: 1rem;
}

.kvkk-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kvkk-modal-close:hover {
  color: #333;
}

.kvkk-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  flex: 1;
}

.kvkk-modal-body h4 {
  color: #38c760;
  font-size: 16px;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.kvkk-modal-body h4:first-child {
  margin-top: 0;
}

.kvkk-modal-body p {
  margin-bottom: 0.75rem;
  word-wrap: break-word;
}

.kvkk-modal-body ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.kvkk-modal-body li {
  margin-bottom: 0.5rem;
}

.kvkk-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 13px;
  display: block;
  overflow-x: auto;
}

.kvkk-modal-body table th,
.kvkk-modal-body table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
  min-width: 120px;
}

.kvkk-modal-body table th {
  background: #f5f5f5;
  font-weight: 600;
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .kvkk-consent-label {
    font-size: 12px;
  }

  .kvkk-modal-content {
    max-width: 100%;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }

  .kvkk-modal-header {
    padding: 0.875rem 1rem;
  }

  .kvkk-modal-header h3 {
    font-size: 16px;
  }

  .kvkk-modal-body {
    padding: 1rem;
    font-size: 13px;
  }

  .kvkk-modal-body h4 {
    font-size: 14px;
    margin-top: 1.25rem;
  }

  .kvkk-modal-body table {
    font-size: 12px;
  }

  .kvkk-modal-body table th,
  .kvkk-modal-body table td {
    padding: 0.375rem;
    min-width: 100px;
  }
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .kvkk-consent-wrapper {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .kvkk-consent-label {
    font-size: 11px;
    gap: 0.4rem;
  }

  .kvkk-consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .kvkk-modal-overlay {
    padding: 10px;
  }

  .kvkk-modal-content {
    width: calc(100% - 10px);
    max-height: calc(100vh - 20px);
    border-radius: 6px;
  }

  .kvkk-modal-header {
    padding: 0.75rem;
  }

  .kvkk-modal-header h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .kvkk-modal-close {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .kvkk-modal-body {
    padding: 0.75rem;
    font-size: 12px;
    line-height: 1.6;
  }

  .kvkk-modal-body h4 {
    font-size: 13px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .kvkk-modal-body p {
    margin-bottom: 0.5rem;
  }

  .kvkk-modal-body ul {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
  }

  .kvkk-modal-body li {
    margin-bottom: 0.375rem;
  }

  .kvkk-modal-body table {
    font-size: 11px;
  }

  .kvkk-modal-body table th,
  .kvkk-modal-body table td {
    padding: 0.25rem 0.375rem;
    min-width: 80px;
  }
}
