/* =========================================================
   SPONSORSHIP FORM STYLES
   Zen-inspired, responsive form design
   ========================================================= */

.sponsorship-form-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.sponsorship-form-wrapper {
  background: var(--card-bg, rgba(255, 255, 255, 0.95));
  border: 1px solid var(--card-bd, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
  padding: clamp(24px, 4vw, 48px);
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.form-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text, #1e293b);
  margin: 0 0 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-description {
  font-size: 16px;
  color: var(--muted, #64748b);
  margin: 0;
  line-height: 1.6;
}

/* Form Sections */
.form-section {
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(139, 92, 246, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.section-title {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--text, #1e293b);
  margin: 0 0 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #8b5cf6, #6366f1);
  border-radius: 2px;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text, #334155);
  margin-bottom: 8px;
}

.required {
  color: #ef4444;
  font-weight: bold;
}

.form-help {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 4px 0 8px;
  font-style: italic;
}

/* Form Inputs */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text, #1e293b);
  background: var(--card-bg, #ffffff);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted, #94a3b8);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5cf6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* File Input */
.form-file {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  color: var(--text, #1e293b);
  background: var(--card-bg, #ffffff);
  border: 2px dashed rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-file:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
}

.file-preview {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.preview-item {
  padding: 12px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
}

.preview-item video,
.preview-item img {
  border-radius: 6px;
  margin-bottom: 8px;
}

.preview-filename {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0;
  word-break: break-word;
}

/* Checkbox Groups */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.checkbox-label:hover {
  background: rgba(139, 92, 246, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #8b5cf6;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 15px;
  color: var(--text, #334155);
  line-height: 1.5;
}

.checkbox-text a {
  color: #8b5cf6;
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: #6366f1;
}

/* Form Actions */
.form-actions {
  margin-top: 32px;
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Messages */
.form-message {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

/* Night Mode */
body.balo-night .sponsorship-form-wrapper {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(139, 92, 246, 0.2);
}

body.balo-night .form-title {
  color: #e0e7ff;
}

body.balo-night .section-title,
body.balo-night .form-label,
body.balo-night .checkbox-text {
  color: #e0e7ff;
}

body.balo-night .form-input,
body.balo-night .form-textarea,
body.balo-night .form-select,
body.balo-night .form-file {
  background: rgba(15, 23, 42, 0.8);
  color: #e0e7ff;
  border-color: rgba(139, 92, 246, 0.3);
}

body.balo-night .form-input::placeholder,
body.balo-night .form-textarea::placeholder {
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .sponsorship-form-container {
    padding: 16px;
    margin: 20px auto;
  }

  .sponsorship-form-wrapper {
    padding: 20px;
  }

  .form-section {
    padding: 16px;
  }

  .btn-submit {
    width: 100%;
    padding: 14px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-input,
  .form-textarea,
  .form-select,
  .form-file,
  .btn-submit,
  .checkbox-label {
    transition: none;
  }

  .btn-loader {
    animation: none;
  }
}
