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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.dgfs-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;
}

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

/* Browser-draft restore banner */
.dgfs-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;
}

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

.dgfs-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;
}

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

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

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

/* Save & continue later */
.dgfs-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;
}

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

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

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

/* Editorial interview */
.dgfs-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;
}

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

/* Ranking category checkboxes */
.dgfs-checkgroup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.25rem;
    padding: 0.25rem 0;
}

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

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

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

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

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

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

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

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

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

.dgfs-field input[type="text"],
.dgfs-field input[type="tel"],
.dgfs-field input[type="email"],
.dgfs-field input[type="url"],
.dgfs-field input[type="number"],
.dgfs-field input[type="month"],
.dgfs-field textarea,
.dgfs-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;
}

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

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

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

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

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

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

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

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

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

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

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

.dgfs-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;
}

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

.dgfs-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;
}

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

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

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

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

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

.dgfs-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;
}

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

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

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

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

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

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

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

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

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

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