/* ── Download Lead Capture ── */

/* Button */
.dlc-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.25s ease;
  text-decoration: none;
}

.dlc-download-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.dlc-download-btn:active {
  transform: translateY(0);
}

/* Button sizes */
.dlc-btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.dlc-btn-md { padding: 12px 24px; font-size: 15px; border-radius: 8px; }
.dlc-btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 8px; }
.dlc-btn-xl { padding: 20px 40px; font-size: 19px; border-radius: 10px; }

.dlc-btn-icon { display: inline-flex; align-items: center; }
.dlc-btn-icon svg,
.dlc-btn-icon i { font-size: 1em; }

/* Modal overlay */
.dlc-modal-overlay {
  opacity: 0;
  animation: dlcFadeIn 0.25s ease forwards;
}

/* Modal container */
.dlc-modal {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Close button */
.dlc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.dlc-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

[dir="rtl"] .dlc-modal-close {
  right: auto;
  left: 12px;
}

/* Title */
.dlc-modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

/* Description */
.dlc-modal-desc {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

/* Form */
.dlc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dlc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.dlc-req {
  color: #ef4444;
}

.dlc-field input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}

.dlc-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dlc-field input.dlc-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dlc-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  min-height: 0;
}

/* Submit button */
.dlc-submit-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-family: inherit;
  margin-top: 4px;
}

.dlc-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.dlc-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.dlc-submit-loading {
  display: inline-flex;
  align-items: center;
}

.dlc-submit-loading svg {
  animation: dlcSpin 1s linear infinite;
}

/* Success state */
.dlc-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0;
}

.dlc-success p {
  color: #374151;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* Animations */
@keyframes dlcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes dlcSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* RTL */
[dir="rtl"] .dlc-form label {
  text-align: right;
}

[dir="rtl"] .dlc-field input {
  text-align: right;
}

[dir="rtl"] .dlc-modal-title {
  text-align: right;
}

[dir="rtl"] .dlc-modal-desc {
  text-align: right;
}

[dir="rtl"] .dlc-error {
  text-align: right;
}

/* Responsive */
@media (max-width: 480px) {
  .dlc-modal {
    padding: 24px 20px !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 85vh !important;
    animation: dlcSlideUpMobile 0.3s ease !important;
  }

  .dlc-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .dlc-modal-title {
    font-size: 18px;
  }

  .dlc-field input {
    font-size: 16px; /* prevents iOS zoom */
  }
}

@keyframes dlcSlideUpMobile {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
