.dgas-form-wrap {
    max-width: 760px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #212121;
}

/* Header */
.dgas-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dgas-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.75rem;
}

.dgas-divider {
    border: none;
    border-top: 2.5px solid #C77DB3;
    margin: 0 0 0.75rem 0;
}

.dgas-page-title {
    color: #9B2D86;
    font-size: 1.6625rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.dgas-form-header p {
    color: #646464;
    font-size: 1.0125rem;
    margin: 0;
}

/* Rules box */
.dgas-rules {
    background: #faf4f9;
    border: 1.5px dashed #C77DB3;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.dgas-rules strong {
    color: #9B2D86;
}

.dgas-rules ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.dgas-rules li {
    font-size: 0.9375rem;
    color: #555;
    margin-bottom: 0.3rem;
}

/* Notices */
.dgas-notice {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.dgas-success {
    background: #f3e5f5;
    color: #6a1b6a;
    border: 1px solid #ce93d8;
}

.dgas-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Submit-again box */
.dgas-again {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.dgas-again p {
    color: #646464;
    margin: 0 0 1rem;
}

.dgas-again-btn {
    display: inline-block;
    background: #C77DB3;
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.dgas-again-btn:hover {
    background: #b0699e;
    color: #fff;
}

/* Resume-link box */
.dgas-resume-box {
    background: #f1f8f1;
    border: 1px solid #b6d9b6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.dgas-resume-box strong {
    display: block;
    color: #1b5e20;
    margin-bottom: 0.5rem;
}

.dgas-resume-box input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #b6d9b6;
    border-radius: 5px;
    font-size: 0.9125rem;
    font-family: monospace;
    box-sizing: border-box;
    background: #fff;
    color: #212121;
}

.dgas-resume-box .dgas-hint {
    margin: 0.5rem 0 0;
}

/* Browser-draft restore banner */
.dgas-restore-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fdf6ec;
    border: 1px solid #e8cfa0;
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9625rem;
    color: #8a5a00;
}

.dgas-restore-actions {
    display: flex;
    gap: 0.5rem;
}

.dgas-restore-btn {
    background: #9B2D86;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.9125rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

.dgas-restore-btn:hover {
    background: #7d2169;
}

.dgas-discard-btn {
    background: none;
    border: 1px solid #ddd;
    color: #999;
    font-size: 0.9125rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.dgas-discard-btn:hover {
    color: #c62828;
    border-color: #ef9a9a;
}

/* Save & continue later */
.dgas-save-btn {
    background: #fff;
    border: 1.5px solid #C77DB3;
    color: #9B2D86;
    font-weight: 600;
    font-size: 0.9625rem;
    padding: 0.6rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: background 0.2s;
}

.dgas-save-btn:hover {
    background: #faf4f9;
}

.dgas-save-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.dgas-save-hint {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Editorial interview */
.dgas-interview-btn {
    display: inline-block;
    background: #9B2D86;
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.0125rem;
    text-decoration: none;
    transition: background 0.2s;
}

.dgas-interview-btn:hover {
    background: #7d2169;
    color: #fff;
}

/* Checkbox rows (public-reference confirmation) */
.dgas-checkgroup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.25rem;
    padding: 0.25rem 0;
}

.dgas-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9625rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
}

.dgas-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .dgas-checkgroup {
        grid-template-columns: 1fr;
    }
}

/* Honeypot */
.dgas-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px;
    overflow: hidden;
}

/* Fieldsets */
.dgas-form fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.dgas-form legend {
    color: #9B2D86;
    font-weight: 700;
    font-size: 1.1625rem;
    padding: 0 0.5rem;
}

/* Fields */
.dgas-field {
    margin-bottom: 1rem;
}

.dgas-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
    color: #333;
}

.dgas-field .required {
    color: #C77DB3;
}

.dgas-field input[type="text"],
.dgas-field input[type="tel"],
.dgas-field input[type="email"],
.dgas-field input[type="url"],
.dgas-field input[type="number"],
.dgas-field input[type="month"],
.dgas-field textarea,
.dgas-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.0125rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
    color: #212121;
}

.dgas-field input:focus,
.dgas-field textarea:focus,
.dgas-field select:focus {
    outline: none;
    border-color: #C77DB3;
    box-shadow: 0 0 0 3px rgba(199, 125, 179, 0.15);
}

/* Rows */
.dgas-row {
    display: flex;
    gap: 1rem;
}

.dgas-row .dgas-field {
    flex: 1;
}

.dgas-row-thirds .dgas-field,
.dgas-row-quarters .dgas-field {
    flex: 1;
}

/* Labels of different lengths wrap differently; keep the inputs level. */
.dgas-row-quarters .dgas-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dgas-field-small {
    max-width: 240px;
}

/* Hint text */
.dgas-hint {
    font-size: 0.9125rem;
    color: #888;
    margin-bottom: 0.75rem;
}

/* Repeatable rows */
.dgas-repeat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dgas-repeat-row {
    border: 1px solid #e6d3e2;
    border-left: 4px solid #C77DB3;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    background: #fdfafc;
}

.dgas-repeat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dgas-repeat-title {
    font-weight: 700;
    color: #9B2D86;
    font-size: 1.0125rem;
}

.dgas-remove-btn {
    background: none;
    border: 1px solid #ddd;
    color: #999;
    font-size: 0.8625rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.dgas-remove-btn:hover {
    color: #c62828;
    border-color: #ef9a9a;
}

.dgas-add-btn {
    background: #fff;
    border: 1.5px dashed #C77DB3;
    color: #9B2D86;
    font-weight: 600;
    font-size: 0.9625rem;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.dgas-add-btn:hover {
    background: #faf4f9;
}

.dgas-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Declaration */
.dgas-declare {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9625rem;
    color: #444;
    cursor: pointer;
}

.dgas-declare input {
    margin-top: 0.2rem;
}

/* Submit */
.dgas-submit-wrap {
    text-align: center;
    margin-top: 1rem;
}

.dgas-submit {
    background: #C77DB3;
    color: #fff;
    border: none;
    padding: 0.85rem 3rem;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.dgas-submit:hover {
    background: #b0699e;
}

.dgas-submit:active {
    background: #9B2D86;
}

.dgas-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.dgas-submit-wrap .dgas-hint {
    margin-top: 0.6rem;
}

/* Responsive */
@media (max-width: 640px) {
    .dgas-row,
    .dgas-row-thirds,
    .dgas-row-quarters {
        flex-direction: column;
        gap: 0;
    }

    .dgas-field-small {
        max-width: 100%;
    }

    .dgas-form fieldset {
        padding: 1rem;
    }
}

/* Public-reference confirmation on each matter */
.dgas-public-row {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e6d3e2;
}

.dgas-public-row .dgas-check {
    font-weight: 600;
    color: #9B2D86;
}

/* Paste-a-list import for the practice team */
.dgas-paste-box {
    background: #faf4f9;
    border: 1px solid #e6d3e2;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.dgas-paste-box label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
    color: #333;
}

.dgas-paste-box textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9625rem;
    font-family: monospace;
    box-sizing: border-box;
    background: #fff;
    color: #212121;
}

.dgas-paste-box textarea:focus {
    outline: none;
    border-color: #C77DB3;
    box-shadow: 0 0 0 3px rgba(199, 125, 179, 0.15);
}

.dgas-paste-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.dgas-paste-status {
    font-size: 0.9125rem;
    color: #1b5e20;
}

/* Deadline lookup (practice area + jurisdiction) */
.dgas-deadline {
    background: #faf4f9;
    border: 1px solid #e6d3e2;
    border-radius: 6px;
    padding: 0.9rem 1.1rem;
    margin: 0.25rem 0 1rem;
    font-size: 0.9375rem;
}

.dgas-deadline-title {
    font-weight: 700;
    color: #9B2D86;
    margin: 0 0 0.5rem;
}

.dgas-deadline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dgas-deadline-table th,
.dgas-deadline-table td {
    text-align: left;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #eadfe7;
    vertical-align: top;
}

.dgas-deadline-table th {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dgas-deadline-note {
    color: #888;
    font-size: 0.85em;
}

.dgas-deadline-foot,
.dgas-deadline-none {
    margin: 0.6rem 0 0;
    color: #666;
    font-size: 0.875rem;
}

.dgas-deadline a {
    color: #9B2D86;
}

@media (max-width: 640px) {
    .dgas-deadline-table th:nth-child(2),
    .dgas-deadline-table td:nth-child(2) {
        display: none;
    }
}

/* "Submissions are entirely voluntary" notice */
.dgas-voluntary {
    background: #fff;
    border: 1.5px solid #C77DB3;
    border-left: 5px solid #9B2D86;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.dgas-voluntary strong {
    display: block;
    color: #9B2D86;
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
}

.dgas-voluntary p {
    margin: 0;
    font-size: 0.9875rem;
    line-height: 1.55;
    color: #333;
}
