/* Variables */
:root {
    --color-primary: #0044d4;
    --color-text: #2c3e50;
    --color-border: #ccc;
    --color-danger: #e74c3c;
}
* {
    box-sizing: border-box;
}

body {
    color: var(--color-text);
    font:
        16px -apple-system,
        Avenir,
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    background: #eee;
}
.container {
    max-width: 500px;
    width: 100%;
    background-color: #fff;
    padding: 30px 20px;
    margin: 40px auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Product information */
.product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.product-name {
    font-weight: 600;
    font-size: 18px;
}
.product-total {
    font-weight: bold;
    font-size: 24px;
}

/* Form elements */
.error-message {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--color-danger);
    text-align: center;
    font-weight: bold;
    color: #fff;
}
.form .field + .field,
.form .field + .action {
    margin-top: 10px;
}
.form input,
.form button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-style: none;
}
.form input {
    border: none;
    font-size: 16px;
    margin: 0;
    outline: 0;
    padding: 15px 20px;
    width: 100%;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.form input:focus {
    color: var(--color-text);
    border-color: var(--color-primary);
}
.form input::placeholder {
    color: #aaa;
}
.form button {
    display: block;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    background: var(--color-primary);
    color: #fff;
    width: 100%;
    cursor: pointer;
}
.form button:disabled {
    opacity: 0.5;
}

/* FramePay-specific styling */
.form .rebilly-framepay {
    padding: 15px 20px;
    height: 55px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
}

.form .rebilly-framepay.rebilly-framepay-focus {
    color: var(--color-text);
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Thank you page */
.thank-you {
    text-align: center;
}

/* Helpers */
.hidden {
    display: none;
}
