/* ============================================================
   Screen Europe – Download Portal  |  v1.0.0
   ============================================================ */

/* ── Shared ─────────────────────────────────────────────── */

.sedp-required {
    color: #e53e3e;
    margin-left: 2px;
}

/* ── Landing Form ──────────────────────────────────────── */

.sedp-landing-wrap {
    max-width: 580px;
    margin: 0 auto;
}

/* Validation / error notice */
.sedp-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.sedp-notice--error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

/* Form layout */
.sedp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 12px;
}

.sedp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.sedp-field > label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a2e;
}

/* Text / email inputs */
.sedp-field input[type="text"],
.sedp-field input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #dde3ee;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a202c;
    background: #f7f9fc;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.sedp-field input[type="text"]:focus,
.sedp-field input[type="email"]:focus {
    outline: none;
    border-color: #003087;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.13);
}

.sedp-field input::placeholder {
    color: #a0aec0;
}

/* GDPR field */
.sedp-field--gdpr {
    background: #f0f4ff;
    border: 1px solid #c3d0f5;
    border-radius: 10px;
    padding: 18px;
}

.sedp-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
}

.sedp-checkbox-wrap input[type="checkbox"] {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #003087;
    cursor: pointer;
    border-radius: 4px;
}

.sedp-gdpr-text {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.6;
}

.sedp-gdpr-text a {
    color: #003087;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sedp-gdpr-text a:hover {
    color: #001a52;
}

/* Submit button */
.sedp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: #003087;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s, transform 0.13s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 48, 135, 0.32);
}

.sedp-submit-btn:hover {
    background: #002060;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 48, 135, 0.42);
}

.sedp-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.28);
}

/* ── Download Portal ───────────────────────────────────── */

.sedp-portal {
    max-width: 1320px;
    margin: 0 auto;
}

/* ─ Filters ─ */

.sedp-filters {
    background: #f7f8fc;
    border: 1px solid #e4e8f3;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sedp-filter-row {
    display: flex;
    align-items: flex-start;
}

.sedp-filter-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
}

.sedp-filter-label {
    flex-shrink: 0;
    min-width: 72px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096;
}

.sedp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sedp-pill {
    background: #fff;
    border: 2px solid #dde3ee;
    color: #4a5568;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 0.17s, color 0.17s, background 0.17s, box-shadow 0.17s;
}

.sedp-pill:hover:not(.active) {
    border-color: #003087;
    color: #003087;
    background: #edf2ff;
}

.sedp-pill.active {
    background: #003087;
    border-color: #003087;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.22);
}

/* ─ Brochure Grid ─ */

.sedp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

/* Individual card */
.sedp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sedp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.05);
}

.sedp-card--hidden {
    display: none !important;
}

/* Cover image – 3:4 portrait ratio (typical brochure) */
.sedp-card__cover {
    position: relative;
    padding-top: 133.33%;
    background: #edf0f7;
    overflow: hidden;
}

.sedp-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sedp-card:hover .sedp-card__cover img {
    transform: scale(1.04);
}

.sedp-card__no-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bbd0;
}

/* Card body */
.sedp-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.sedp-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
}

.sedp-card__lang {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2b6cb0;
    background: #ebf4ff;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

/* Download button */
.sedp-card__dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 16px;
    background: #003087;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease;
}

.sedp-card__dl:hover {
    background: #002060;
    color: #fff;
    text-decoration: none;
}

.sedp-card__dl--unavailable {
    background: #e2e8f0;
    color: #718096;
    cursor: not-allowed;
}

.sedp-card__dl--unavailable:hover {
    background: #e2e8f0;
    color: #718096;
}

/* ─ Utility / states ─ */

[hidden] {
    display: none !important;
}

.sedp-no-results {
    text-align: center;
    padding: 72px 20px;
    color: #718096;
    font-size: 1rem;
    grid-column: 1 / -1;
}

.sedp-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 20px;
    color: #a0aec0;
    font-size: 1rem;
}

/* ── Responsive ────────────────────────────────────────── */

@media ( max-width: 960px ) {
    .sedp-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sedp-filter-label {
        min-width: unset;
    }
}

@media ( max-width: 680px ) {
    .sedp-filters {
        padding: 18px;
        gap: 14px;
    }
    .sedp-grid {
        grid-template-columns: repeat( 2, 1fr );
        gap: 16px;
    }
    .sedp-card__title {
        font-size: 0.875rem;
    }
    .sedp-card__body {
        padding: 12px;
        gap: 8px;
    }
    .sedp-card__dl {
        padding: 9px 12px;
        font-size: 0.8125rem;
    }
}

@media ( max-width: 380px ) {
    .sedp-grid {
        grid-template-columns: 1fr;
    }
}
