/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: #dbdbdb;
    color: #212121;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    margin: 3vw auto;
}

.container {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 70%;
    margin: auto;
    max-width: 100%;
    min-width: 300px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.header-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.qris-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px; /* bisa disesuaikan */
    height: auto;
}

.center-title {
    text-align: center;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: bold;
}

input {
    width: 97.5%;
    padding: 8px;
    /* margin-right: 10px; */
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #000000;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: black;
    font-size: 12px;
}

.input-disabled {
    background-color: #f0f0f0 !important; /* Abu-abu */
    color: #888888 !important;            /* Abu gelap */
    cursor: not-allowed !important;       /* Tanda tidak bisa diubah */
  }

.hint {
    font-size: 10px;
    color: #bebebf;
    margin-top: 5px;
}

.input-method-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* background-color: #f9f9f9; */
}

.input-method-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.input-method-group input[type="radio"] {
    margin-right: 8px;
    accent-color: black;
}

.nominal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.nominal {
    background-color: rgb(28, 28, 28);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    flex: 1 0 30%; 
    text-align: center;
    /* min-width: 80px;  */
}

.manual-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-input label {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap; 
    font-weight: bold;
}

.manual-input input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.nominal:hover {
    background-color: rgb(230, 228, 228);
    color: rgb(28, 28, 28);
}

.nominal.active {
    background-color: #81C784;
    color: black;
    font-weight: bold;
}

.info-confirm {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.row {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: start;
    gap: 10px;
}

.label-info {
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
}

.value-info {
    text-align: left;
    word-break: break-word;
}

.total {
    padding: 10px;
    border-radius: 5px;
    color: #ffffff;
    margin: 15px 0;
    font-size: 18px;
    text-align: left;
}

.submit {
    /* background: linear-gradient(to right, #121231, #182e52); */
    background-color: rgb(28, 28, 28);
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.submit:hover {
    opacity: 0.9;
    background-color: rgb(230, 228, 228);
    color: rgb(28, 28, 28);
}

.submit:disabled {
    background-color: grey;
    cursor: not-allowed;
}

.qrcode img,
.qrcode canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.qrcode {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 10px;
    border: 5px solid black; 
    display: inline-block;
    width: fit-content;
    max-width: 300px;
}
/* 
#totalAmount {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
} */

.message-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

.message-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #212121;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .nominal {
        flex: 1 0 45%;
    }
}

@media screen and (max-width: 480px) {
    .nominal {
        flex: 1 0 100%;
    }

    .header-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qris-logo {
        position: static;
        transform: none;
        margin-top: 10px;
        width: 60px; 
    }

    .center-title {
        text-align: center;
    }
}