.dg-cec58ce7-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2d3748;
    max-width: 800px;
    margin: 0 auto;
}

.dg-cec58ce7-header {
    border-bottom: 2px solid #1b2a47;
    padding-bottom: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.dg-cec58ce7-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", serif;
    color: #1b2a47;
}

.dg-cec58ce7-subtitle {
    margin: 0;
    font-size: 14px;
    color: #718096;
    font-style: italic;
}

/* Steps Progress Bar */
.dg-cec58ce7-steps-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.dg-cec58ce7-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    padding-bottom: 12px;
    border-bottom: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dg-cec58ce7-step.active {
    color: #1b2a47;
    border-color: #1b2a47;
}

.dg-cec58ce7-step .step-num {
    background: #e2e8f0;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 12px;
}

.dg-cec58ce7-step.active .step-num {
    background: #1b2a47;
}

.dg-cec58ce7-step .step-label {
    font-weight: 600;
}

/* Form Steps Layout */
.dg-cec58ce7-form-step {
    display: none;
}

.dg-cec58ce7-form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.dg-cec58ce7-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1b2a47;
    margin-bottom: 24px;
    border-left: 4px solid #c5a059;
    padding-left: 12px;
}

/* Party Container Box */
.dg-cec58ce7-party-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.dg-cec58ce7-party-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1b2a47;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs & Styling */
.dg-cec58ce7-field-group {
    margin-bottom: 20px;
}

.dg-cec58ce7-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f7fafc;
    color: #2d3748;
}

.dg-cec58ce7-field-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .dg-cec58ce7-field-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.dg-cec58ce7-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.dg-cec58ce7-field-group input,
.dg-cec58ce7-field-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #2d3748;
    font-family: inherit;
    transition: border-color 0.2s;
}

.dg-cec58ce7-field-group input:focus,
.dg-cec58ce7-field-group textarea:focus {
    border-color: #1b2a47;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 42, 71, 0.1);
}

.dg-cec58ce7-clauses-wrap {
    background: #f7fafc;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 24px;
    margin-bottom: 24px;
}

.dg-cec58ce7-clauses-wrap h4 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #1b2a47;
}

.dg-cec58ce7-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.dg-cec58ce7-checkbox-group:last-child {
    margin-bottom: 0;
}

.dg-cec58ce7-checkbox-group input {
    margin-right: 10px;
    width: auto !important;
}

.dg-cec58ce7-checkbox-group label {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 0;
}

/* Actions & Buttons */
.dg-cec58ce7-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    margin-top: 32px;
}

.dg-cec58ce7-btn-next,
.dg-cec58ce7-btn-submit {
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: opacity 0.2s;
}

.dg-cec58ce7-btn-next {
    background-color: #1b2a47;
}

.dg-cec58ce7-btn-submit {
    background-color: #c5a059;
}

.dg-cec58ce7-btn-prev {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.dg-cec58ce7-btn-restart {
    background: #e2e8f0;
    border: none;
    color: #4a5568;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.dg-cec58ce7-btn-next:hover,
.dg-cec58ce7-btn-submit:hover,
.dg-cec58ce7-btn-prev:hover {
    opacity: 0.9;
}

/* Legal Paper Preview Styling */
.dg-cec58ce7-preview-actions-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.dg-cec58ce7-btn-action {
    background: #f7fafc;
    border: 1px solid #1b2a47;
    color: #1b2a47;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.dg-cec58ce7-btn-action:hover {
    background: #1b2a47;
    color: #fff;
}

.dg-cec58ce7-legal-paper {
    background: #fffcf7; /* Warm creamy paper background */
    border: 1px solid #e8dfd0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 40px;
    border-radius: 4px;
    min-height: 500px;
    max-height: 700px;
    overflow-y: auto;
    box-sizing: border-box;
}

.dg-cec58ce7-doc-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.8;
    color: #1a202c;
    text-align: justify;
}

/* Internal Document Styling Elements */
.legal-doc-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #1b2a47;
}

.legal-doc-sec {
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #1b2a47;
}

.legal-doc-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    border-top: 1px dashed #cbd5e0;
    padding-top: 24px;
}

@media (max-width: 500px) {
    .legal-doc-signatures {
        flex-direction: column;
        gap: 20px;
    }
}
