/* =========================================================
   DUTCH FAMILY
   RECORD INSTUREN

   upload.css

   WACHTWOORD
   SPELER ZOEKEN
   RECORD INSTUREN
   SCREENSHOT UPLOAD
   RESPONSIVE
   ========================================================= */


/* =========================================================
   PAGINA
   ========================================================= */

.upload-page {
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #ffffff 100%
        );
}


.upload-main {
    width: min(
        100% - 2rem,
        980px
    );

    margin: 0 auto;

    padding:
        3rem
        0
        5rem;
}


/* =========================================================
   HEADER
   ========================================================= */

.upload-header {
    margin-bottom: 1.75rem;
}


.upload-eyebrow {
    margin:
        0
        0
        .5rem;

    color: var(--color-gold);

    font-size: .68rem;
    font-weight: 950;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.upload-header__title {
    display: flex;
    align-items: flex-start;

    gap: 1rem;
}


.upload-header__title > span {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border:
        1px solid rgba(41, 85, 150, .12);

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f7f9ff,
            #dce9ff
        );

    box-shadow:
        0 8px 20px rgba(6, 30, 56, .08);

    font-size: 1.55rem;
}


.upload-header__title > div {
    min-width: 0;
}


.upload-header h1 {
    margin:
        0
        0
        .45rem;

    color: var(--color-blue-deep);

    font-size:
        clamp(
            2.2rem,
            5vw,
            3.4rem
        );

    font-weight: 950;

    line-height: 1;
}


.upload-header__title p {
    max-width: 760px;

    margin: 0;

    color: #697786;

    font-size: .82rem;

    line-height: 1.65;
}


/* =========================================================
   WACHTWOORD TOEGANG
   ========================================================= */

.upload-access {
    max-width: 560px;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    gap: 1.15rem;

    margin:
        3rem
        auto
        0;

    padding: 1.5rem;

    border:
        1px solid #e1e7ed;

    border-radius: 16px;

    background: var(--color-white);

    box-shadow:
        0 12px 34px rgba(6, 30, 56, .08);
}


.upload-access__icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #fff8da,
            #ffec9e
        );

    box-shadow:
        0 6px 16px rgba(198, 143, 0, .10);

    font-size: 1.4rem;
}


.upload-access__content {
    min-width: 0;
}


.upload-access__eyebrow {
    margin:
        0
        0
        .25rem;

    color: #9b791c;

    font-size: .6rem;
    font-weight: 950;

    letter-spacing: .09em;

    text-transform: uppercase;
}


.upload-access h2 {
    margin:
        0
        0
        .35rem;

    color: var(--color-blue-deep);

    font-size: 1.45rem;
    font-weight: 950;
}


.upload-access__content > p:not(.upload-access__eyebrow) {
    margin:
        0
        0
        1rem;

    color: #75818d;

    font-size: .72rem;

    line-height: 1.6;
}


/* =========================================================
   WACHTWOORD FORMULIER
   ========================================================= */

.upload-access-form {
    display: flex;
    flex-direction: column;

    gap: .85rem;
}


.upload-password-field {
    display: flex;
    flex-direction: column;

    gap: .35rem;
}


.upload-password-field > label {
    color: var(--color-blue-deep);

    font-size: .68rem;
    font-weight: 850;
}


.upload-password-input {
    position: relative;
}


.upload-password-input input {
    width: 100%;
    min-height: 48px;

    padding:
        .75rem
        3.2rem
        .75rem
        .85rem;

    color: #26394d;

    border:
        1px solid #dfe5eb;

    border-radius: 10px;

    background: #fbfcfd;

    outline: none;

    font: inherit;
    font-size: .75rem;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.upload-password-input input:focus {
    border-color: var(--color-gold);

    background: var(--color-white);

    box-shadow:
        0 0 0 3px rgba(213, 170, 69, .12);
}


.upload-password-input button {
    position: absolute;

    top: 50%;
    right: .45rem;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    font-size: .9rem;

    transition:
        background .18s ease;
}


.upload-password-input button:hover {
    background: #eef2f6;
}


/* =========================================================
   ALGEMENE KNOP
   ========================================================= */

.upload-primary-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .4rem;

    padding:
        .7rem
        1.15rem;

    color: var(--color-white);

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--color-blue),
            var(--color-blue-dark)
        );

    box-shadow:
        0 7px 18px rgba(6, 30, 56, .16);

    font: inherit;

    font-size: .72rem;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}


.upload-primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(6, 30, 56, .22);

    filter: brightness(1.04);
}


.upload-primary-button:active {
    transform: translateY(0);
}


/* =========================================================
   MELDINGEN
   ========================================================= */

.upload-message,
.upload-errors,
.upload-success {
    border-radius: 11px;
}


.upload-message {
    margin-bottom: .75rem;

    padding:
        .75rem
        .85rem;

    font-size: .68rem;
    font-weight: 800;

    line-height: 1.5;
}


.upload-message--error {
    color: #87311f;

    border:
        1px solid #efcbc3;

    background: #fff2ef;
}


/* =========================================================
   SUCCES
   ========================================================= */

.upload-success {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    align-items: flex-start;

    gap: .8rem;

    margin-bottom: 1rem;

    padding:
        1rem
        1.1rem;

    color: #205f3a;

    border:
        1px solid #cce8d5;

    background:
        linear-gradient(
            135deg,
            #edf9f1,
            #e5f6eb
        );
}


.upload-success > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: rgba(255, 255, 255, .65);

    font-size: 1rem;
}


.upload-success strong {
    display: block;

    margin-bottom: .18rem;

    font-size: .78rem;
    font-weight: 950;
}


.upload-success p {
    margin: 0;

    font-size: .67rem;

    line-height: 1.5;
}


/* =========================================================
   FOUTEN
   ========================================================= */

.upload-errors {
    margin-bottom: 1rem;

    padding:
        1rem
        1.1rem;

    color: #87311f;

    border:
        1px solid #efcbc3;

    background: #fff2ef;
}


.upload-errors > strong {
    display: block;

    margin-bottom: .4rem;

    font-size: .75rem;
    font-weight: 950;
}


.upload-errors ul {
    margin: 0;

    padding-left: 1.2rem;
}


.upload-errors li {
    margin:
        .18rem
        0;

    font-size: .66rem;

    line-height: 1.45;
}


/* =========================================================
   INFO BLOK
   ========================================================= */

.upload-info {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    gap: .8rem;

    margin-bottom: 1rem;

    padding:
        1rem
        1.1rem;

    border:
        1px solid #e1e7ed;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #fafbfd,
            #ffffff
        );
}


.upload-info > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #eaf1fb;

    font-size: .95rem;
}


.upload-info strong {
    display: block;

    color: var(--color-blue-deep);

    font-size: .73rem;
    font-weight: 900;
}


.upload-info p {
    max-width: 760px;

    margin:
        .22rem
        0
        0;

    color: #74808c;

    font-size: .66rem;

    line-height: 1.55;
}


/* =========================================================
   HOOFDFORMULIER
   ========================================================= */

.upload-form {
    overflow: visible;

    border:
        1px solid #e1e7ed;

    border-radius: 15px;

    background: var(--color-white);

    box-shadow:
        0 8px 26px rgba(6, 30, 56, .06);
}


/* =========================================================
   FORMULIER SECTIES
   ========================================================= */

.upload-form-section {
    position: relative;

    padding: 1.4rem;

    border-bottom:
        1px solid #edf0f3;
}


.upload-form-section__heading {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    align-items: start;

    gap: .75rem;

    margin-bottom: 1rem;
}


.upload-form-section__heading > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #f1f5fa,
            #e7edf4
        );

    font-size: 1rem;
}


.upload-form-section__heading h2 {
    margin:
        0
        0
        .18rem;

    color: var(--color-blue-deep);

    font-size: 1rem;
    font-weight: 950;
}


.upload-form-section__heading p {
    max-width: 680px;

    margin: 0;

    color: #82909e;

    font-size: .66rem;

    line-height: 1.5;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.upload-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1rem;
}


.upload-form-field--full {
    grid-column:
        1
        /
        -1;
}


/* =========================================================
   FORM VELDEN
   ========================================================= */

.upload-form-field,
.upload-player-search {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: .35rem;
}


.upload-form-field[hidden] {
    display: none !important;
}


.upload-form-field > label,
.upload-player-search > label {
    color: var(--color-blue-deep);

    font-size: .69rem;
    font-weight: 850;
}


.upload-form-field > label span {
    margin-left: .25rem;

    color: #9aa4ae;

    font-size: .55rem;
    font-weight: 700;
}


.upload-form-field input:not([type="file"]),
.upload-form-field select,
.upload-form-field textarea,
.upload-player-input {
    width: 100%;

    padding:
        .7rem
        .8rem;

    color: #26394d;

    border:
        1px solid #dfe5eb;

    border-radius: 9px;

    background: #fbfcfd;

    outline: none;

    font: inherit;

    font-size: .72rem;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.upload-form-field input:not([type="file"]),
.upload-form-field select,
.upload-player-input {
    min-height: 46px;
}


.upload-form-field textarea {
    min-height: 110px;

    resize: vertical;
}


.upload-form-field input:focus,
.upload-form-field select:focus,
.upload-form-field textarea:focus,
.upload-player-input:focus {
    border-color: var(--color-gold);

    background: var(--color-white);

    box-shadow:
        0 0 0 3px rgba(213, 170, 69, .12);
}


.upload-form-field select {
    cursor: pointer;
}


.upload-form-field small,
.upload-player-search > small {
    color: #919ca7;

    font-size: .58rem;

    line-height: 1.45;
}


/* =========================================================
   GESELECTEERDE SPELER
   ========================================================= */

.upload-player-input--selected {
    padding-right: 2.4rem !important;

    color: #205f3a !important;

    border-color: #bcdcc7 !important;

    background:
        #f3fbf6 !important;

    font-weight: 850 !important;
}


/* =========================================================
   AUTOCOMPLETE
   ========================================================= */

.upload-autocomplete {
    position: relative;

    z-index: 10;
}


.upload-autocomplete-results {
    position: absolute;

    top: calc(100% + .35rem);
    left: 0;
    right: 0;

    z-index: 100;

    max-height: 285px;

    overflow-y: auto;

    padding: .35rem;

    border:
        1px solid #dfe5eb;

    border-radius: 10px;

    background: var(--color-white);

    box-shadow:
        0 12px 30px rgba(6, 30, 56, .14);
}


.upload-autocomplete-results[hidden] {
    display: none;
}


.upload-autocomplete-option {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding:
        .7rem
        .75rem;

    color: inherit;

    border: 0;

    border-radius: 7px;

    background: transparent;

    text-align: left;

    cursor: pointer;

    transition:
        background .15s ease;
}


.upload-autocomplete-option:hover {
    background: #f1f5f9;
}


.upload-autocomplete-option strong {
    min-width: 0;

    overflow: hidden;

    color: var(--color-blue-deep);

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: .7rem;
    font-weight: 900;
}


.upload-autocomplete-option small {
    flex-shrink: 0;

    padding:
        .2rem
        .4rem;

    color: #52687c;

    border-radius: 999px;

    background: #eef3f8;

    font-size: .54rem;
    font-weight: 800;
}


.upload-autocomplete-empty {
    padding:
        .8rem
        .75rem;

    color: #8c97a2;

    text-align: center;

    font-size: .65rem;
}


/* =========================================================
   SCROLLBAR AUTOCOMPLETE
   ========================================================= */

.upload-autocomplete-results::-webkit-scrollbar {
    width: 7px;
}


.upload-autocomplete-results::-webkit-scrollbar-track {
    background: transparent;
}


.upload-autocomplete-results::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: #d6dde4;
}


/* =========================================================
   "DIT RECORD IS VAN MIJ"
   ========================================================= */

.upload-copy-player {
    width: fit-content;

    margin-top: .15rem;

    padding:
        .42rem
        .65rem;

    color: #315b88;

    border:
        1px solid #d6e1ec;

    border-radius: 7px;

    background: #f5f9fd;

    font: inherit;

    font-size: .6rem;
    font-weight: 850;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}


.upload-copy-player:hover {
    transform: translateY(-1px);

    border-color: #aebfd1;

    background: #edf5fc;
}


/* =========================================================
   RECORDCATEGORIE
   ========================================================= */

#type {
    font-weight: 800;
}


/* =========================================================
   SCORE / WAARDE
   ========================================================= */

#value {
    font-weight: 850;
}


/* =========================================================
   BEWIJS UPLOAD
   ========================================================= */

.upload-proof {
    display: flex;
    flex-direction: column;

    gap: .8rem;
}


.upload-proof__box {
    min-height: 120px;

    display: flex;
    align-items: center;

    gap: .9rem;

    padding: 1rem;

    border:
        2px dashed #cbd4dd;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #fbfcfd,
            #f5f8fa
        );

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.upload-proof__box:hover {
    transform: translateY(-1px);

    border-color: #4d73a5;

    background: #f8fbff;

    box-shadow:
        0 0 0 3px rgba(50, 94, 150, .07);
}


.upload-proof__icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #eaf1fb,
            #dce9f7
        );

    font-size: 1.3rem;
}


.upload-proof__text {
    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;

    gap: .15rem;
}


.upload-proof__text strong {
    color: var(--color-blue-deep);

    font-size: .75rem;
    font-weight: 900;
}


.upload-proof__text small {
    color: #87929e;

    font-size: .6rem;
}


.upload-proof__button {
    flex-shrink: 0;

    padding:
        .55rem
        .75rem;

    color: var(--color-blue-deep);

    border:
        1px solid #d9e0e6;

    border-radius: 8px;

    background: var(--color-white);

    box-shadow:
        0 3px 8px rgba(6, 30, 56, .05);

    font-size: .62rem;
    font-weight: 900;
}


/* =========================================================
   SCREENSHOT PREVIEW
   ========================================================= */

.upload-proof-preview {
    display: grid;

    grid-template-columns:
        130px
        minmax(0, 1fr);

    align-items: center;

    gap: .9rem;

    padding: .8rem;

    border:
        1px solid #d5e5db;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #f7fcf9,
            #eef8f2
        );
}


.upload-proof-preview[hidden] {
    display: none;
}


.upload-proof-preview img {
    width: 130px;
    height: 90px;

    display: block;

    object-fit: cover;

    border-radius: 8px;

    background: #e9eef2;

    box-shadow:
        0 4px 10px rgba(6, 30, 56, .08);
}


.upload-proof-preview > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}


.upload-proof-preview strong {
    max-width: 100%;

    overflow: hidden;

    color: #205f3a;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: .7rem;
    font-weight: 900;
}


.upload-proof-preview small {
    margin-top: .12rem;

    color: #758a7d;

    font-size: .57rem;
}


.upload-proof-preview button {
    margin-top: .5rem;

    padding:
        .4rem
        .6rem;

    color: #9b3c29;

    border:
        1px solid #edcfc8;

    border-radius: 7px;

    background: #fff7f5;

    font: inherit;

    font-size: .58rem;
    font-weight: 850;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease;
}


.upload-proof-preview button:hover {
    border-color: #dfa99d;

    background: #fff0ec;
}


/* =========================================================
   FORMULIER ACTIES
   ========================================================= */

.upload-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.25rem;

    padding:
        1rem
        1.4rem;

    border-radius:
        0
        0
        15px
        15px;

    background:
        linear-gradient(
            135deg,
            #fafbfd,
            #f6f8fa
        );
}


.upload-form-actions > div {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: .55rem;
}


.upload-form-actions > div > span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #eaf1fb;

    font-size: .8rem;
}


.upload-form-actions p {
    max-width: 520px;

    margin: 0;

    color: #7c8995;

    font-size: .6rem;

    line-height: 1.45;
}


.upload-form-actions .upload-primary-button {
    flex-shrink: 0;
}


/* =========================================================
   REQUIRED VELDEN
   ========================================================= */

.upload-form-field input:required,
.upload-player-input:required {
    scroll-margin-top: 100px;
}


/* =========================================================
   PLACEHOLDERS
   ========================================================= */

.upload-form-field input::placeholder,
.upload-form-field textarea::placeholder,
.upload-player-input::placeholder,
.upload-password-input input::placeholder {
    color: #a4adb6;
}


/* =========================================================
   SELECT
   ========================================================= */

.upload-form-field select {
    appearance: none;

    padding-right: 2.5rem;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #73808c 50%
        ),
        linear-gradient(
            135deg,
            #73808c 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}


/* =========================================================
   DATUM
   ========================================================= */

#achievement_date {
    cursor: pointer;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .upload-main {
        width:
            min(
                100% - 1.5rem,
                900px
            );

        padding-top: 2rem;
    }


    .upload-header h1 {
        font-size:
            clamp(
                2rem,
                7vw,
                3rem
            );
    }

}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 700px) {

    .upload-main {
        width:
            min(
                100% - 1rem,
                700px
            );

        padding:
            1.5rem
            0
            3rem;
    }


    /* HEADER */

    .upload-header__title {
        gap: .75rem;
    }


    .upload-header__title > span {
        width: 48px;
        height: 48px;

        border-radius: 12px;

        font-size: 1.25rem;
    }


    .upload-header h1 {
        font-size: 2rem;
    }


    .upload-header__title p {
        font-size: .72rem;
    }


    /* FORM */

    .upload-form-section {
        padding: 1.1rem;
    }


    .upload-form-grid {
        grid-template-columns: 1fr;
    }


    .upload-form-field--full {
        grid-column: auto;
    }


    /* ACTIONS */

    .upload-form-actions {
        align-items: stretch;

        flex-direction: column;

        padding: 1rem;
    }


    .upload-form-actions .upload-primary-button {
        width: 100%;
    }


    /* UPLOAD */

    .upload-proof__box {
        align-items: flex-start;

        flex-wrap: wrap;
    }


    .upload-proof__text {
        min-width: calc(100% - 70px);
    }


    .upload-proof__button {
        width: 100%;

        text-align: center;
    }

}


/* =========================================================
   KLEINE MOBIEL
   ========================================================= */

@media (max-width: 500px) {

    /* HEADER */

    .upload-header__title {
        flex-direction: column;
    }


    .upload-header h1 {
        font-size: 1.85rem;
    }


    /* WACHTWOORD */

    .upload-access {
        grid-template-columns: 1fr;

        gap: .75rem;

        margin-top: 1.5rem;

        padding: 1.1rem;
    }


    .upload-access__icon {
        width: 46px;
        height: 46px;

        border-radius: 11px;

        font-size: 1.15rem;
    }


    /* INFO */

    .upload-info {
        grid-template-columns: 1fr;
    }


    /* SECTIE KOP */

    .upload-form-section__heading {
        grid-template-columns: 1fr;

        gap: .5rem;
    }


    .upload-form-section__heading > span {
        width: 38px;
        height: 38px;
    }


    /* AUTOCOMPLETE */

    .upload-autocomplete-option {
        align-items: flex-start;

        flex-direction: column;

        gap: .25rem;
    }


    .upload-autocomplete-option small {
        align-self: flex-start;
    }


    /* SCREENSHOT */

    .upload-proof__box {
        flex-direction: column;
    }


    .upload-proof__text {
        min-width: 0;
        width: 100%;
    }


    .upload-proof-preview {
        grid-template-columns: 1fr;
    }


    .upload-proof-preview img {
        width: 100%;
        height: 180px;
    }


    /* ONDERKANT */

    .upload-form-actions > div {
        align-items: flex-start;
    }

}


/* =========================================================
   ZEER KLEIN
   ========================================================= */

@media (max-width: 350px) {

    .upload-main {
        width:
            calc(
                100% - .7rem
            );
    }


    .upload-form-section {
        padding: .9rem;
    }


    .upload-form-actions {
        padding: .9rem;
    }


    .upload-header h1 {
        font-size: 1.65rem;
    }

}