/* Indeling van de formulierpagina's: inloggen, registreren, wachtwoord,
   account, abonnement en review. De onderdelen staan in components.css. */

.form-card > p, .form-card section > p { font-size: var(--fs-sm); }

/* Profiel */
.profile-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--r-md);
    background: var(--wash);
}

.profile-avatar {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--f-title);
    font-size: 1.6rem;
    font-weight: 700;
}

.profile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.profile-avatar img.visible { opacity: 1; }

.profile-details { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); min-width: min(14rem, 100%); }

.profile-name { font-weight: 700; color: var(--ink); }

/* Eigen reviews op de accountpagina */
.review-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    overflow-wrap: anywhere;
}

.review-card h3 { font-size: 1.15rem; }

.review-card-head,
.review-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
}

.review-card-foot { align-items: center; }

.review-card-stars { color: var(--umber); letter-spacing: 0.05em; }

.status-badge {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.status-badge.approved { background: var(--success-100); color: var(--success); }
.status-badge.pending { background: var(--amber-soft); color: var(--ink); }

.danger-zone {
    padding: var(--s-4);
    border-radius: var(--r-md);
    box-shadow: inset 0 0 0 1.5px var(--danger);
}

.danger-zone h2 { color: var(--danger); font-size: 1.3rem; }

/* Sterren bij het schrijven van een review (halve sterren) */
.rating-container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.stars { display: flex; gap: var(--space-1); border-radius: var(--r-sm); }

.star-container { position: relative; display: inline-block; width: 2.25rem; height: var(--tap); }

.star-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.star-half.left { left: 0; }
.star-half.right { right: 0; }

.star-svg {
    width: 2.25rem;
    height: var(--tap);
    max-width: none;
    fill: var(--line);
    transition: fill var(--dur-fast) ease;
}

.star-half.right .star-svg { transform: translateX(-50%); }

.star-half.selected .star-svg { fill: var(--umber); }

/* Account: één pagina met account, e-mailvoorkeuren en reviews (stap E). */
.account-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--rule);
    font-size: var(--fs-sm);
}
.account-jump a { color: var(--umber); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-card form > h2:not(:first-child), .form-card section > h2 { margin-top: var(--s-2); }
.form-card form > h2 + .field, .form-card form > h2 + .fieldset { margin-top: -4px; }
.account-jump .btn { margin-left: auto; }
