.payment-form {
    margin: 0 auto;
    text-align: left;
    display: flex;
}

.payment-form label, .payment-form input {
    display: block;
    margin-bottom: 10px;
}

.payment-form label {
    font-weight: bold;
}

.payment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    height: 47px;
}

.payment-form button {
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.payment-form button:hover {
    background-color: #005a8c;
}

.flexed-inputs {
    display: flex;
}

.flexed-inputs input {
    margin-right: 20px;
}

.flexed-inputs .flexed-item:nth-last-child(1) input {
    margin: 0;
}

.flexed-inputs .flexed-item:nth-child(1) {
    margin-right: 10px;
}

.payment-form .main-card-field {
    width: 100%;
    margin-right: 10px;
    position: relative;
}

.payment-form .main-card-field span {
    position: absolute;
    bottom: 14px;
    right: 15px;
}

.payment-form .flexed-inputs {
    width: 50%;
}

.payment-form .flexed-inputs > div {
    position: relative;
}

.payment-form .flexed-inputs > div span {
    position: absolute;
    bottom: 14px;
    right: 15px;
}

@media(max-width: 850px) {
    .payment-form .flexed-inputs {
        width: 75%;
    }
}

@media(max-width: 700px) {
    .payment-form .flexed-inputs {
        width: 100%;
        flex-flow: column;
    }
    .payment-form {
        flex-wrap: wrap;
    }
    .payment-form .flexed-inputs > div {
        margin-top: 10px;
    }
}

@media(max-width: 460px) {
    .payment-form .main-card-field span {
        position: absolute;
        bottom: 60px;
        right: 0;
    }
}