/* GDPR Toolkit: the map pages' dark card (map.css) with a four-step form inside.
   Loaded after map.css on /gdpr/ only. */

/* Fields with display: flex would otherwise ignore the hidden attribute */
.gdpr-page [hidden] {
    display: none !important;
}

/* As wide as the map pages' cards */
.gdpr-card {
    margin: 0 auto;
}

.gdpr-form {
    margin-top: 28px;
}

/* Steps */
.gdpr-step {
    margin: 0 0 30px;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gdpr-step legend {
    float: left;
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
}

.gdpr-step legend + * {
    clear: left;
}

/* 01: request types as selectable cards */
.gdpr-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); /* all five in one row on wide screens */
    gap: 10px;
}

.gdpr-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gdpr-choice:hover {
    border-color: rgba(198, 230, 65, 0.5);
}

.gdpr-choice input,
.gdpr-lang-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gdpr-choice:has(input:checked) {
    border-color: var(--lime);
    background: rgba(198, 230, 65, 0.1);
    box-shadow: 0 0 0 1px var(--lime), 0 0 18px rgba(198, 230, 65, 0.18);
}

.gdpr-choice:has(input:focus-visible),
.gdpr-lang-btn:has(input:focus-visible) {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

.gdpr-choice-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.gdpr-choice-law {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--season-muted);
}

.gdpr-choice:has(input:checked) .gdpr-choice-law {
    color: var(--lime);
}

/* Fields */
.gdpr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gdpr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.gdpr-field label,
.gdpr-field-label {
    font-size: 14px;
    color: var(--season-muted);
}

.gdpr-optional {
    margin-left: 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.gdpr-page .map-find-input {
    flex: none; /* season.css gives it a 220px flex-basis, which is a height in these columns */
    max-width: none;
    width: 100%;
    padding: 11px 13px;
    font-size: 16px;
}

.gdpr-page .map-find-input:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 1px var(--lime);
}

.gdpr-textarea {
    resize: vertical;
    line-height: 1.55;
    font-family: var(--font-sans);
}

.gdpr-letter {
    min-height: 360px;
    font-size: 15px;
}

.gdpr-hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--season-muted);
}

/* The chosen company */
.gdpr-company {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-left: 2px solid var(--lime);
    background: rgba(198, 230, 65, 0.06);
}

.gdpr-company-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.gdpr-company-meta {
    margin-top: 4px;
    font-size: 14px;
    color: var(--season-muted);
}

.gdpr-company-meta a {
    color: var(--lime);
}

.gdpr-unsure {
    color: #f2a65a;
}

/* Language toggle reuses the UNESCO filter buttons */
.gdpr-lang .filter-group {
    display: flex;
    gap: 8px;
}

.gdpr-lang-btn {
    position: relative;
    padding: 9px 14px;
    cursor: pointer;
}

.gdpr-lang-btn:has(input:checked) {
    background: var(--lime);
    border-color: var(--lime);
    color: #160c2e;
}

/* Deadline, actions, status */
.gdpr-deadline {
    margin: 4px 0 16px;
    padding-left: 12px;
    border-left: 2px solid rgba(242, 166, 90, 0.8);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.gdpr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gdpr-actions .season-reset {
    padding: 11px 14px;
    text-decoration: none;
}

.gdpr-actions .gdpr-primary {
    background: var(--lime);
    border-color: var(--lime);
    color: #160c2e;
    box-shadow: 0 0 16px rgba(198, 230, 65, 0.35);
}

.gdpr-actions .gdpr-primary:hover {
    background: #d6f25a;
}

.gdpr-actions .is-disabled {
    opacity: 0.45;
    box-shadow: none;
}

.gdpr-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--lime);
}

@media (max-width: 640px) {
    .gdpr-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .season-card.gdpr-card {
        padding: 22px 18px;
    }
}
