/*
=========================================================
الملف      : contact_ticket_modal.css
القسم      : تواصل معنا — نافذة "فتح تذكرة دعم"

المسؤوليات:
✓ تصميم نافذة تذكرة الدعم (modal) بالكامل — مستقلة تماماً عن نافذة
  المصادقة (auth_shared.css)، بلا أي اعتماد على أصنافها

ممنوع:
✗ تصميم أقسام خارج نافذة تذكرة الدعم

أي تعديل بصري على هذه النافذة يتم من داخل هذا الملف فقط.
=========================================================
*/

.ctk-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.ctk-modal.show {
  display: flex;
}

.ctk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ctk-card {
  position: relative;
  width: min(94%, 560px);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.96), rgba(4, 10, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px 28px 28px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(53, 217, 255, 0.08);
}

.ctk-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.ctk-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(53, 217, 255, 0.3);
}

.ctk-close:focus-visible,
.ctk-submit:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.ctk-header {
  padding-top: 12px;
}

.ctk-header h2 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.ctk-header p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 22px;
  font-size: 14.5px;
}

#contactTicketForm .input-group {
  margin-bottom: 16px;
  text-align: start;
}

#contactTicketForm .input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.ctk-required {
  color: #ff5c5c;
}

#contactTicketForm input,
#contactTicketForm select,
#contactTicketForm textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(13, 24, 39, 0.92);
  color: #f5fbff;
  outline: none;
  font-size: 16px;
  font-family: inherit;
}

#contactTicketForm textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

#contactTicketForm select option {
  background: #0b1622;
  color: #fff;
}

#contactTicketForm input::placeholder,
#contactTicketForm textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

#contactTicketForm input:focus,
#contactTicketForm select:focus,
#contactTicketForm textarea:focus {
  border-color: rgba(53, 217, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(53, 217, 255, 0.08);
}

/* حقول الاسم/البريد عند تسجيل الدخول (مُعبّأة تلقائياً وللقراءة فقط) */
#contactTicketForm input[readonly] {
  opacity: 0.68;
  cursor: not-allowed;
  background: rgba(13, 24, 39, 0.6);
}

.ctk-submit {
  width: 100%;
  margin-top: 8px;
}

.ctk-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.ctk-message {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}

.ctk-message.error {
  color: #ff5c5c;
}

.ctk-message.success {
  color: #22c55e;
}

/* ── شاشة النجاح ── */
#ctkSuccessView {
  text-align: center;
  padding: 12px 4px 4px;
}

.ctk-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

#ctkSuccessView h3 {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

#ctkSuccessView p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 14.5px;
}

@media (max-width: 480px) {
  .ctk-card { padding: 26px 20px 22px; border-radius: 22px; }
  .ctk-header h2 { font-size: 22px; }
}
