/* ===============================
   Affiliate Modal - Clean Version
   =============================== */

.affiliate-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999 !important;
  justify-content: center;
  align-items: center;
  font-family: var(--vl-fonts-figtree);
  overflow-x: hidden;
}

/* Modal Box */
.affiliate-modal {
  background-color: var(--vl-white);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  overflow: hidden;
  margin: 0 auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.affiliate-modal-header {
  background: var(--vl-gradient-1);
  color: var(--vl-white);
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
}

.affiliate-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.affiliate-modal-close {
  background: none;
  border: none;
  color: var(--vl-white);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.affiliate-modal-close:hover {
  transform: scale(1.2);
}

/* Body */
.affiliate-modal-body {
  padding: 20px 25px;
  overflow-x: hidden;
}

/* Form Layout */
.affiliate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.affiliate-form-group {
  flex: 1 1 calc(50% - 7.5px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.affiliate-form-group.full {
  flex: 1 1 100%;
}

.affiliate-form-label {
  display: none;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--vl-text-1);
  font-size: 14px;
}

/* Input Fields */
.affiliate-form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--vl-gray-300, #ccc);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--vl-white);
  color: var(--vl-text-1);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.affiliate-form-control::placeholder {
  color: var(--vl-text-3, #777);
}

.affiliate-form-control:focus {
  border-color: var(--vl-theme-color);
  box-shadow: 0 0 0 1px var(--vl-theme-color);
  outline: none;
}

/* Textarea */
.affiliate-form-textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--vl-gray-300, #ccc);
  background-color: var(--vl-white);
  color: var(--vl-text-1);
  box-sizing: border-box;
}

/* Submit Button */
.affiliate-form-submit {
  background: var(--vl-gradient-1);
  color: var(--vl-white);
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.affiliate-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 28, 188, 0.4);
}

/* Success Message */
.affiliate-success-message {
  display: none;
  text-align: center;
  padding: 30px 15px;
  color: #28a745;
}

.affiliate-success-icon {
  font-size: 50px;
  margin-bottom: 10px;
}

.affiliate-success-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  html,
  body {
    /* overflow-x: hidden !important; */
  }

  .affiliate-modal {
    width: 95%;
    margin: 10px auto;
    box-sizing: border-box;
  }

  .affiliate-modal-body {
    padding: 16px;
  }

  .affiliate-form {
    gap: 10px;
  }

  .affiliate-form-group {
    flex: 1 1 100%;
    margin-bottom: 10px;
  }

  .affiliate-form-group:last-of-type {
    margin-bottom: 0;
  }

  .affiliate-modal-header {
    padding: 12px 18px;
  }
}
