/* =========================================================
   CITYCHALLENGE
   STYLE PRINCIPAL
   ========================================================= */


/* =========================================================
   RÉINITIALISATION
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family: Arial, Helvetica, sans-serif;

    background: #ddd;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --rouge: #e53935;

    --fond-interface: rgba(255, 255, 255, 0.96);

    --ombre:
        0 8px 30px rgba(0, 0, 0, 0.18);

    --rayon: 24px;
}


/* =========================================================
   CARTE LEAFLET
   ========================================================= */

#map {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}


/* =========================================================
   INTERFACE
   ========================================================= */

.interface {
    position: relative;

    z-index: 10;
}


/* =========================================================
   BARRE DU HAUT
   ========================================================= */

.top-bar {
    position: fixed;

    top: max(14px, env(safe-area-inset-top));
    left: 50%;

    transform: translateX(-50%);

    width: min(820px, calc(100% - 40px));
    height: 54px;

    display: flex;
    align-items: center;

    gap: 12px;

    z-index: 1000;
}


/* =========================================================
   LOGO CITYCHALLENGE
   ========================================================= */

/*
   Le bouton est le cercle blanc.
   Toute la zone du cercle est cliquable.
*/

.site-logo-button {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    min-width: 54px;
    min-height: 54px;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: #ffffff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    cursor: pointer;

    overflow: hidden;

    z-index: 1100;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/*
   Logo à l'intérieur du cercle.
*/

.site-logo-button img {
    width: 65px;
    height: 65px;

    max-width: 65px;
    max-height: 65px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;
}

/*
   Survol
*/

.site-logo-button:hover {
    transform: scale(1.05);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.25);
}


/*
   Clic
*/

.site-logo-button:active {
    transform: scale(0.95);
}


/* =========================================================
   RECHERCHE
   ========================================================= */

.search-box {
    flex: 1;

    min-width: 0;

    height: 54px;

    display: flex;
    align-items: center;

    padding-left: 17px;
    padding-right: 8px;

    background:
        var(--fond-interface);

    border-radius: 18px;

    box-shadow:
        var(--ombre);

    backdrop-filter: blur(10px);
}


/* Icône de recherche */

.search-icon {
    flex-shrink: 0;

    font-size: 25px;

    margin-right: 8px;
}


/* Champ de recherche */

.search-box input {
    width: 100%;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    font-size: 16px;

    color: #222;
}


/* Placeholder */

.search-box input::placeholder {
    color: #777;
}


/* Bouton Rechercher */

.search-button {
    display: none;

    flex-shrink: 0;

    border: none;

    border-radius: 13px;

    padding: 10px 14px;

    background:
        var(--rouge);

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* Survol bouton recherche */

.search-button:hover {
    background: #d32f2f;
}


/* Clic bouton recherche */

.search-button:active {
    transform: scale(0.97);
}


/* =========================================================
   BOUTON PROFIL
   ========================================================= */

.profile-menu {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

.profile-menu a,
.propose-button {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    color: #222;
    background: #fafafa;

    text-decoration: none;
    text-align: left;

    font-size: 16px;
    font-family: Arial, sans-serif;

    cursor: pointer;

    transition: background 0.2s ease, transform 0.1s ease;
}

.profile-menu a:hover,
.propose-button:hover {
    background: #eeeeee;
}

.propose-button:active {
    transform: scale(0.99);
}

/* Zone de proposition */
.proposal-section {
    display: none;

    margin-top: 15px;
    padding: 20px;

    background: #fafafa;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    text-align: left;
}

.proposal-section.active {
    display: block;
}

.proposal-section h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 22px;
}

.proposal-intro {
    margin: 0 0 20px;
    text-align: center;
    color: #666;
    line-height: 1.4;
}

.proposal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.proposal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proposal-field label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.proposal-field input,
.proposal-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 12px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: white;

    font-family: Arial, sans-serif;
    font-size: 14px;

    outline: none;

    transition: border-color 0.2s ease;
}

.proposal-field input:focus,
.proposal-field textarea:focus {
    border-color: #999;
}

.proposal-field textarea {
    min-height: 110px;
    resize: vertical;
}

.proposal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.proposal-submit,
.proposal-cancel {
    flex: 1;

    padding: 12px;

    border: none;
    border-radius: 10px;

    font-size: 14px;
    font-family: Arial, sans-serif;

    cursor: pointer;
}

.proposal-submit {
    background: #222;
    color: white;
}

.proposal-submit:hover {
    background: #333;
}

.proposal-cancel {
    background: #e9e9e9;
    color: #222;
}

.proposal-cancel:hover {
    background: #ddd;
}


/* Image du profil */

.profile-icon {
    width: 54px;
    height: 54px;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    flex-shrink: 0;
}

.profile-photo-icon {
    border: 2px solid rgba(255, 255, 255, 0.3);
}


/* Cacher le bouton profil sur certaines pages */

.hide-profile {
    display: none !important;
}


/* Survol */

.profile-button:hover {
    transform: scale(1.05);

    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.22);
}


/* Clic */

.profile-button:active {
    transform: scale(0.95);
}


/* =========================================================
   RÉSULTATS DE RECHERCHE
   ========================================================= */

.search-results {
    position: fixed;

    top:
        max(
            78px,
            calc(env(safe-area-inset-top) + 64px)
        );

    left: 50%;

    transform: translateX(-50%);

    width:
        min(820px, calc(100% - 40px));

    max-height: 300px;

    overflow-y: auto;

    background:
        var(--fond-interface);

    border-radius: 18px;

    box-shadow:
        var(--ombre);

    backdrop-filter: blur(10px);

    z-index: 999;

    padding: 8px 0;
}


/* Résultat */

.search-result-item {
    padding:
        12px 20px;

    cursor: pointer;

    transition:
        background 0.2s ease;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.05);
}


/* Dernier résultat */

.search-result-item:last-child {
    border-bottom: none;
}


/* Survol résultat */

.search-result-item:hover {
    background:
        rgba(0, 0, 0, 0.05);
}


/* Nom */

.search-result-name {
    font-size: 16px;

    font-weight: 600;

    color: #222;
}


/* Informations */

.search-result-meta {
    font-size: 13px;

    color: #777;

    margin-top: 4px;
}


/* =========================================================
   BOTTOM SHEET
   ========================================================= */

.recommendations-sheet {
    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width:
        min(1100px, 100%);

    height: 31dvh;

    min-height: 205px;

    max-height: 90dvh;

    z-index: 900;

    background:
        var(--fond-interface);

    border-radius:
        28px 28px 0 0;

    box-shadow:
        0 -8px 30px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(14px);

    overflow: hidden;

    transition:
        height 0.5s ease;

    touch-action: none;
}


/* Panneau ouvert */

.recommendations-sheet.expanded {
    height: 90dvh;
}


/* Pendant le déplacement */

.recommendations-sheet.dragging {
    transition: none;
}


/* =========================================================
   POIGNÉE
   ========================================================= */

.sheet-handle {
    width: 100%;
    height: 38px;

    border: none;

    background: transparent;

    display: flex;

    justify-content: center;
    align-items: center;

    cursor: grab;

    touch-action: none;
}

.sheet-handle span {
    width: 46px;
    height: 5px;

    border-radius: 99px;

    background: #aaa;
}


/* =========================================================
   TITRE DU PANNEAU
   ========================================================= */

.sheet-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding:
        0
        22px
        12px;
}

.eyebrow {
    color:
        var(--rouge);

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;

    margin-bottom: 2px;
}

.sheet-header h1 {
    font-size:
        clamp(20px, 2.5vw, 28px);
}


/* =========================================================
   LISTE DES VILLES
   ========================================================= */

.cities-list {
    height:
        calc(100% - 92px);

    padding:
        0
        22px
        calc(20px + env(safe-area-inset-bottom));

    display: flex;

    flex-direction: column;

    gap: 14px;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    min-height: 0;
}


/* =========================================================
   CARTE D'UNE VILLE
   ========================================================= */

.city-card {
    min-height: 150px;

    border:
        1px solid #e8e8e8;

    border-radius: 20px;

    overflow: hidden;

    background: white;

    display: flex;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .07);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


/* Survol carte */

.city-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .12);
}


/* =========================================================
   IMAGE DE LA VILLE
   ========================================================= */

.city-image {
    width: 38%;

    min-width: 120px;

    object-fit: cover;
}


/* =========================================================
   INFORMATIONS DE LA VILLE
   ========================================================= */

.city-info {
    padding: 14px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 7px;
}

.city-name {
    font-size: 20px;

    font-weight: 800;
}

.city-meta {
    color: #555;

    font-size: 13px;
}

.difficulty {
    font-size: 14px;

    letter-spacing: 1px;
}

.rating {
    font-size: 14px;

    letter-spacing: 1px;

    color: #f4b400;
}


/* =========================================================
   MARQUEURS DE VILLE
   ========================================================= */

.city-marker {
    width: 23px;
    height: 23px;

    background:
        var(--rouge);

    border:
        3px solid white;

    border-radius:
        50%
        50%
        50%
        0;

    transform:
        rotate(-45deg);

    box-shadow:
        0 3px 8px rgba(0, 0, .3);

    position: relative;
}

.city-marker::after {
    content: "";

    position: absolute;

    width: 6px;
    height: 6px;

    background: white;

    border-radius: 50%;

    left: 5px;
    top: 5px;
}


/* =========================================================
   CONTRÔLES LEAFLET
   ========================================================= */

.leaflet-control-zoom {
    border: none !important;

    box-shadow:
        var(--ombre) !important;
}

.leaflet-control-zoom a {
    border: none !important;
}


/* =========================================================
   MESSAGE TOAST
   ========================================================= */

.toast {
    position: fixed;

    left: 50%;

    bottom: 35dvh;

    transform:
        translate(-50%, 15px);

    z-index: 2000;

    background:
        rgba(25, 25, 25, .92);

    color: white;

    padding:
        11px 16px;

    border-radius: 14px;

    opacity: 0;

    pointer-events: none;

    transition:
        .25s ease;
}

.toast.visible {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   ADMINISTRATION
   ========================================================= */

.admin-modal {
    position: fixed;

    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    background:
        rgba(0, 0, 0, 0.45);

    z-index: 2000;
}

.admin-box {
    position: relative;

    width: 360px;

    max-width:
        calc(100% - 30px);

    padding: 30px;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.25);
}

.admin-box h2 {
    margin-bottom: 8px;
}

.admin-box p {
    color: #777;

    margin-bottom: 25px;
}

.admin-box label {
    display: block;

    margin-bottom: 8px;

    font-weight: bold;
}

.admin-box input {
    width: 100%;

    padding: 13px;

    border:
        1px solid #ddd;

    border-radius: 10px;

    margin-bottom: 15px;

    font-size: 15px;
}

.login-button {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 10px;

    background:
        #222;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.login-button:hover {
    background:
        #444;
}

.login-button:active {
    transform:
        scale(0.98);
}

.close-admin {
    position: absolute;

    top: 12px;
    right: 15px;

    border: none;

    background: none;

    font-size: 28px;

    color: #777;

    cursor: pointer;
}


/* =========================================================
   BOUTON ADMINISTRATION
   ========================================================= */

.admin-button {
    position: fixed;

    top: 20px;
    right: 20px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #333;

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15);

    z-index: 9999;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-button:hover {
    transform:
        rotate(30deg)
        scale(1.05);

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2);
}

.admin-button:active {
    transform:
        rotate(30deg)
        scale(0.95);
}


/* =========================================================
   VILLES — PANNEAU OUVERT
   ========================================================= */

.recommendations-sheet.expanded .cities-list {
    display: flex;

    flex-direction: column;

    gap: 14px;

    height:
        calc(100% - 105px);

    overflow-y: auto;

    padding:
        0
        22px
        22px;
}

.recommendations-sheet.expanded .city-card {
    display: flex;

    flex-direction: row;

    width: 100%;

    min-height: 150px;
}

.recommendations-sheet.expanded .city-image {
    width: 240px;

    min-width: 240px;

    height: 150px;

    object-fit: cover;
}

.recommendations-sheet.expanded .city-info {
    display: flex;

    flex: 1;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    padding:
        18px 22px;
}

.recommendations-sheet.expanded .city-name,
.recommendations-sheet.expanded .city-meta,
.recommendations-sheet.expanded .difficulty,
.recommendations-sheet.expanded .rating {
    text-align: left;

    margin:
        0 0 7px;
}


/* =========================================================
   DRAFT / ADMIN
   ========================================================= */

.draft-actions {
    display: flex;

    gap: 10px;

    margin-bottom: 25px;

    flex-wrap: wrap;
}

.draft-button {
    border: none;

    padding:
        12px 18px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.draft-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.15);
}

.draft-button:active {
    transform:
        translateY(0);
}

.save-draft {
    background:
        #f1f3f5;

    color: #222;
}

.preview-draft {
    background:
        #e8f0ff;

    color: #2457c5;
}

.publish-draft {
    background:
        #e53935;

    color: white;
}


/* =========================================================
   ORDINATEUR
   ========================================================= */

@media (min-width: 800px) {

    .top-bar {
        width:
            min(820px, calc(100% - 40px));
    }

    .search-button {
        display: block;
    }

    .search-results {
        width:
            min(820px, calc(100% - 40px));
    }

    .recommendations-sheet {
        width:
            min(1150px, calc(100% - 40px));

        height: 29dvh;
    }
}


/* =========================================================
   TABLETTE / PETIT ÉCRAN
   ========================================================= */

@media (min-width: 601px) {

    .recommendations-sheet.expanded .cities-list {
        display: flex !important;

        flex-direction: column !important;

        grid-template-columns: none !important;
    }

    .recommendations-sheet.expanded .city-card {
        display: flex !important;

        flex-direction: row !important;

        flex: 0 0 auto;
    }

    .recommendations-sheet.expanded .city-image {
        width: 240px !important;

        height: 150px !important;
    }
}


/* =========================================================
   TÉLÉPHONE
   ========================================================= */

@media (max-width: 600px) {

    /* -------------------------
       Barre du haut
       ------------------------- */

    .top-bar {
        width:
            calc(100% - 16px);

        height: 50px;

        gap: 7px;
    }


    /* -------------------------
       Logo mobile
       ------------------------- */

    .site-logo-button {
        flex: 0 0 50px !important;

        width: 50px !important;
        height: 50px !important;

        min-width: 50px !important;
        min-height: 50px !important;
    }

    .site-logo-button img {
    width: 65px !important;
    height: 65px !important;

    max-width: 65px !important;
    max-height: 65px !important;
}


    /* -------------------------
       Recherche
       ------------------------- */

    .search-box {
        height: 50px;

        border-radius: 17px;

        padding-left: 13px;
        padding-right: 6px;
    }

    .search-icon {
        font-size: 22px;

        margin-right: 6px;
    }

    .search-box input {
        font-size: 15px;
    }


    /* -------------------------
       Profil
       ------------------------- */

    .profile-button {
        flex: 0 0 50px;

        width: 50px;
        height: 50px;

        border-radius: 50%;

        padding: 0;
    }

    .profile-icon {
        width: 50px;
        height: 50px;
    }

    .profile-photo-icon {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }


    /* -------------------------
       Résultats recherche
       ------------------------- */

    .search-results {
        width:
            calc(100% - 16px);

        top:
            max(
                74px,
                calc(env(safe-area-inset-top) + 60px)
            );

        max-height: 250px;
    }


    /* -------------------------
       Bottom sheet
       ------------------------- */

    .recommendations-sheet {
        width: 100%;

        height: 29dvh;

        min-height: 190px;

        max-height: 90dvh;

        border-radius:
            26px 26px 0 0;
    }

    .sheet-header {
        padding:
            0
            16px
            10px;
    }

    .sheet-header h1 {
        font-size: 21px;
    }

    .sheet-handle {
        height: 36px;
    }


    /* -------------------------
       Carrousel mobile
       ------------------------- */

    .cities-list {
        height:
            calc(100% - 82px);

        min-height: 0;

        padding-left: 14px;
        padding-right: 14px;

        display: flex;

        flex-direction: row;

        gap: 12px;

        overflow-x: auto;
        overflow-y: hidden;

        align-items: flex-start;

        scroll-snap-type:
            x mandatory;

        overscroll-behavior-x:
            contain;

        -webkit-overflow-scrolling:
            touch;

        scrollbar-width: none;
    }

    .cities-list::-webkit-scrollbar {
        display: none;
    }


    /* -------------------------
       Carte ville mobile
       ------------------------- */

    .city-card {
        flex:
            0 0 90%;

        height: 220px;

        min-height: 220px;

        scroll-snap-align:
            start;

        display: flex;

        flex-direction: column;

        border-radius: 20px;

        overflow: hidden;
    }

    .city-image {
        width: 100%;

        height: 130px;

        min-width: 0;

        object-fit: cover;

        flex-shrink: 0;
    }

    .city-info {
        padding: 11px;

        gap: 5px;

        justify-content: center;
    }

    .city-name {
        font-size: 18px;

        line-height: 1.05;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    .city-meta {
        font-size: 12px;
    }

    .difficulty,
    .rating {
        font-size: 12px;

        letter-spacing: 0;
    }


    /* -------------------------
       Panneau ouvert mobile
       ------------------------- */

    .recommendations-sheet.expanded .cities-list {
        display: flex !important;

        flex-direction: row !important;

        gap: 12px;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        height:
            calc(100% - 105px);

        padding:
            0
            14px
            22px;

        scroll-snap-type:
            x mandatory;
    }

    .recommendations-sheet.expanded
    .cities-list::-webkit-scrollbar {
        display: none;
    }

    .recommendations-sheet.expanded
    .city-card {
        flex:
            0 0 170px !important;

        width: 170px !important;

        min-width: 170px !important;

        min-height: 220px !important;

        height: 220px;

        display: flex !important;

        flex-direction: column !important;

        scroll-snap-align:
            start;

        flex-shrink: 0;
    }

    .recommendations-sheet.expanded
    .city-image {
        width: 100% !important;

        min-width: 0 !important;

        height: 120px !important;

        object-fit: cover;

        flex-shrink: 0;
    }

    .recommendations-sheet.expanded
    .city-info {
        padding: 10px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;

        gap: 5px;
    }

    .recommendations-sheet.expanded
    .city-name {
        font-size: 17px;

        line-height: 1.05;

        text-align: left;

        margin: 0;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    .recommendations-sheet.expanded
    .city-meta,
    .recommendations-sheet.expanded
    .difficulty,
    .recommendations-sheet.expanded
    .rating {
        text-align: left;

        margin: 0;

        font-size: 12px;
    }


    /* -------------------------
       Contrôles Leaflet mobile
       ------------------------- */

    .leaflet-control-zoom {
        display: none;
    }


    /* -------------------------
       Toast mobile
       ------------------------- */

    .toast {
        bottom: 32dvh;
    }


    /* -------------------------
       Administration mobile
       ------------------------- */

    .admin-box {
        width:
            calc(100% - 30px);

        padding: 25px;
    }
}

/* ============================= */
/* RECHERCHE DES VILLES */
/* ============================= */

.city-search-container {
    position: relative;
}

.city-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: white;
    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    overflow: hidden;

    z-index: 1000;
}

.city-result {
    padding: 14px 18px;

    cursor: pointer;

    border-bottom: 1px solid #eee;

    transition: background 0.2s;
}

.city-result:hover {
    background: #f5f5f5;
}

.city-result-name {
    font-weight: 600;
    font-size: 16px;
}

.city-result-postal {
    color: #777;
    font-size: 13px;
    margin-top: 3px;
}

.city-no-result {
    padding: 18px;
    color: #777;
    text-align: center;
}


/* ============================= */
/* FENÊTRE PROPOSITION */
/* ============================= */

.suggestion-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 20px;
}

.suggestion-modal {
    position: relative;

    width: 100%;
    max-width: 500px;

    background: white;

    border-radius: 22px;

    padding: 30px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.suggestion-close {
    position: absolute;

    top: 12px;
    right: 15px;

    border: none;

    background: none;

    font-size: 28px;

    cursor: pointer;
}

.suggestion-modal h2 {
    margin-top: 0;
}

.suggestion-subtitle {
    color: #777;
}

.suggestion-button,
.suggestion-submit {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #222;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    margin-top: 15px;
}

.suggestion-modal label {
    display: block;

    margin-top: 18px;
    margin-bottom: 6px;

    font-weight: 600;
}

.suggestion-modal input,
.suggestion-modal textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 10px;

    font-family: inherit;

    font-size: 15px;
}

.suggestion-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.success-message {
    margin-top: 15px;

    padding: 12px;

    border-radius: 10px;

    background: #e8f8ed;

    color: #19753a;
}

.error-message {
    margin-top: 15px;

    padding: 12px;

    border-radius: 10px;

    background: #fdeaea;

    color: #a52222;
}