form {
    width: 100%;
}

form label,
form input,
form select,
form .StripeElement {
    width: 100%;
    margin-left: 0;
}

form input[type="number"],
form .StripeElement {
    border-style: solid;
    border-color: #E4E4E4;
    border-width: 1px;
    border-radius: 4px;
    line-height: 18px;
    padding: 6px 10px 6px 20px;
    margin: 10px;
}

form input[type="text"],
form input[type="password"],
form input[type="search"],
form input[type="number"],
form .StripeElement,
form select,
form textarea {
    width: 100%;
    margin-bottom: 15px;
    margin-left: 0;
    padding-left: 10px;
}

/*
 * Layout
 */

.l-col-half {
    width: 50%;
    float: left;
    padding-right: 20px;
}

.l-col-half:last-of-type {
    padding-right: 0;
}

.l-col-third {
    width: 33.3333333%;
    float: left;
    padding-right: 20px;
}

.l-col-third:last-of-type {
    padding-right: 0;
}

.l-col-two-thirds {
    width: 66.6666666%;
    float: left;
    padding-right: 20px;
}

/*
 * Payment styles
 */

.p-payment__section {
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 600px;
}

.p-payment__card {
    float: left;
    width: 340px;
    height: 195px;
    padding: 20px;
    margin-left: 5px;
    margin-bottom: 5px;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0px 1px 5px 1px rgba(51,51,51,0.20);
    background: #fff url(https://assets.ubuntu.com/v1/d0a306c7-credit-card-bg.png) no-repeat top right;
    position: relative;
    overflow: hidden;
}

.p-payment__card-number {
    font-weight: 600;
    margin-top: 87px;
    margin-left: 0;
}

.p-payment__card-name {
    margin-left: 0;
}

.p-payment__card-number > * {
    margin-right: 10px;
}

.p-payment__card-type {
    width: 55px;
    height: 155px;
    background: url(https://assets.ubuntu.com/v1/cbfedcd6-card-types.svg) no-repeat;
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.p-payment__details {
    float: left;
    margin-left: 50px;
}

.p-payment__details > * {
    margin-left: 0;
}

.p-payment__details-address > * {
    line-height: 24px;
    width: 100%;
    display: inline-block;
}

.p-payment__details-error {
    margin-bottom: 15px;
}

.p-payment__details-error span{
    font-weight: 600;
}

/*
 * Account type
 */

.p-payment__use {
    margin: 0 0 40px -10px;
}

.p-payment__use-label {
    padding-right: 60px;
    margin-left: 60px;
}

.p-payment__use-label:first-of-type {
    margin-left: 10px;
    border-right: 1px solid #cdcdcd;
}

/*
 * Icons pattern
 */

.p-icon--success {
    padding: 0;
    border-bottom: 0 !important;
    display: inline-block;
    vertical-align: middle;
    text-indent: 999em;
    background: url(https://assets.ubuntu.com/v1/aeec264b-green-tick.svg);
    background-size: 100% 100%;
    width: 24px;
    height: 24px;
}

.p-icon--success-grey {
    padding: 0;
    border-bottom: 0 !important;
    display: inline-block;
    vertical-align: middle;
    text-indent: 999em;
    background: url(https://assets.ubuntu.com/v1/41d09c17-grey-tick.svg);
    background-size: 100% 100%;
    width: 24px;
    height: 24px;
}

.p-icon--padlock {
    padding: 0;
    border-bottom: 0 !important;
    display: inline-block;
    vertical-align: middle;
    text-indent: 999em;
    background: url(https://assets.ubuntu.com/v1/5d2e0e21-padlock.svg);
    background-size: 100% 100%;
    width: 12px;
    height: 16px;
}

.p-icon--title {
    margin-bottom: 4px;
}

/*
 * Status
 */
label.has-error
{
    color:#df382c !important
}


label.has-warning
{
    color:#eca918 !important
}


label.has-success
{
    color:#38b44a !important
}


label.has-information
{
    color:#19b6ee !important
}

input.has-error,
.StripeElement--invalid {
    border:1px solid #df382c !important
}


input.has-warning
{
    border:1px solid #eca918 !important
}


input.has-success,
.StripeElement--complete {
    border:1px solid #38b44a !important
}


input.has-information
{
    border:1px solid #19b6ee !important
}

select.has-error
{
    border:1px solid #df382c !important
}


select.has-warning
{
    border:1px solid #eca918 !important
}


select.has-success
{
    border:1px solid #38b44a !important
}


select.has-information
{
    border:1px solid #19b6ee !important
}
