* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
}

button,
input {
    font: inherit;
}

.voucher-page {
    padding: 60px 15px;
}

.voucher-panel {
    text-align: center;
}

.voucher-content {
    display: inline-block;
    text-align: left;
}

.centered {
    text-align: center;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff9f00;
    animation: loading-dot 0.9s infinite ease-in-out;
}

.loading-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loading-dot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.voucher-title {
    margin: 0 0 30px;
    font-size: 38px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.voucher-description {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.5;
}

.voucher-form {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.voucher-form > label {
    display: flex;
    align-items: center;
    width: 115px;
    height: 46px;
    font-size: 18px;
}

.voucher-field {
    width: 500px;
}

.voucher-field input {
    width: 100%;
    height: 46px;
    padding: 10px;
    border: 1px solid #d3d3d3;
}

.voucher-form > .voucher-button {
    height: 46px;
}

.voucher-field input.error,
#policy_agree_label.error::before {
    border-color: #f44336;
}

.policy-checkbox {
    position: relative;
    margin-bottom: 20px;
    padding-left: 26px;
    font-size: 16px;
}

.policy-checkbox input {
    display: none;
}

.policy-checkbox label {
    line-height: 1.3;
    cursor: pointer;
}

.policy-checkbox a,
.policy-checkbox a:hover,
.policy-checkbox a:focus {
    color: #ff9f00;
    font-weight: 400;
    text-decoration: none;
}

.policy-checkbox label::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #d3d3d3;
    background: #fff;
}

.policy-checkbox input:checked + label::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.error-message {
    margin-top: 8px;
    color: #f44336;
    font-size: 16px;
}

.policy-error {
    margin: -12px 0 20px 26px;
    color: #f44336;
    font-size: 16px;
}

.voucher-button {
    border: 0;
    background: #ff9f00;
    color: #fff;
    padding: 9px 30px;
    font-size: 18px;
    line-height: 1.5;
    cursor: pointer;
}

.voucher-button:hover,
.voucher-button:disabled {
    background: #aaa;
}

.voucher-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.voucher-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.voucher-actions a {
    text-decoration: none;
}

@media (max-width: 600px) {
    .voucher-page {
        padding: 40px 15px;
    }

    .voucher-title {
        font-size: 30px;
    }

    .voucher-form {
        flex-direction: column;
        align-items: stretch;
    }

    .voucher-form > label {
        width: auto;
    }

    .voucher-field {
        width: 100%;
    }

    .voucher-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .voucher-button {
        width: 100%;
    }
}
