body.page-template-page-apply-finance {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    position: relative;
  }

  /* ===== MAIN CONTAINER ===== */
  .finance-apply-wrapper {
    display: flex;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 80px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* ===== FORM CONTAINER ===== */
  .form-container-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .form-container {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* ===== FORM HEADER ===== */
  .form-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
  }

  .form-header span {
    font-weight: bold;
    color: #333;
    font-size: 18px;
    padding-bottom: 5px;
  }

  .form-header span.active {
    border-bottom: 2px solid #BF8F3F;
  }

  /* ===== PROGRESS BAR ===== */
  .progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
  }

  .progress {
    height: 100%;
    width: 50%;
    background: #BF8F3F;
    transition: width 0.4s;
  }

  /* ===== FORM GROUPS ===== */
  .form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }

  .form-group.half > * {
  flex: 1;
  min-width: 0; 
}

  .form-group input,
  .form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    transition: border 0.3s;
  }

  .form-group input:focus,
  .form-group select:focus {
    border-color: #BF8F3F;
    outline: none;
  }

  /* ===== BUTTONS ===== */
  .form-navigation {
    margin-top: auto;
    padding-top: 20px;
  }

  .btn {
    background-color: #BF8F3F;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    text-align: center;
    width: 100%;
    display: block;
  }

  .btn:hover {
    background-color: #a67832;
  }

  /* ===== HELP SECTION ===== */
  .help-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  }

  .help-title {
    font-size: 26px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
  }

  .help-content {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
  }

  .contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 20px;
    color: #BF8F3F;
    font-weight: 700;
  }

  .call-button {
    background-color: #BF8F3F;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    font-weight: 600;
    transition: background 0.3s;
    display: block;
  }

  .call-button:hover {
    background-color: #a67832;
  }

  /* ===== MODAL STYLES ===== */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: modalFade 0.3s ease-out;
  }

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

  .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #777;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-modal:hover {
    color: #333;
  }

  .modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }

  .modal-header h2 {
    color: #333;
    margin: 0;
  }

  /* ===== STEP 2 FORM STYLES ===== */
  .step2-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .form-row {
    grid-column: span 2;
  }

  .form-row.half {
    grid-column: span 1;
  }

  .step2-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
  }

  .step2-form input,
  .step2-form select,
  .step2-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
  }

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

  .step2-form .full-row {
    grid-column: span 2;
  }

  .modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    grid-column: span 2;
  }

  .modal-actions .btn {
    flex: 1;
  }

  .btn-outline {
    background: transparent;
    border: 2px solid #BF8F3F;
    color: #BF8F3F;
  }

  .btn-outline:hover {
    background: rgba(191, 143, 63, 0.1);
  }

  /* ===== DOCUMENT UPLOAD STYLES ===== */
  .document-upload-section {
    grid-column: span 2;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
  }

  .upload-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
  }

  .upload-instructions {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .file-drop-area {
    border: 2px dashed #BF8F3F;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #fff;
  }

  .file-drop-area:hover, .file-drop-area.dragover {
    background: rgba(191, 143, 63, 0.05);
  }

  .file-drop-area i {
    font-size: 40px;
    color: #BF8F3F;
    margin-bottom: 15px;
  }

  .file-input {
    display: none;
  }

  .file-msg {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
  }

  .browse-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #BF8F3F;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .browse-btn:hover {
    background: #a67832;
  }

  .file-list {
    margin-top: 20px;
  }

  .file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .file-icon {
    margin-right: 10px;
    color: #BF8F3F;
  }

  .file-info {
    flex: 1;
  }

  .file-name {
    font-weight: 500;
    margin-bottom: 5px;
  }

  .file-size {
    color: #777;
    font-size: 12px;
  }

  .file-remove {
    color: #ff6b6b;
    cursor: pointer;
    padding: 5px;
  }

  /* ===== DIALOG STYLES ===== */
  .dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
  }

  .dialog-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    padding: 30px;
    text-align: center;
    position: relative;
    animation: dialogScale 0.3s ease-out;
  }

  @keyframes dialogScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .dialog-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
  }

  .dialog-icon {
    font-size: 60px;
    margin-bottom: 20px;
  }

  .success-icon {
    color: #4CAF50;
  }

  .error-icon {
    color: #F44336;
  }

  .warning-icon {
    color: #FFC107;
  }

  .dialog-message {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .dialog-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
  }

  .dialog-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    min-width: 100px;
    transition: all 0.3s;
  }

  .dialog-btn.primary {
    background: #BF8F3F;
    color: white;
    border: none;
  }

  .dialog-btn.primary:hover {
    background: #a67832;
  }

  .dialog-btn.secondary {
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #333;
  }

  .dialog-btn.secondary:hover {
    background: #e5e5e5;
  }

  /* ===== NOTIFICATION STYLES ===== */
  .notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: translateX(150%);
    transition: transform 0.4s ease-out;
  }

  .notification.show {
    transform: translateX(0);
  }

  .notification.success {
    background: #4CAF50;
  }

  .notification.error {
    background: #F44336;
  }

  .notification.warning {
    background: #FFC107;
    color: #333;
  }

  .notification i {
    font-size: 20px;
  }

  /* ===== COMPRESSION STATUS ===== */
  .compression-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
  }

  .progress-container {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
  }

  .compression-progress {
    height: 100%;
    background: #BF8F3F;
    width: 0;
    transition: width 0.3s ease;
  }

  .status-text {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
  }

  /* ===== RESPONSIVE ADJUSTMENTS ===== */
  @media (max-width: 992px) {
    .finance-apply-wrapper {
      gap: 20px;
    }
    
    .form-container,
    .help-container {
      padding: 30px;
    }
  }

  @media (max-width: 768px) {
    .finance-apply-wrapper {
      flex-direction: column;
      margin: 40px auto;
      padding: 0 15px;
    }
    
    .form-group {
      flex-wrap: wrap;
    }
    
    .form-group.half > * {
      width: 100%;
    }
    
    .form-header span {
      font-size: 16px;
    }
    
    .help-title {
      font-size: 22px;
    }
    
    .contact-info {
      font-size: 18px;
    }
    
    .step2-form {
      grid-template-columns: 1fr;
    }
    
    .form-row.half,
    .full-row {
      grid-column: span 1;
    }
  }

  @media (max-width: 480px) {
    .modal-actions,
    .dialog-actions {
      flex-direction: column;
    }
    
    .btn, .dialog-btn {
      width: 100%;
    }
    
    .notification {
      left: 10px;
      right: 10px;
      top: 10px;
    }
  }


  /* ADICIONAR ESTAS REGRAS AO FINAL DO ARQUIVO */

/* ===== LAYOUT OPTIMIZATION ===== */
.step2-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    width: 100%;
    margin-bottom: 15px;
}

.form-row.half {
    width: 100%;
}

/* Grid layout para desktop */
@media (min-width: 769px) {
    .step2-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .form-row.half {
        grid-column: span 1;
    }
    
    .form-row.full-row {
        grid-column: span 2;
    }
}

/* Melhorar espaçamento das seções */
.step2-form h3 {
    grid-column: span 2;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #BF8F3F;
    color: #333;
    font-size: 18px;
}

/* Ajustar containers principais */
.form-container {
    max-height: none;
    overflow: visible;
}

.modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

/* Melhorar visual dos grupos de formulário */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 481px) {
    .form-group.half {
        flex-direction: row;
    }
    
    .form-group.half > * {
        width: 50%;
    }
}

/* Ajustes de responsividade melhorados */
@media (max-width: 768px) {
    .step2-form {
        grid-template-columns: 1fr;
    }
    
    .form-row.half,
    .form-row.full-row {
        grid-column: span 1;
    }
    
    .step2-form h3 {
        grid-column: span 1;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .form-container,
    .help-container {
        padding: 20px;
    }
}

/* Melhorar visual dos inputs */
.step2-form input,
.step2-form select,
.step2-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.step2-form input:focus,
.step2-form select:focus,
.step2-form textarea:focus {
    border-color: #BF8F3F;
    outline: none;
    box-shadow: 0 0 0 2px rgba(191, 143, 63, 0.1);
}

/* Ajustar botões do modal */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px 0 0 0;
    border-top: 1px solid #eee;
}

@media (max-width: 480px) {
    .modal-actions {
        flex-direction: column;
    }
}