body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4; 
}

.container {
    text-align: center;
    width: 90%; /* Changed from 100% to 90% for better margins */
    max-width: 400px;
    padding: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #ffffff;
}

form {
    margin-bottom: 20px;
}

label {
    display: block; 
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

#qr-code-display img {
    margin-top: 10px;
    max-width: 100%; /* Ensure QR code image is responsive */
    height: auto; /* Maintain aspect ratio */
}

#error-message {
    color: red;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px; 
    transition: background-color 0.3s;
    width: 100%; /* Make button full width */
}

button:hover {
    background-color: #218838; 
}

input[type="text"], input[type="number"], select {
    width: calc(100% - 20px); 
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box; 
}

.fee-container {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
}

.fee-label {
    margin-right: 10px;
    font-weight: bold;
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin-left: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
    button {
        font-size: 14px; /* Smaller button text on mobile */
    }

    input[type="text"], input[type="number"], select {
        font-size: 14px; /* Smaller input text on mobile */
    }

    .container {
        padding: 15px; /* Less padding on mobile */
    }
}
