body {
    background: linear-gradient(to bottom, var(--m-green), var(--d-green));
    padding-top: 150px;
    padding-bottom: 0px;
}

main {
    min-height: calc(100vh - 550px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav {
    background-color: rgba(0,0,0,0.2);
}

#footer {
    box-shadow: none;
}

#request-id-modal {
    background-color: var(--off-white);
    border-radius: 50px;
    padding: 3em 3em; 
    box-sizing: border-box;
    font-family: var(--mont);
    text-align: left;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 64px;
}

#request-id-modal h2 {
    margin: 0px;
}

#request-id-modal input {
    font-family: var(--mont);
}


.save-and-exit-btn {
    margin-top: 24px;
    border-radius: 5px;
    background-color: var(--m-blue);
    color: white; 
    width: 240px;
    height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: var(--mont);
    font-weight: 500;
    transition: border .2s ease, background-color .2s ease;
    border: none;
}

.save-and-exit-btn:hover {
    background-color: var(--m-green);
    cursor: pointer;
}

.action-btn {
    padding: 28px 16px;
    font-size: 16px;
    width: 100%;
    border-radius: 5px;
    margin-top: 24px;
}

#edit-request-form {
    margin-top: 0px;
    flex: 1;
}

.edit-request-label {
    margin-top: 8px;
}

#request_id {
    max-width: 360px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    font-family: var(--mont);
    text-align: left;
    font-size: 16px;
    margin-bottom: 24px;
    margin-top: 4px;
}

#requester_email {
    max-width: 360px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    font-family: var(--mont);
    text-align: left;
    font-size: 16px;
    margin-bottom: 24px;
    margin-top: 4px;
}

.confirmation-info {
    margin-bottom: 8px; 
}

.confirmation-info p {
    font-size: 14px;
    color: var(--subtle-text-wbg);
    margin: 0px;
    margin-bottom: 4px;
}

.confirmation-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0px;
    margin-bottom: 16px;
}

#edit-info-wrapper {
    background-color: var(--off-white);
    border-radius: 50px;
    padding: 3em 3em; 
    box-sizing: border-box;
    font-family: var(--mont);
}

.edit-pencil {
    margin-left: 16px;
    padding: 5px;
    border: 1px solid rgba(0,0,0,0);
    transition: border .2s ease;
    border-radius: 5px;
}

.edit-pencil:hover {
    border: 1px solid var(--border-grey);
    cursor: pointer;
}

#edit-address-form {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    row-gap: 16px;
    font-family: var(--mont);
    margin: 0px;
    column-gap: 16px;
    justify-content: flex-start;
    margin-top: 16px;
    margin-bottom: 16px;
}

#address-form-failure-notice {
    display: none;
}

.form-group-div {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 36px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 12px;

}

.form-group input {
    font-size: 16px;
    padding: 16px 16px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    font-family: var(--mont);
}

#update-address {
    background-color: var(--m-green);
    color: white;
    transition: background-color .2s ease, color .2s ease;
}

#update-address:hover {
    background-color: var(--yel);
    color: black;
}

#edit-request-btns-wrapper {
    align-items: flex-start;
    justify-content: space-between;
}

#cancel-wrapper {
    flex-direction: column;
    align-items: flex-start;
}

#cancel-confirm-wrapper {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
}

#cancel-request-init.active {
    background-color: rgb(219, 104, 104);
    border: 2px solid rgb(219, 104, 104);
}

#cancel-request-init.active:hover {
    background-color: rgb(219, 104, 104);
    border: 2px solid rgb(219, 104, 104);
    cursor: not-allowed;
}

#cancel-request-form {
    display: flex;
    column-gap: 16px;
}

#cancel-confirm-btn-wrapper {
    column-gap: 48px;
}

#cancel-btn {
    background-color: rgb(196, 0, 0);
    color: white;
}

#cancel-btn:hover {
    background-color: rgb(255, 2, 2);
}


#timeframe-form {
    flex-direction: column;
    width: 100%;
    margin-bottom: 48px;
    padding-bottom: 48px;
    padding-top: 0px;
    margin-top: 0px;
}

#date-selection-scroll {
    width: 100%;
    overflow-x: scroll;
}

#date-selection-wrapper {
    display: inline-flex;   
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    column-gap: 36px;
    margin-top: 8px;
    width: 100%;
    padding-bottom: 12px;
}

.day-wrapper {
    flex-direction: column;
    flex: 1;
    min-width: 160px;
    border: 1px solid var(--border-grey);
    padding: 16px;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border .2s ease, background-color .2s ease;
}

.day-wrapper:hover {
    border: 1px solid var(--yel);
    background-color: var(--yel);
    cursor: pointer;
}

.day-wrapper.active {
    background-color: var(--yel);
    color: black;
    border: 1px solid rgba(0,0,0,0);
}

.timeframe-selector {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background-color .2s ease, border .2s ease, box-shadow .2s ease;
}

.timeframe-selector:hover {
    background-color: #eab20838;
    border: 1px solid var(--yel);
}

.timeframe-selector.active {
    background-color: var(--yel);
    color: black;
    border: 1px solid rgba(0,0,0,0);
}

.timeframe-selector.active h4 {
    transition: font-weight .2s ease;
    font-weight: 600 !important;
}

.week-btn {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    color: black;
    background-color: #E7E7E7;
    font-weight: 500;
    font-size: 14px;
    transition: background-color .2s ease;
}

.week-btn:hover {
    background-color: #c8c8c8;
}

#timeframe-submit-btn {
    height: auto;
    padding: 12px 24px;
    max-width: 320px;
    margin: 0px auto;
}

#timeframe-submit-btn:disabled {
    color: rgba(255, 255, 255, 0.797);
    background-color: #098223bb;
}

#timeframe-submit-btn:disabled:hover {
    cursor: not-allowed;
}

.notes-textarea {
    width: 100%;
    font-family: var(--mont);
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
    margin-top: 8px;
}

#cancel-edit-date {
    margin-top: 16px;
    padding: 8px 24px;
}

#loading-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--off-white);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    display: none;
    z-index: 1001;
}

#loading-popup h3 {
    margin-top: 0px; margin-bottom: 8px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--m-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-top: 48px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.flash-container {
    margin-top: 12px;
}

@media only screen and (max-width: 768px) {
    body {
        padding-top: 120px;
        background: var(--off-white);
    }

    #request-id-modal {
        flex-direction: column;
        row-gap: 36px;
        padding: 0em;
    }

    #edit-info-wrapper {
        background-color: var(--off-white);
        border-radius: 50px;
        padding: 0em; 
        box-sizing: border-box;
        font-family: var(--mont);
    }

    #loading-popup {
        width: 60%;
    }

    .navbar {
        background-color: var(--d-green);
    }

    #edit-request-form {
        width: 100%;
    }

    #request_id {
        width: 100%;
        box-sizing: border-box;
        height: 64px;
    }
    
    #requester_email {
        width: 100%;
        box-sizing: border-box;
        height: 64px;
    }

    
    .form-group-div {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        column-gap: 36px;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .form-group label {
        font-weight: 500;
        margin-bottom: 12px;
    
    }
    
    .form-group input {
        font-size: 16px;
        padding: 12px 16px;
        border: 1px solid var(--border-grey);
        border-radius: 5px;
        font-family: var(--mont);
    }

    #date-selection-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 24px;
    }

    .day-wrapper {
        width: 100%;
    }

    #update-address {
        margin-top: 16px;
    }
    #footer {
        box-shadow: 0px -40px 50px 0px #D4DECA;
    }

    .save-and-exit-btn {
        width: 100%;
    }
}

/* ----------------------------------------- */
/* Layout & spacing utilities               */
/* ----------------------------------------- */
.full-width       { width: 100%; }
.hidden           { display: none; }
.flex-row-center  {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
}
.align-right      { text-align: right; }

/* Margin-top 64px */
.mt-64            { margin-top: 64px; }

/* Margin-right 8px */
.mr-8             { margin-right: 8px; }

/* No margin (for resetting <h4>) */
.no-margin        { margin: 0 !important; }

/* ----------------------------------------- */
/* Width-limiting utilities                 */
/* ----------------------------------------- */
.max-w-520        { max-width: 520px; }
.max-w-300        { max-width: 300px; }
.max-w-220        { max-width: 220px; }
.max-w-120        { max-width: 120px; }

/* ----------------------------------------- */
/* Button padding helper                    */
/* ----------------------------------------- */
.btn-padding      { padding: 14px 16px; }

/* ----------------------------------------- */
/* Text utilities                           */
/* ----------------------------------------- */
.text-right       { text-align: right; }
.text-left       { text-align: left; }

/* ----------------------------------------- */
/* Special “intro” paragraph styling         */
/* ----------------------------------------- */
.intro-text {
  max-width: 520px;
  margin-top: 0;
  margin-bottom: 48px;
}

/* “Contact us” link style inside the intro */
.contact-link {
  color: var(--m-green);
  text-decoration: underline;
}

/* ----------------------------------------- */
/* Icon color reset                         */
/* ----------------------------------------- */
.icon-gray {
  color: rgb(91, 91, 91);
}

/* ----------------------------------------- */
/* If you have other .download-btn or        */
/* .warning-btn definitions elsewhere, keep  */
/* them in your base CSS. Only padding is    */
/* extracted here.                           */
/* ----------------------------------------- */

.warning-btn {
    border-radius: 5px;
    background-color: rgb(196, 0, 0);
    border: 3px solid rgb(93, 0, 0);
    color: white; 
    width: 180px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: var(--mont);
    font-weight: 500;
    transition: border .2s ease, background-color .2s ease;
}

.warning-btn:hover {
    border: 1px solid rgb(196, 0, 0);
    cursor: pointer;
}

/* 1) Styles for the day‐labels inside .day-wrapper */
.day-wrapper h4 {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
}

.day-wrapper p {
  margin: 0;
  margin-top: 6px;
}

/* 2) Container for prev/next‐week buttons */
.week-nav {
  margin: 16px 0;
  justify-content: space-between;
  width: 100%;
  display: flex; /* assuming .align-center uses flex centering */
  align-items: center;
}

/* 3) Hide placeholder text (to maintain layout when there’s no link) */
.hidden-text {
  visibility: hidden;
}

/* 4) “Change Pick Up Date” button positioning */
#timeframe-submit-btn {
  margin-top: 36px;
}

/* 5) Inner bold text inside .submit-btn */
.button-text-strong {
  font-weight: 500;
}

/* 6) Info text under the submit button */
#submit-btn-info {
  display: none;
  font-size: 12px;
  font-weight: 300;
  margin-top: 6px;
}

.mw-400 {
    max-width: 400px;
}

#msgs {
    width: 100%;
    margin-bottom: 16px;
}