/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 20px auto;
    max-width: 800px;
    background: #fafafa;
    overflow-x: hidden;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
}

.field {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: capitalize;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.autocomplete-container {
    position: relative;
}

.suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-top: none;
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
    max-height: 180px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    display: none;
}

.suggestions li {
    padding: 8px 10px;
    cursor: pointer;
}

.suggestions li:hover,
.suggestions li.active {
    background: #1976d2;
    color: white;
}

.btn {
    padding: 10px 20px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #1258a5;
}

.progress {
    width: 100%;
    background: #eee;
    height: 18px;
    border-radius: 9px;
    margin-top: 10px;
    overflow: hidden;
}

.progress > div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

/* Hamburger Menu */
#hamburgerBox {
    position: fixed;
    top: 33px;
    left: 14px;
    z-index: 10000;
}

#hamburgerBtn {
    background: #c62828;
    color: white;
    font-size: 26px;
    font-weight: 900;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#menuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s;
    z-index: 9998;
}

#menuOverlay.show {
    opacity: 1;
    pointer-events: auto;
}

#sideMenu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100svh;
    background: #ffffff;
    padding: 22px 18px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transition: 0.4s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#sideMenu .menu-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 0;
    padding-top: 60px;
}

#sideMenu.open {
    left: 0;
}

.menu-link {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 900;
    color: #1e88e5;
    text-decoration: none;
    padding: 6px 8px;
    margin: 0;
    line-height: 1.2;
    border-radius: 10px;
    transition: 0.2s;
    word-break: break-word;
}

.menu-link:active {
    background: #e3f2fd;
}

.donate-box {
    border-top: none;
}

#donateBtn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, #ff9800, #ff6d00);
    color: white;
    cursor: pointer;
}

#donateQR {
    display: none;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

#donateQR img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
}

#openUpiBtn {
    display: block;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(90deg, #43a047, #2e7d32);
    color: white;
    text-align: center;
    font-weight: 900;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
.header, .container {
    max-width: 940px;
    margin: 20px auto;
    width: 100%;
    box-sizing: border-box;
}

.header {
    padding: 14px;
    background: #fff;
    border-bottom: 2px solid #7b5e57;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

.top-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #8bc34a, #66bb6a);
    color: white;
    font-weight: 900;
    cursor: pointer;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.header .email {
    color: #6d4c41;
    font-weight: 700;
    font-size: 15px;
    display: block;
}

/* Form Container */
.container {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(123, 94, 87, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

h2 {
    text-align: center;
    color: black;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
}

label {
    color: black;
    font-weight: 900;
    margin-bottom: 6px;
    display: block;
}

input[type="text"] {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #bbb;
    font-size: 16px;
    box-sizing: border-box;
}

/* Buttons */
.btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 18px;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.btn-generate, .btn-download {
    background: linear-gradient(90deg, #e53935, #c62828);
    color: white;
}

.btn-reset {
    background: linear-gradient(90deg, #43a047, #2e7d32);
    color: white;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    box-sizing: border-box;
}

/* Progress Bar */
.progress {
    width: 100%;
    background: #ffe0b2;
    height: 34px;
    border-radius: 16px;
    margin-top: 20px;
    position: relative;
    display: none;
    box-sizing: border-box;
}

.progress > div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9800, #ff6d00);
    transition: width 0.35s ease;
}

.progress span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 22px;
    font-weight: 900;
}

/* Footer */
.footer {
    text-align: center;
    margin: 24px auto;
    font-weight: 900;
    color: #6d4c41;
}

.footer a {
    color: #0288d1;
    margin: 0 6px;
    font-size: 17px;
    font-weight: 900;
}

@media (max-width: 700px) {
    .btn-row {
        flex-direction: column;
    }
}
