/* Account & data deletion page styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

/* Page shell */
.del-content {
    max-width: 820px;
    margin: 2.5rem auto 4rem;
    padding: 0 1rem;
}

.del-content h1 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.del-lead {
    color: #5b6472;
    margin-bottom: 2rem;
}

/* Stacked explanation cards */
.del-card {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(20, 40, 80, .05);
}

.del-card + .del-card {
    margin-top: 1.25rem;
}

.del-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .85rem;
}

.del-list {
    margin: 0;
    padding-left: 1.2rem;
}

.del-list li {
    margin-bottom: .45rem;
}

/* "This cannot be undone" callout */
.del-warn {
    background: #fff8ec;
    border-left: 4px solid #f59e0b;
    padding: .9rem 1rem;
    border-radius: 8px;
    color: #533f14;
    font-size: .94rem;
}

/* Request form */
.del-form label {
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: .3rem;
}

.del-form .form-text {
    font-size: .85rem;
}

/* The account email is filled from the session token and not editable. */
.del-readonly {
    background: #f1f5f9;
}

.btn-del {
    background: #dc2626;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .65rem 1.4rem;
    border-radius: 10px;
}

.btn-del:hover:not(:disabled) {
    background: #b91c1c;
    color: #fff;
}

.btn-del:disabled {
    opacity: .6;
}

/* Shown by the script only after a submit attempt. */
#delResult {
    display: none;
    margin-top: 1.1rem;
}

/* Typed-DELETE confirmation dialog */
.del-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1080;
}

/* Beats the `display: flex` above, so the `hidden` attribute actually hides it. */
.del-modal[hidden] {
    display: none;
}

.del-modal__card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
}

.del-modal__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.del-modal__label {
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: .3rem;
    display: block;
}
