/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    padding: 0 10px;
    min-height: 100vh;
    align-items: center;
    background: #2a3032;
    justify-content: center;
}

/* QR Box */
.qr_box {
    max-width: 410px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #000;
    padding: 20px 25px;
    transition: height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.qr_box.active {
    height: auto;
}

/* Header */
header h1 {
    font-size: 21px;
    font-weight: 500;
    text-align: center;
}

header p {
    margin-top: 5px;
    color: #575757;
    font-size: 16px;
    text-align: center;
}

/* Form Styles */
.form {
    margin: 20px 0 25px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #575757;
    font-weight: bold;
}

.form input[type="text"],
.form input[type="radio"] {
    width: 100%;
    height: 45px;
    border: 1px solid #999;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

.form input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

/* Buttons */
.form button,
.redirect-button {
    width: 100%;
    height: 50px;
    background: #42a22b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form button:hover,
.redirect-button:hover {
    background: #369722;
}

/* QR Code Styles */
.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.qr_box.active .qr-code {
    opacity: 1;
    pointer-events: auto;
}

.qr-code img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 430px) {
    .qr_box {
        width: 100%;
        padding: 16px 20px;
    }

    header h1 {
        font-size: 18px;
    }

    header p {
        font-size: 14px;
    }

    .form input {
        height: 40px;
    }

    .form button,
    .redirect-button {
        height: 45px;
    }
}