:root {
    --primary-color: #CF3C2F;
    --companion-color: #64DCD6;
}

*{
    box-sizing: border-box;
}

html{
    height: -webkit-fill-available;
}


body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: -webkit-fill-available;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-attachment: fixed;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

p{
    margin: 0;
}


.container {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 70px 0;
    width: 100%;
    margin-bottom: auto;
}

.bni-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.divider {
    width: 65px;
    height: 6px;
    background-color: #CF3C2F;
}

.logo {
    max-width: 150px; 
    margin-bottom: 43px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bni-btn {
    background-color: #CF3C2F;
    color: white;
    border: none;
    padding: 18px 0;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    width: 320px;
    text-align: center;
    text-decoration: none;
}

.bni-btn:hover {
    background-color: #8a1515;
}

.footer {
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    padding-bottom: 24px;
}

.footer-section {
    display: flex;
    gap: 16px;
}

.footer p{
    margin: auto 0;
    font-size: 12px;
    line-height: 21px;
    color: #29292980;
}

.footer a{
    color: #D00058;
}



/* QR Page */
/*---------------------------------------*/
.qr-section {
    
}

.qr-code-border {
    background: white;
    padding: 25px;
    border-radius: 8px;
    display: flex;
}

.qr-date {
    font-size: 34px;
    font-weight: 800;
    color: #CF3C2F;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.qr-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.qr-code {
    max-width: 350px;
    height: auto;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFFF2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.qr-period-text{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qr-text {
    margin: 0;
    font-size: 30px;
    font-weight: 400;
    line-height: 46.55px;
    color: #292929;
    letter-spacing: 3px;
    padding: 0 16px;
}

.qr-text-time{
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 1px;
}

.bold-text {
    font-weight: 700;
    font-size: 36px;
}
/*---------------------------------------*/



/* Check-in page */
/*---------------------------------------*/
.memberlist-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100vw;
}

.check-in-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    position: relative;
}

.qr-substitute-checkbox {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    gap: 8px;
    margin-bottom: 54px;
}

.qr-substitute-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox-label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 1.5;
}

.custom-checkbox-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(197, 198, 204, 1);
    border-radius: 2px;
    background: white;
    transition: all 0.2s ease;
}

.qr-substitute-checkbox input[type="checkbox"]:checked + .custom-checkbox-label::before {
    background-color: #CF3C2F;
    border-color: #CF3C2F;
}

.custom-checkbox-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.qr-substitute-checkbox input[type="checkbox"]:checked + .custom-checkbox-label::after {
    opacity: 1;
}

.form-group-member {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0px 1px 10px 0px #1018280D;
    border: 0.5px solid rgba(41, 41, 41, 0.15);
    position: relative;
}


.form-group label {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: #292929;
    text-align: left;
}

.member-name-text {
    font-size: 12px;
    padding: 8px 16px 2px;
    line-height: 18px;
    width: 100%;
    text-align: left;

}

.required {
    color: #D00058;
}

.dropdown-select-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.05);
    background-color: white;
}

.dropdown-select-wrapper.list{
    border-radius: 12px 12px 0 0;
}

.custom-select {
    position: relative;
    padding: 0 16px 8px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top;
    background-size: 16px;
    -moz-appearance: none;
    color: rgba(41, 41, 41, 0.5);
}

.custom-select.selected{
    color: #292929;
}

.options-container {
    max-height: 270px;
    overflow-y: auto;
    position: absolute;
    background: white;
    width: 100%;
    top: 95%;
    z-index: 10;
    border-radius: 0 0 10px 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    display: none;
}

.dropdown-option.selected-option {
    background-color: rgba(207, 60, 47, 0.3);
    font-weight: 600;
}

.dropdown-option {
    padding: 7px 15px;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dropdown-option:hover {
    background-color: #f0f0f0;
}


.btn-next {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: white;
    background-color: #D3D3D3;
    border: 1px solid rgba(41, 41, 41, 0.3);
    border-radius: 8px;
}

.btn-next.active {
    background-color: #CF3C2F;
    cursor: pointer;
}

.qr-expired-text{
    font-weight: 400;
    letter-spacing: 0.2px;
}
/*---------------------------------------*/




/* Member on mobile view */
/*---------------------------------------*/
.attendance-record-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 80px;
}

.attendance-text{
    padding: 0 16px;
}

.attendance-datetime {
    font-size: 12px;
    font-weight: 700;
    color: #CF3C2F;
    text-transform: uppercase;
}

.attendance-title {
    font-size: 66px;
    font-weight: 700;
    line-height: 70px;
    text-transform: uppercase;
    letter-spacing: 7px;
    margin: 0 0 0 10px;
}

.message {
    font-size: 16px;
    font-weight: 400;
    color: #292929;
}

.highlight {
    font-weight: 700;
    color: #CF3C2F;
}

.confirm-btn {
    line-height: 16px;
    font-weight: 500;
    color: #FFFFFF;
    font-size: 16px;
    background-color: #CF3C2F;
    border-radius: 8px;
    width: 100%;
    padding: 18px 0;
    border: none;
}

.confirm-btn.active{
    cursor: pointer;
}

.confirm-btn.inactive{
    background-color: #D3D3D3;
    border: 1px solid rgba(41, 41, 41, 0.3);
    pointer-events: none;
}

.attendance-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.not-me {
    display: block;
    color: #CF3C2F;
    font-size: 12px;
    line-height: 21px;
    font-weight: 500;
    align-self: center;
}

.attendance-qr-expired-container{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/*---------------------------------------*/


@media (max-width: 576px) {
    .logo {
        width: 80px;
        margin-bottom: 20px;
    }

    .qr-code {
        max-width: 230px;
        height: auto;
    }
}


@media (max-width: 480px) {
    .logo {
        margin-bottom: 20px;
    }

    .btn {
        max-width: 280px;
    }

    .qr-date {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .qr-text {
        letter-spacing: 1px;
        font-size: 24px;
    }

    .bold-text {
        font-size: 28px;
    }
}

@media (max-height: 768px) {
    .container{
        padding: 30px 0;
    }
}
