/* ============================================
   EDITORIAL GENERAL APPLICATION SECTION
   Dark Blue Background (#3D405B)
   ============================================ */

.general-application-editorial {
  padding: 120px 60px;
  background: #3D405B;
  position: relative;
  overflow: hidden;
  border-top: 2px solid #80B29B;
  border-bottom: 2px solid #80B29B;
}

.general-application-editorial .container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
}

/* Section Header */
.application-header {
  text-align: left;
  max-width: 800px;
  margin-bottom: 80px;
}

.section-issue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.issue-vol  { color: #80B29B; }
.issue-divider { color: #DF7A5F; }
.issue-section { color: #F3F1DE; }

.header-title {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  color: #DF7A5F;
  line-height: 0.9;
  letter-spacing: -3px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  margin-bottom: 40px;
}

.header-divider {
  width: 140px;
  height: 4px;
  background: #F2CC8F;
  margin-bottom: 35px;
}

.application-header-description {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  line-height: 1.6;
  color: #F3F1DE !important;
  font-weight: 400;
}

/* Grid */
.application-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: start;
}

/* Main Card */
.main-app-card {
  background: #F3F1DE;
  padding: 60px 50px;
  border: 2px solid #1C1C1C;
  position: relative;
  transition: all 0.3s ease;
}

.main-app-card:hover {
  box-shadow: 8px 8px 0 #1C1C1C;
  transform: translate(-4px, -4px);
}

.card-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  color: #DF7A5F;
  margin-bottom: 25px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
}

.card-description {
  font-size: 18px;
  line-height: 1.7;
  color: #6B6B6B;
  font-family: Arial, sans-serif;
  margin-bottom: 40px;
}

/* Benefits */
.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 45px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
}

.benefits-list li:last-child { border-bottom: none; }

.benefit-icon {
  width: 24px;
  height: 24px;
  background: #F2CC8F;
  color: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-text {
  font-size: 16px;
  color: #1C1C1C;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* CTA Button */
.app-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #DF7A5F;
  color: #FFFEF3;
  padding: 22px 50px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #3D405B;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-cta-btn:hover { background: #3D405B; border-color: #3D405B; }
.app-cta-btn i { font-size: 20px; transition: transform 0.3s ease; }
.app-cta-btn:hover i { transform: translateX(5px); }

.app-note {
  font-size: 14px;
  color: #6B6B6B;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
}

/* Features Stack */
.features-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card {
  background: rgba(243, 241, 222, 0.1);
  padding: 35px 30px;
  border: 2px solid rgba(243, 241, 222, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 25px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(243, 241, 222, 0.15);
  border-color: #F2CC8F;
  box-shadow: 6px 6px 0 rgba(161, 147, 83, 0.3);
  transform: translate(-3px, -3px);
}

.feature-number {
  width: 50px;
  height: 50px;
  background: #F3F1DE;
  color: #3D405B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
}

.feature-content { flex: 1; }

.feature-title {
  font-size: 18px;
  font-weight: 900;
  color: #DF7A5F !important;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-text {
  font-size: 15px;
  color: rgba(243, 241, 222, 0.75) !important;
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* ========== MODAL ========== */

.modal,
.modal-dialog,
.modal-content,
.modal-body,
.form-navigation,
.btn-nav,
#generalNextStepBtn,
#generalPrevStepBtn,
#generalSubmitAppBtn {
  pointer-events: auto !important;
}

/* ✅ Submission overlay must sit above Bootstrap modal (z-index 1055) */
.submission-overlay { z-index: 9999 !important; }

.modal-editorial {
  border: 2px solid #1C1C1C;
  box-shadow: 12px 12px 0 rgba(28, 28, 28, 0.2);
}

.modal-editorial .modal-header {
  background: #3D405B;
  border-bottom: 2px solid #80B29B;
  padding: 25px 30px;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
  color: #F3F1DE;
  margin: 0;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-close-editorial {
  background: transparent;
  border: 2px solid #F3F1DE;
  color: #F3F1DE;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close-editorial:hover {
  background: #DF7A5F;
  border-color: #DF7A5F;
  color: #FFFEF3;
}

/* Progress Bar */
.application-progress {
  padding: 30px 30px 25px;
  background: #F3F1DE;
  border-bottom: 2px solid #1C1C1C;
}

.progress-bar-editorial {
  height: 4px;
  background: rgba(28, 28, 28, 0.15);
  margin-bottom: 20px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #80B29B;
  width: 20%;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-step {
  width: 40px;
  height: 40px;
  background: rgba(28, 28, 28, 0.1);
  color: #6B6B6B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  border: 2px solid transparent;
}

.progress-step.active {
  background: #80B29B;
  color: #1C1C1C;
  border-color: #1C1C1C;
}

.progress-step.completed {
  background: #3D405B;
  color: #F3F1DE;
}

/* Modal Body */
.modal-editorial .modal-body {
  padding: 40px 30px;
  background: #FFFEF3;
}

/* Step Header */
.step-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid #1C1C1C;
}

.step-number {
  width: 60px;
  height: 60px;
  background: #1C1C1C;
  color: #80B29B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  font-family: Arial, sans-serif;
}

.step-title {
  font-size: 24px;
  font-weight: 900;
  color: #1C1C1C;
  margin: 0;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Form Sections */
.form-section { margin-bottom: 40px; }

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title i { color: #80B29B; font-size: 18px; }

.form-group-editorial { margin-bottom: 25px; }

.form-label-editorial {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1C1C1C;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.required { color: #DF7A5F; margin-left: 3px; }

.form-control-editorial {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: #1C1C1C;
  background: #F3F1DE;
  border: 2px solid rgba(28, 28, 28, 0.15);
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
}

.form-control-editorial:focus {
  outline: none;
  border-color: #80B29B;
  background: #FFFFFF;
}

.form-control-editorial::placeholder { color: rgba(28, 28, 28, 0.4); }

.form-hint {
  display: block;
  font-size: 13px;
  color: #6B6B6B;
  margin-top: 8px;
  font-family: Arial, sans-serif;
}

/* File Upload */
.file-upload-wrapper { position: relative; }

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background: #F3F1DE;
  border: 2px dashed rgba(28, 28, 28, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0;
  min-height: 160px;
  position: relative;
  z-index: 1;
}

.file-label:hover {
  border-color: #80B29B;
  background: rgba(128, 178, 155, 0.05);
}

.file-label i { font-size: 40px; color: #80B29B; margin-bottom: 12px; }
.file-text { font-size: 16px; color: #6B6B6B; font-family: Arial, sans-serif; }

.file-input.is-invalid + .file-label {
  border-color: #dc3545;
  background: rgba(220, 53, 53, 0.06);
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.file-label.has-file {
  border-color: #80B29B;
  background: rgba(128, 178, 155, 0.08);
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 35px;
  border-top: 2px solid #1C1C1C;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 35px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #1C1C1C;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-prev { background: transparent; color: #1C1C1C; }
.btn-prev:hover { background: #1C1C1C; color: #FFFEF3; }
.btn-next { background: #80B29B; color: #1C1C1C; margin-left: auto; }
.btn-next:hover { background: #6A9B84; }
.btn-submit { background: #DF7A5F; color: #FFFEF3; border-color: #DF7A5F; margin-left: auto; }
.btn-submit:hover { background: #C66850; border-color: #C66850; }

/* reCAPTCHA */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 35px 0 25px;
}

.recaptcha-error {
  color: #DF7A5F;
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 991px) {
  .general-application-editorial { padding: 80px 40px; }
  .application-header { margin-bottom: 60px; }
  .header-title { font-size: 64px; }
  .application-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .general-application-editorial { padding: 60px 30px; }
  .header-title { font-size: 48px; }
  .main-app-card { padding: 40px 30px; }
  .card-title { font-size: 32px; }
  .features-stack { gap: 20px; }
  .feature-card { padding: 28px 24px; }
  .modal-editorial .modal-header { padding: 20px; }
  .modal-title { font-size: 20px; }
  .modal-editorial .modal-body { padding: 30px 20px; }
  .step-title { font-size: 20px; }
  .form-navigation { flex-direction: column; }
  .btn-nav { width: 100%; justify-content: center; }
  .btn-next, .btn-submit { margin-left: 0; }
}

@media (max-width: 576px) {
  .general-application-editorial { padding: 50px 20px; }
  .header-title { font-size: 42px; letter-spacing: -2px; }
  .main-app-card { padding: 35px 25px; }
  .card-title { font-size: 28px; }
  .card-description { font-size: 16px; }
}

/* ========== DARK MODE ========== */

body.dark-mode .general-application-editorial {
  background: linear-gradient(180deg, #1C1C1C 0%, #2A2C3E 100%) !important;
  border-color: #80B29B;
}

body.dark-mode .header-title { color: #80B29B !important; }
body.dark-mode .header-divider { background: #80B29B !important; }
body.dark-mode .application-header-description { color: rgba(243, 241, 222, 0.85) !important; }

body.dark-mode .main-app-card {
  background: linear-gradient(180deg, #1C1C1C 0%, #2A2C3E 100%) !important;
  border-color: #80B29B;
}

body.dark-mode .main-app-card:hover { box-shadow: 8px 8px 0 #80B29B; }
body.dark-mode .card-title { color: #80B29B !important; }
body.dark-mode .card-description { color: rgba(243, 241, 222, 0.85) !important; }
body.dark-mode .benefit-icon { background: #6A9B84 !important; color: #F3F1DE !important; }
body.dark-mode .benefit-text { color: #F3F1DE !important; }
body.dark-mode .app-cta-btn { background: #80B29B !important; color: #1C1C1C !important; border-color: #80B29B !important; }
body.dark-mode .app-cta-btn:hover { background: #6A9B84 !important; border-color: #6A9B84 !important; }
body.dark-mode .app-note { color: rgba(243, 241, 222, 0.6) !important; }
body.dark-mode .feature-card { background: rgba(243, 241, 222, 0.08); border-color: rgba(243, 241, 222, 0.15); }
body.dark-mode .feature-card:hover { background: rgba(243, 241, 222, 0.12); border-color: #80B29B; }
body.dark-mode .feature-title { color: #80B29B !important; }
body.dark-mode .feature-text { color: rgba(243, 241, 222, 0.75) !important; }

/* ========== SUBMISSION OVERLAY ========== */

.submission-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submission-overlay.show {
  opacity: 1;
}

.submission-modal {
  background: #FFFEF3;
  border: 2px solid #1C1C1C;
  box-shadow: 12px 12px 0 rgba(28, 28, 28, 0.2);
  padding: 50px 40px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.submission-header h3 {
  font-size: 22px;
  font-weight: 900;
  color: #1C1C1C;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.submission-header p {
  font-size: 15px;
  color: #6B6B6B;
  font-family: Arial, sans-serif;
  margin-bottom: 0;
}

.submission-progress {
  margin: 30px 0 20px;
}

.submission-progress .progress-bar {
  height: 6px;
  background: rgba(28, 28, 28, 0.12);
  margin-bottom: 10px;
  position: relative;
}

.submission-progress .progress-fill {
  height: 100%;
  background: #80B29B;
  width: 0%;
  transition: width 0.5s ease;
}

.submission-progress .progress-text {
  font-size: 13px;
  font-weight: 700;
  color: #80B29B;
  font-family: Arial, sans-serif;
  text-align: right;
}

.submission-status {
  font-size: 14px;
  color: #6B6B6B;
  font-family: Arial, sans-serif;
  margin-bottom: 30px;
  min-height: 20px;
}

/* Steps */
.submission-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.submission-steps .step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(28, 28, 28, 0.04);
  border: 2px solid rgba(28, 28, 28, 0.1);
  transition: all 0.3s ease;
}

.submission-steps .step.active {
  border-color: #80B29B;
  background: rgba(128, 178, 155, 0.08);
}

.submission-steps .step.completed {
  border-color: #3D405B;
  background: rgba(61, 64, 91, 0.06);
}

.step-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.step-number {
  width: 36px;
  height: 36px;
  background: rgba(28, 28, 28, 0.1);
  color: #6B6B6B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #80B29B;
  color: #1C1C1C;
}

.step.completed .step-number {
  background: #3D405B;
  color: #F3F1DE;
}

.step-checkmark {
  position: absolute;
  inset: 0;
  background: #80B29B;
  color: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.step.completed .step-checkmark {
  opacity: 1;
  transform: scale(1);
}

.step-text {
  font-size: 15px;
  font-weight: 700;
  color: #1C1C1C;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Success State */
.submission-success {
  text-align: center;
  padding: 20px 0;
}

.submission-success .success-icon {
  font-size: 64px;
  color: #80B29B;
  margin-bottom: 20px;
  line-height: 1;
}

.submission-success h4 {
  font-size: 22px;
  font-weight: 900;
  color: #1C1C1C;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.submission-success p {
  font-size: 15px;
  color: #6B6B6B;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Error State */
.submission-error {
  text-align: center;
  padding: 20px 0;
}

.submission-error .error-icon {
  font-size: 64px;
  color: #DF7A5F;
  margin-bottom: 20px;
  line-height: 1;
}

.submission-error h4 {
  font-size: 22px;
  font-weight: 900;
  color: #1C1C1C;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.submission-error p {
  font-size: 15px;
  color: #6B6B6B;
  font-family: Arial, sans-serif;
  margin-bottom: 25px;
}