/* ===== main.css (original) ===== */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* tends to have the dialog styling and colours */
:root {
    --mid-green: #25D365;
    --mid-green--translucent: #25D365a4;
    --mid-red: #9f1203;
    --mid-red--translucent: #9b11027e;
    --black-blue: #0a3b1f;
    --black-blue--translucent: #0a3b1f99;
    --mid-grey: #555;
    --light-grey: #808080;
    --bright-green: #25D365;
    --black-grey: #2d2c2c;
    --link-blue: #25D365;
    --wa-green: #25D365;
    --wa-green--dark: #25D365;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

/* prevent links from turning red on click/visited/active */
a,
a:visited,
a:hover,
a:active,
a:focus {
    color: #035dd3;
}

html,
body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #2D2C2C;
    height: 100%;
    width: 100%;
    font-family: Ubuntu, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}



#main {
    background-color: var(--mid-green);
    width: 100vw;
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;


}

/* z-index of 902 means these will be seen above the map and sharing modal (login, upload and welcome dialogs */
#login-dialog {
    position: absolute;
    top: 15%;
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: fit-content;
    background-color: var(--black-blue--translucent);
    border: 1px solid var(--black-blue);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    text-align: center;
    z-index: 902;


    input[name="phone-number"],
    input[name="display-name"],
    .sms {
        width: 65%;
        height: 2rem;
        padding: 0.5rem;
        border-radius: 5px;
        border: 1px solid var(--mid-grey);
    }

    .sms {
        font-size: 1.5rem;
    }

    h3 {
        width: inherit;
        text-align: center;
        color: white;
    }

    .logo {
        align-self: center;
        width: 80%;
        margin-bottom: 1rem;
        border-radius: 8px;

        @media screen and (min-width: 800px) {
            width: 50%;
        }
    }

    .btn-box {
        margin-top: 1rem;
        display: flex;
        flex-direction: row;
        justify-content: space-around;

        .btn {
            background-color: white;
        }

        .btn-icon {
            width: 2rem;
            vertical-align: middle;
            padding: 0.4rem;
        }
    }

    .signup-form {
        margin-top: -2rem;
        color: white;
    }

    label {
        color: white;
    }

}

#upload-dialog {
    background-color: white;
    backdrop-filter: blur(4px);
    border-radius: 8px;
    z-index: 902;
    position: absolute;
    top: 24%;
    display: flex;
    flex-direction: column;
    width: 52vw;
    padding: 1rem;
    height: fit-content;
    border: 1px solid var(--mid-green--translucent);
    text-align: center;


    hr {
        border: 0px;
        border-bottom: 1px solid var(--light-grey);
        width: 100%;
        margin-top: 1rem;
    }

    .code-input {
        padding: 0.5rem;
        min-height: 1.5rem;
        border: 1px solid var(--mid-green--translucent);
        border-radius: 6px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }


    .opendata-info {
        color: var(--light-grey)
    }

    .upload-form {
        display: flex;
        flex-direction: column;
        margin-inline: 1.4rem;
        justify-content: center;
        align-items: center;
        text-align: center;

        h2 {
            margin-top: 0;
        }

        h3 {
            color: var(--mid-green);
            margin: 0 auto;
        }

        h4 {
            color: var(--light-grey);
            margin-bottom: 0.2rem;

        }

        small {
            margin-top: 0;
            margin-bottom: 1rem;
        }

        label {
            margin-bottom: 0.4rem;
        }

        #task-description {
            margin-bottom: 0.8rem;
            min-width: 70%;
            min-height: 1.8rem;

            span {
                color: var(--mid-green);
            }
        }

        .btn-area {
            display: flex;
            flex-direction: row;
            width: 80%;
            justify-content: space-between;

        }
    }

    .code-error,
    .consent-error {
        color: var(--mid-red);
        font-size: 0.7rem;
        display: block;
        margin: 0.1rem;
    }

    .code-form {

        .btn {
            padding: 0.6rem;
            background-color: var(--mid-green);
            color: white;
            border-color: var(--mid-green--translucent);

            &.check-code {
                border-radius: 6px;
                height: 2.65rem;
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }

            &.opendata {
                font-weight: 600;
                font-size: 1rem;
            }
        }
    }

    .btn {
        padding: 0.6rem;
    }

    .grey {
        color: var(--light-grey);
    }
}





#welcome-back {
    position: absolute;
    top: 8%;
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: fit-content;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    text-align: center;
    z-index: 903;
    background-color: #eeeeeeda;
    border: 1px solid #eeeeeeda;

    h3 {
        color: var(--black-blue);
    }


}

#install-dialog {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 30%;
    width: 50vw;
    min-height: 40vh;
    border: 1px solid var(--black-blue);
    border-radius: 8px;
    text-align: center;
    justify-content: space-around;
    z-index: 100000000000;
    /* for some reason it's rendering behind the buttons */

    @media screen and (min-width: 700px) {
        width: clamp(28vw, 30vw, 32vw);
    }

    button {
        height: 3rem;
    }
    button:focus {
        outline: none; /* Remove the blue focus outline */
        box-shadow: none; /* Remove any default focus shadow */
    }

    img {
        object-fit: cover;
        margin-inline: 12%;
        border-radius: 6px;
    }
}

#success-dialog {
    position: absolute;
    top: 28%;
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: fit-content;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    text-align: center;
    z-index: 903;
    background-color: #eeeeeeda;
    border: 1px solid #eeeeeeda;

    h3 {
        color: var(--mid-green);
    }
}


.error-dialog {
    opacity: 0;
    width: 80%;
    margin: auto;
    transition: opacity 1s;

    &.showing {
        opacity: 1;
    }
}
.error-message {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #25D365;
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    z-index: 1000;
}
.error-click {
    position: fixed; /* Position it relative to the viewport */
    top: 250px; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for the element's size */
    padding: 1rem 2rem; /* Increase padding for a larger button */
    background-color: #25D365; /* Red background for emphasis */
    color: white; /* White text for contrast */
    border-radius: 10px; /* Rounded corners */
    font-size: 1rem; /* Larger font size */
    font-weight: bold; /* Bold text */
    text-align: center; /* Center text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
    cursor: pointer; /* Pointer cursor for interactivity */
    z-index: 10000; /* Ensure it appears above other elements */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}
.error-exit {
    position: fixed; /* Position it relative to the viewport */
    top: 400px; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for the element's size */
    padding: 1rem 2rem; /* Increase padding for a larger button */
    background-color: #25D365; /* Red background for emphasis */
    color: white; /* White text for contrast */
    border-radius: 10px; /* Rounded corners */
    font-size: 1rem; /* Larger font size */
    font-weight: bold; /* Bold text */
    text-align: center; /* Center text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
    cursor: pointer; /* Pointer cursor for interactivity */
    z-index: 10000; /* Ensure it appears above other elements */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}
.btn {
    border-radius: 15px;
    font-family: Ubuntu, sans-serif;
    border: 1px solid var(--mid-grey);
    background-color: white;
    box-shadow: 2px 2px 10px -6px rgba(34, 34, 34, 0.7);

    &.confirm:not(:disabled) {
        color: var(--mid-green);
        border-color: var(--mid-green);

        >svg {
            scale: 1.5
        }
    }

    &.cancel {
        color: var(--mid-red--translucent);
        border-color: var(--mid-red--translucent);
    }

    &:disabled,
    &[disabled] {
        opacity: 0.5;
        color: var(--light-grey);
        border-color: var(--light-grey);
    }
}

/* Remove tap highlight on mobile browsers and suppress focus outline on touch devices */
@media (hover: none) and (pointer: coarse) {
  *, *::before, *::after {
    -webkit-tap-highlight-color: transparent; /* iOS Safari/Chrome on Android */
  }
  a, button, [role="button"], input, textarea, select {
    outline: none;
    box-shadow: none;
  }
  a:focus, button:focus, [role="button"]:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: none;
  }
}
/* ===== map-etc.css (original) ===== */
.map-title {
    position: absolute;
    top: 1rem;
    text-align: center;
    color: #efedec;
    z-index: 900;
    font-size: 190%;
    width: 100%;
}

.pulse-shadow {
    animation: pulseShadow 3s ease 2;
}
.btn:hover {
  background-color: #d7d7d8;
  color: none;
}

@keyframes pulseShadow {

    0% {
        box-shadow: inset 0 0 0 0px rgba(255, 255, 255, 0.2), 0 0 0 0px rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0), 0 0 0 40px rgba(255, 255, 255, 0);

    }
}

#map {
    height: 100vh;
    width: 100vw;
    position: fixed;
    position: relative;

    .map-button {
        position: absolute;
        top: 0.8rem;
        z-index: 900;
        height: 45px;
        border-radius: 50%;
        transition-duration: .3s;
        background-color: var(--black-grey);
        border: 1px solid var(--black-grey);
        color: white;
        padding: 0.5rem;
        backdrop-filter: blur(1px);

        svg {
            height: 100%;
        }

        &:has(.fa-moon) {
            width: 45px;
        }
    }

    #base-map--toggle {
        right: 0.8rem;
        z-index: 1000;
        top: 0.8rem;
        background-color: rgb(252, 251, 251);
        /* border-color: #3a3a3a; */
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border:none;
        
        
    }

    #base-map--toggle:active {
        background-color: rgb(184, 184, 185);
        /* border-color: #3a3a3a; */

    }

    #gps {
        right: 0.6rem;
        top: 8rem;
        background-color: rgb(252, 250, 250);
        /* border-color: #3a3a3a; */
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border:none;

    }
    #gps:active {
        background-color: rgb(247, 247, 250);
        /* border-color: #3a3a3a; */

    }

    #connect,
    #create,
    #share {
        width: 5.5rem;
        height: 3.5rem;
        bottom: 1rem;
        border-radius: 20%;
        background-color: var(--wa-green);
        transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        outline: none;
        border: none;
        
    }
    /* Hover state */
    #connect:hover,
    #share:hover,
    #create:hover {
        background-color: var(--wa-green--dark); /* Darken background */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow for hover effect */
    }

    /* Focus state */
    #connect:focus,
    #share:focus,
    #create:focus {
        outline: none
    }

    /* Active state */
    #connect:active,
    #share:active,
    #create:active {
        background-color: var(--mid-green-light, #25D365); /* Lighten background */
    }
    #connect:focus:not(:focus-visible),
    #share:focus:not(:focus-visible),
    #create:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
    }
    /* Wider pill shape so the longer label fits on one line */
    #create {
        width: auto;
        min-width: 18rem;
        height: auto;
        min-height: 3.5rem;
        padding: 0.6rem 1.4rem;
        border-radius: 1.75rem;
        white-space: nowrap;
    }
    .position-marker-icon {
        color: black;

        svg {
            height: 15px;
            width: 15px;
        }
    }
    .whatsapp-marker-icon {
        color: var(--bright-green);

        svg {
            height: 25px;
            width: 25px;
        }
    }
    .whatsapp-mapper-icon {
        background-color: #2D2C2C;  /* Background around the icon */
        border-radius: 50%;                     /* Circular shape */
        padding: 6px;                           /* Space between icon and edge */
        width: 15px;                            /* Size = icon size + padding * 2 */
        height: 15px;
        display: flex;                          /* Center the icon inside */
        align-items: center;
        justify-content: center;
        color: #f9faf9;
        box-shadow: 0 0 0px rgba(0, 0, 0, 0.2);  /* Optional shadow */
    }
    /* .leaflet-marker-icon {
        transform: scale(1.2);
      } */
    .whatsapp-mapper-icon svg {
        width: 12px;
        height: 12px;
    }

    .leaflet-div-icon {
        border: none;
        background-color: transparent;
    }

    .leaflet-control-scale-line {
        background-color: transparent;
        color: var(--light-grey);
        border-color: var(--light-grey);
        border-radius: 5px;
        font-size: 105%;
        min-width: fit-content;
        text-shadow: none;
    }

    .leaflet-control-attribution {
        background-color: transparent;
        color: var(--light-grey);
    }

    .error-popup {
        color: var(--mid-green);
    }
}

.map-action-btn {
    width: auto;
    min-width: 8rem;
    height: auto;
    min-height: 3.5rem;
    padding: 0.9rem 1.6rem;
    /* bottom: 2.5em; */
    border: none;
    border-radius: 1.5rem;
    background-color: var(--mid-green);
    color: #3a3a3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    /* Remove blue highlight on mobile tap */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent task ID upload button text from turning white on click */
#sharing-modal .btn:active,
#sharing-modal .btn:focus {
    color: #000 !important;
}

#sharing-modal .btn:disabled:active,
#sharing-modal .btn:disabled:focus {
    color: #666 !important;
}

.map-action-btn:hover {
    transform: scale(1.05);
    background-color: var(--wa-green--dark);
}

.map-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.map-action-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-action-icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

.map-action-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    text-align: center;
    font-family: Ubuntu, Helvetica, Arial, sans-serif;
}

#map-actions-container {
    color: #f0f0f0;
    background-color: transparent;
    z-index: 900;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 2.8vh;
    pointer-events: none; 


    .map-actions__wrapper {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        pointer-events: none; /* Allow interactions to pass through */



        .map-actions__body {
            display: flex;
            align-items: center;
            justify-content: space-around;
            width: 100%;
            margin-inline-start: 0.5rem;
            pointer-events: none; /* Enable interactions for buttons and inputs */


            @media screen and (min-width: 600px) {
                padding-inline: 16vw;
            }

            .map-action-btn {
                pointer-events: auto; /* Ensure buttons are interactive */
            }

            .filter__form {
                position: absolute;
                top: 0.1rem;
                left: 0.5rem;
                display: none;
                flex-direction: column; /* 👈 key change: stack vertically */
                align-items: flex-start;
                gap: 0.3rem; /* space between search bar and suggestions */
                width: 100%;
                pointer-events: auto;
              }
              
            
            .filter__wrapper {
                position: relative;
                width: 80%;
                border-radius: 30px;
                background-color: white;
                min-height: 3rem;
                display: none;
                align-items: center;
                padding-right: 3rem;
                box-sizing: border-box;
                pointer-events: auto; /* Ensure buttons are interactive */

            }
              
              .filter__wrapper > textarea {
                width: 100%;
                border: none;
                resize: none;
                font-size: 105%;
                padding: 0;                /* Reset padding */
                padding-left: 1rem;        /* Left padding for text */
                padding-right: 3rem;       /* Space for button */
                border-radius: 30px;
                outline: none;
                background: transparent;
                box-sizing: border-box;
                line-height: 3rem;         /* Match the height of the wrapper */
                height: 3rem;              /* Explicit height to match container */
                pointer-events: auto; /* Ensure buttons are interactive */

              }
              
              
              .filter__wrapper > button {
                position: absolute;
                top: 50%;
                right: 1rem;
                transform: translateY(-50%);
                background: transparent;
                border: none;
                cursor: pointer;
                padding: 0;
                height: 1.5rem;
                width: 1.5rem;
                display: flex;
                align-items: center;
                justify-content: center;
                pointer-events: auto; /* Ensure buttons are interactive */

              }
              
              .filter__wrapper > button > svg {
                height: 100%;
                width: 100%;
                color: var(--wa-green);
              }
              
              .filter__suggested-tags {
                display: flex;
                flex-wrap: wrap;
                gap: 0.4rem;
                padding-inline: 0.5rem;
              }
              
              .filter__suggested-tags button {
                font-size: 0.7rem;
                padding: 0.3rem 0.6rem;
                border: 1px solid var(--wa-green);
                background-color: white;
                border-radius: 20px;
                color: var(--wa-green);
                cursor: pointer;
                white-space: nowrap;
                width: auto; /* 👈 button width now adapts to content */
              }
              
              
              .filter__suggested-tags button:hover {
                background-color: var(--wa-green);
                color: white;
              }
              


            /* button {
                display: flex;
                right:-2rem;
                align-items: center;
                justify-content: center;
                width: 5rem;
                height: 3rem;
                background-color: var(--mid-green);
                border-radius: 20%;
                border: 1px solid var(--mid-green--translucent);

                >svg {
                    height: 1.5rem;
                    width: 1.5rem;
                    color: white;
                    padding: 0.3rem;
                }

            } */


        }
    }
    .map-actions__buttons {
        display: flex;
        justify-content: center; /* Center the buttons horizontally */
        align-items: center; /* Align the buttons vertically */
        gap: 2rem; /* Add spacing between the buttons */
        position: fixed;
        bottom: 1rem; /* Position the buttons 1rem from the bottom */
        width: 100%; /* Ensure the container spans the full width */
        z-index: 900; /* Ensure it appears above other elements */
    }
}


#connect,
#create,
#share {
    width: 5.5rem;
    height: 3.5rem;
    border-radius: 20%;
    background-color: var(--wa-green);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    outline: none;
    border: none;
    color: #3a3a3a;
    position: relative; /* Ensure proper positioning within the container */
}

#connect:hover,
#create:hover,
#share:hover {
    background-color: var(--wa-green--dark); /* Darken background on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow for hover effect */
}

#connect:disabled,
#create:disabled,
#share:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#connect:active,
#create:active,
#share:active {
    background-color: var(--mid-green-light, #25D365); /* Lighten background */
}

#sharing-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Top-aligned for scrollable content */
    z-index: 901;
    position: absolute;
    top: 12vh;
    left: 50%;
    transform: translateX(-50%);
    min-width: 50vw;
    max-height: 75vh; /* restrict modal height */
    overflow-y: auto; /* enable vertical scroll when content overflows */
    background-color: var(--mid-green);
    backdrop-filter: blur(2px);
    padding: 1rem;
    pointer-events: auto;


    padding-bottom: 2rem;
    border-radius: 8px;
    color: #020202;
    box-shadow: 9px 9px 17px #140202,
        -9px -9px 17px #1b0e0e;


    .modal-close {
        position: absolute;
        right: 0;
        top: 0;
        margin: 0.5rem;
    }

    .modal-title {
        font-size: 105%;
        font-weight: 600;
    }

    .option-button-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        row-gap: 1.2rem;
        align-items: center;
        margin-top: 1vh;


        .btn {
            width: 96%;
            height: 6vh;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            font-size: medium;
            font-weight: 600;
            padding: 0.2rem;
            color: black;

            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;

            .btn-icon {
                height: 95%;
                margin-right: 0.4rem;
                transition: color 0.3s ease
            }


            &.disabled,
            &.disabled>.btn-icon {
                color: var(--mid-grey) !important;
                fill: var(--mid-grey);
            }

            &:active,
            :focus {
                background-color: #25D365;
                color: #eee;
                border-color: #0a3b1f;

                svg {
                    color: #eee;
                }
            }
        }


    }
}
#sharing-modal .checkbox-container label {
    color: #050505; /* Ensure checkbox labels are also dark blue */
}

.checkbox-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    gap: 1rem; /* Add spacing between the checkboxes */
    margin-top: 1rem; /* Add some spacing above the container */
}

.feature-images {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;

    img {
        width: 100%;
        max-width: 200px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .next-image {
        display: flex;
        background-color: var(--mid-green);
        border-radius: 50%;
        width: 1.5rem;
        height: 1.5rem;
        align-items: center;
        justify-content: center;

        svg {
            color: white;
        }
    }
}

#search-modal {
    display: flex;
    flex: 7;
    min-width: 50vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 901;
    position: absolute;
    top: 16vh;
    margin-inline: 20%;
    background-color: var(--mid-green--translucent);
    backdrop-filter: blur(2px);
    padding: 1rem;
    padding-bottom: 2rem;
    border-radius: 8px;
    color: #222222;
    box-shadow: 9px 9px 17px #140202,
        -9px -9px 17px #1b0e0e;
    pointer-events: auto; 
}

#search-modal .modal-close {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0.5rem;
    background: transparent;
    /* border: none; */
    font-size: 0.8rem;
    cursor: pointer;
    color:black; /* Match the color of the share modal close button */
    transition: color 0.3s ease; /* Add smooth transition for hover effect */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.3rem;
    border-radius: 40%; /* Make it circular like the share modal */
    background-color: white; /* Match the background color */
    border-color: rgb(7, 7, 7); /* Match the background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for consistency */
}

#search-modal .modal-close:hover {
    background-color: #d7d7d8; /* Darken background on hover */
    color:none; /* Change icon color to white on hover */
}

#search-modal .modal-title {
    font-size: 105%;
    font-weight: 600;
}

#search-modal .modal-content {
    font-size: 1rem;
    color: #19191a;
    text-align: center;
}

.premium-btn {
    position: absolute;
        /* position: fixed; */
        bottom: 3.3rem; /* Close to the bottom of the screen */
        width: 5.5rem;
        height: 3.5rem;
        border-radius: 20%;
        right: 20px; /* Adjust as needed */
    z-index: 1000; /* Ensure it appears above other elements */
    background-color: var(--wa-green);
    /* border: 1px solid var(--mid-green--translucent); */
    border: none;
}

.premium-btn:hover{
        background-color: var(--wa-green--dark); /* Darken background */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow for hover effect */
    }

    /* Focus state */
    .premium-btn:focus{
        outline: none;
    }

    /* Active state */
    .premium-btn:active{
        background-color: var(--mid-green-light, #25D365); /* Lighten background */
    }
#search-modal .option-button-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1.6rem;
    align-items: center;
    margin-top: 2vh;
}

#search-modal .option-button-container .btn {
    width: 96%;
    height: 10vh;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    font-size: medium;
    font-weight: 600;
    padding: 0.5rem;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: white;
    border-radius: 8px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
}

#search-modal .option-button-container .btn:hover {
    background-color: #d7d7d8; /* Change to a lighter grey on hover */
    color: none; /* Ensure text remains readable */
}

/* Custom Leaflet Popup Background */
.leaflet-popup-content-wrapper {
    background-color: #2ecc71 !important;
    color: #000 !important; /* Use dark text for contrast */
    border-radius: 8px;
    font-size: 14px;
  }
  
  /* Optional: Adjust popup tip color */
  .leaflet-popup-tip {
    background-color: #2ecc71 !important;
  }
  /* Apply to the entire popup */
.leaflet-popup-content {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b9aa7 #88eefc; /* Firefox fallback */
  }
  
  /* WebKit scrollbar styling */
  .leaflet-popup-content::-webkit-scrollbar {
    width: 20px;
    color: #015266;
  }
  
  .leaflet-popup-content::-webkit-scrollbar-track {
    background: #015266;
    border-radius: 4px;
  }
  
  .leaflet-popup-content::-webkit-scrollbar-thumb {
    background-color: #015266;
    border-radius: 6px;
    border: 2px solid #015266;
  }

/* Edit and Delete buttons in popups */
.popup-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    margin-right: 5px;
    transition: background-color 0.2s;
}

.popup-edit-btn:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.popup-edit-btn svg {
    width: 16px;
    height: 16px;
}

.popup-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.popup-delete-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.popup-delete-container {
    position: absolute;
    top: -5px;
    left: -5px;
    z-index: 1000;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.popup-edit-textarea {
    width: calc(100% - 40px);
    height: 25px;
    min-height: 25px;
    max-height: 25px;
    padding: 5px;
    margin: 0 15px 0 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
}

.popup-edit-actions {
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.popup-save-btn {
    padding: 3px 8px;
    background-color: #015266;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-save-btn:hover {
    background-color: #015266;
}

.popup-cancel-btn {
    padding: 3px 8px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-cancel-btn:hover {
    background-color: #5a6268;
}

.popup-observation-container {
    margin-bottom: 10px;
}

.popup-observation-display {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.popup-observation-text {
    flex: 1;
}

.popup-observation-text p {
    margin: 2px 0;
}

.popup-edit-button-container {
    margin-left: 0px;
}

/* Bottom delete button container */
.popup-bottom-delete-container {
    text-align: center;
    margin-top: 10px;
}

.popup-bottom-delete-btn {
    background: #dc3545;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.popup-bottom-delete-btn:hover {
    background-color: #c82333;
}

/* Drag and Drop Styles */
#map.drag-over {
    border: 3px dashed #25D365;
    background-color: rgba(37, 211, 101, 0.1);
}

.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(37, 211, 101, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    pointer-events: none;
}

.drag-message {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.drag-message h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.drag-message p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== image-popup.css (original) ===== */
/* Styles for geotagged image popups */
.image-popup {
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.image-container {
    text-align: center;
    margin-bottom: 10px;
}

.image-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-details {
    font-size: 12px;
    line-height: 1.4;
}

.image-details p {
    margin: 4px 0;
}

.image-details strong {
    font-weight: 600;
}

/* Popup images - downloadable styling */
.feature-images img {
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}

.feature-images img:hover {
    opacity: 0.9;
}

.feature-images {
    position: relative;
}

.feature-images::after {
    content: "Right-click to download as PNG";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.feature-images:hover::after {
    opacity: 1;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .image-popup {
        max-width: 250px;
    }
    
    .image-container img {
        max-height: 150px;
    }
    
    .image-details {
        font-size: 11px;
    }
    
    /* Hide the tooltip on mobile since right-click behavior is different */
    .feature-images::after {
        display: none;
    }
}

/* Touch devices - alternative tooltip */
@media (hover: none) and (pointer: coarse) {
    .feature-images::after {
        content: "Long press to download as PNG";
    }
}

/* ===== menu.css (original) ===== */
#menuContainer {
    flex: 7;
    display: grid;
    margin-top: 6vh;
    grid-template-rows: 6vh minmax(32vh, 36vh) auto;
    justify-content: center;
    justify-items: center;
    align-content: center;
    row-gap: 1.5vh;
    padding-bottom: 3vh;

    .menu-btn {
        border-radius: 60px;
        min-width: 60vw;
        padding: 0.8rem;
        font-size: 145%;
        text-align: center;
        font-weight: 600;
        color: var(--mid-green);
        margin-top: 2vh;
        margin-bottom: 1vh;
        z-index: 0;
        /* setting because otherwise they're in front of other components*/
    }

    .button-area {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: fit-content;
        text-align: center;
        bottom: 1vh;
    }


    #languageSelector {
        background-color: transparent;
        color: white;
        border: none;
        font-size: 108%;
        width: fit-content;
        font-family: Ubuntu, sans-serif;

        >option {
            color: black;
        }

        &:focus-visible {
            outline: none;
        }
    }

    #instructions {
        text-align: center;
        font-size: 115%;
        margin-inline: 4vw;
        color: white;
        height: fit-content;
        line-height: 2;
        margin-bottom: 2vh;

        .title {
            font-weight: 600;
        }
    }


    .file-input {
        font-size: 140%;
        background-color: #e3e3e3;
    }

}

#copyright {
    color: #25D365;
    position: fixed;
    width: 100%;
    text-align: center;
    bottom: 1vh;
}

#video-modal {
    position: absolute;
    display: flex;
    width: 95%;
    background-color: #eee;
    border-radius: 6px;
    z-index: 100;
    top: 10vh;

    .video-modal__inner {
        width: 100%;
    }

    .modal-close {
        float: right;
        border-color: lightgray;
        font-size: 150%;
    }
}
.loading-message {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(37, 211, 101, 0.993);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    z-index: 1000;
}

/* Hide the green menu container while keeping burger menu and bottom buttons */
#menuContainer {
    display: none !important;
}

/* Hide only the input area (search/title input) but keep the bottom action buttons */
.filter__form {
    display: none !important;
}
/* ===== loader.css (original) ===== */
#loader {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    /* to be above scale line and attribution */
    z-index: 1002;
    gap: 5px;
    background-color: #2D2C2C;

    &.loader:before,
    &.loader:after {
        box-shadow: 0 0 0 3px inset #25D365;
    }
}

#upload-loader {
    z-index: 1003;
    color: var(--wa-green);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 95%;
    background-color: #25D365;
    border-radius: 8px;
    top: 0;

    &.loader:before,
    &.loader:after {
        box-shadow: 0 0 0 3px inset var(--wa-green);
    }
}


.loader:before,
.loader:after {
    content: "";
    width: 25px;
    aspect-ratio: 1;
    border-radius: 50%; /* make them circles instead of squares */
    /* box-shadow: 0 0 0 3px inset #fff; */
    animation: l5 1.5s infinite;
}

.loader:after {
    --s: -1;
}

@keyframes l5 {
    0% {
        transform: scaleX(var(--s, 1)) translate(0) scale(1)
    }

    33% {
        transform: scaleX(var(--s, 1)) translate(calc(50% + 2.5px)) scale(1)
    }

    66% {
        transform: scaleX(var(--s, 1)) translate(calc(50% + 2.5px)) scale(2)
    }

    100% {
        transform: scaleX(var(--s, 1)) translate(0) scale(1)
    }
}

/* ===== additions for the vanilla build ===== */
/* FontAwesome's React component rendered inline SVGs with these rules */
.svg-inline--fa { height: 1em; overflow: visible; vertical-align: -0.125em; display: inline-block; }
.svg-inline--fa.fa-fw { width: 1.25em; }
/* Leaflet control positioning that map.js used to force with inline styles */
.leaflet-bottom.leaflet-left  { position: fixed; bottom: -2px; left: 5px;  height: 24px; pointer-events: auto; }
.leaflet-bottom.leaflet-right { position: fixed; bottom: -8px; right: 5px; height: 24px; pointer-events: auto; }


/* ===== Two action buttons once a chat has become a map ===== */
#map-actions-container .map-actions__buttons.has-map {
    left: 0;
    gap: 1rem;
    padding-inline: 0.75rem;
    box-sizing: border-box;
}

/* two ids so this wins over the "#map #create" pill rule above */
#map-actions-container .map-actions__buttons.has-map > #download-report,
#map-actions-container .map-actions__buttons.has-map > #create {
    position: static;
    top: auto;
    bottom: auto;
    width: 13rem;
    max-width: calc(50vw - 1.25rem);
    height: 3.5rem;
    min-height: 3.5rem;
    min-width: 0;
    padding: 0.4rem 0.8rem;
    margin: 0;
    border-radius: 1.75rem;
    box-sizing: border-box;
    flex: 0 1 auto;
    white-space: normal;
    outline: none;
    border: none;
}

#map-actions-container .map-actions__buttons.has-map .map-action-label {
    line-height: 1.15;
}

/* ===== Report (in-page view + PDF layout) ===== */
#report-view {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    background-color: #2d2c2c;
    -webkit-overflow-scrolling: touch;
}

.report-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background-color: #2d2c2c;
    border-bottom: 1px solid #454444;
}

.report-toolbar__title {
    color: var(--wa-green);
    font-size: 1.1rem;
    font-weight: 500;
}

.report-toolbar__actions {
    display: flex;
    gap: 0.5rem;
}

.report-toolbar__btn {
    height: 2.4rem;
    padding: 0 1rem;
    border-radius: 0.8rem;
    border: 1px solid #6b6a6a;
    background-color: transparent;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.report-toolbar__btn--primary {
    border-color: var(--wa-green);
    background-color: var(--wa-green);
    color: #2d2c2c;
}

.report-toolbar__btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.report-paper {
    --r-ink: #1d2b26;
    --r-muted: #5d6b66;
    --r-accent: #128c7e;
    --r-soft: #eef6f2;
    --r-line: #dbe5e0;
    width: 100%;
    max-width: 794px;
    box-sizing: border-box;
    margin: 1rem 0 2rem;
    padding: 40px 48px;
    background-color: #ffffff;
    color: var(--r-ink);
    font-family: Ubuntu, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    border-radius: 6px;
    flex-shrink: 0;
}

@media screen and (max-width: 640px) {
    #report-view .report-paper {
        margin: 0;
        padding: 24px 16px;
        border-radius: 0;
    }
}

.report-loading {
    margin: 3rem 0;
    text-align: center;
    color: var(--r-muted);
}

.report-header {
    padding-bottom: 14px;
    border-bottom: 3px solid var(--wa-green);
}

.report-eyebrow {
    margin: 0;
    color: var(--r-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-title {
    margin: 4px 0 2px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.report-sub {
    margin: 0;
    color: var(--r-muted);
    font-size: 13px;
}

.report-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

@media screen and (max-width: 480px) {
    #report-view .report-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

.report-tile {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 8px;
    background-color: var(--r-soft);
}

.report-tile__value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.report-tile__label {
    color: var(--r-muted);
    font-size: 12px;
}

.report-period {
    margin: 10px 0 0;
    color: var(--r-muted);
    font-size: 13px;
}

.report-h2 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--r-ink);
}

.report-h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--r-ink);
}

.report-summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.report-note {
    margin: 8px 0 0;
    color: var(--r-muted);
    font-size: 11.5px;
}

.report-map {
    margin: 0;
}

.report-map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--r-line);
    box-sizing: border-box;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.report-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--r-line);
    border-radius: 8px;
    box-sizing: border-box;
}

/* horizontal bars */
.report-hbars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-hbar {
    display: grid;
    grid-template-columns: minmax(0, 38%) 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.report-hbar__label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.report-hbar__track {
    display: block;
    height: 12px;
}

.report-hbar__fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background-color: var(--r-accent);
}

.report-hbar__value {
    min-width: 2ch;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* vertical bars */
.report-vbars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.report-vbar {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.report-vbar__plot {
    width: 100%;
    height: 110px;
    padding-top: 16px; /* room for the value above a full-height bar */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid var(--r-line);
}

.report-vbar__value {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.report-vbar__fill {
    display: block;
    width: 100%;
    max-width: 28px;
    flex-shrink: 0;
    border-radius: 3px 3px 0 0;
    background-color: var(--r-accent);
}

.report-vbar__label {
    height: 16px;
    margin-top: 3px;
    color: var(--r-muted);
    font-size: 10px;
    line-height: 16px;
    white-space: nowrap;
}

.report-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.report-chip {
    padding: 3px 9px;
    border-radius: 999px;
    background-color: var(--r-soft);
    font-size: 13px;
}

/* photos */
.report-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.report-photo {
    margin: 0;
    min-width: 0;
    border: 1px solid var(--r-line);
    border-radius: 8px;
    overflow: hidden;
}

.report-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--r-soft);
}

.report-photo figcaption {
    display: flex;
    flex-direction: column;
    padding: 6px 8px 8px;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.report-photo__date,
.report-photo__text {
    color: var(--r-muted);
}

.report-footer {
    margin: 28px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--r-line);
    color: var(--r-muted);
    font-size: 11px;
}

/* Off-screen copy of the report, laid out at A4 width for the PDF */
.report-pdf-stage {
    position: absolute;
    left: -10000px;
    top: 0;
    width: 794px;
}

.report-pdf-stage .report-paper {
    width: 794px;
    max-width: none;
    margin: 0;
    padding: 6px 48px;
    border-radius: 0;
}


/* ===== Create modal buttons ===== */
#sharing-modal .btn {
    cursor: pointer;
}

#sharing-modal #demo-chat-btn {
    background-color: transparent;
    border-color: #1f3d2b;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#sharing-modal #demo-chat-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: #0b2416;
    box-shadow: 0 3px 10px -4px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

/* Action buttons and the Create modal sit above the map scale and attribution */
#map-actions-container {
    z-index: 1001;
}

/* ===== Mobile: wider Create modal, clear space for the close cross, buttons a bit higher ===== */
@media screen and (max-width: 600px) {
    #sharing-modal {
        width: 94vw;
        min-width: 0;
        box-sizing: border-box;
        padding: 3rem 0.9rem 1.5rem; /* top space reserved for the cross */
    }

    #sharing-modal .modal-close {
        top: 0.35rem;
        right: 0.35rem;
        margin: 0.5rem;
    }

    #sharing-modal .option-button-container {
        margin-top: 0;
    }

    #map-actions-container .map-actions__buttons.has-map {
        bottom: 1.75rem;
    }
}


/* Hidden visually, still read by search engines and screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* ===== "Get in touch" form in the Create modal ===== */
#contact-view {
    width: 100%;
    max-width: 420px;
    margin: 1vh auto 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--mid-grey);
    border-radius: 12px;
    background-color: white;
    color: #020202;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #0b2416;
    outline-offset: 1px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#sharing-modal .contact-actions .btn {
    height: 45px;
    flex: 1 1 0;
    max-width: 200px;
    font-size: medium;
    font-weight: 600;
    color: black;
}

#sharing-modal #contact-back {
    background-color: transparent;
    border-color: #1f3d2b;
}

#sharing-modal #contact-back:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.contact-status {
    min-height: 1.2em;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-status--ok {
    color: #06301a;
}

.contact-status--error {
    color: #7a0d02;
}


/* Trademark line sits close to the bottom edge of the Create modal */
#sharing-modal {
    padding-bottom: 0.6rem;
}

/* Mobile: Create modal a bit higher on the screen */
@media screen and (max-width: 600px) {
    #sharing-modal {
        top: 7vh;
        max-height: 88vh;
        padding-bottom: 0.6rem;
    }
}
