.form-error {
    display: none;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: #cc4b37;
}

.form-error.is-visible {
    display: block;
}

/* Remove all red background/border styling */
.is-invalid-input {
    border-color: #cacaca;
    background-color: white;
}

.is-invalid-input:focus {
    border-color: #1779ba;
    box-shadow: 0 0 0 1px #1779ba;
}

/* Prevent number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Payment method styles */
.payment-method-selector {
    margin-top: 0.5rem;
}

.payment-options-horizontal {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-option {
    flex: 1;
}

.payment-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #cacaca;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.radio-circle:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1779ba;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.payment-text {
    font-size: 0.9rem;
    color: #0a0a0a;
}

/* Active states */
.custom-radio:checked + .payment-label {
    border-color: #1779ba;
    background: rgba(23, 121, 186, 0.05);
}

.custom-radio:checked + .payment-label .radio-circle {
    border-color: #1779ba;
}

.custom-radio:checked + .payment-label .radio-circle:before {
    transform: translate(-50%, -50%) scale(1);
}

/* Hover states */
.payment-label:hover {
    border-color: #1779ba;
    background: rgba(23, 121, 186, 0.02);
}

@media screen and (max-width: 639px) {
    .payment-options-horizontal {
        flex-direction: column;
    }

    .payment-option {
        margin-bottom: 0.5rem;
    }
}

/* Radio button styles */
.radio {
    display: inline-block;
    width: 100%;
    padding-top: 7px;
}

@media screen and (min-width: 768px) {
    .radio {
        width: unset;
        margin-right: 67px;
    }

    .radio:last-of-type {
        margin-right: 0;
    }
}

.radio input[type='radio'] + label {
    margin-bottom: 0;
    font-size: 18px;
    letter-spacing: 1.44px;
    user-select: none;
}

.radio input[type='radio']:checked,
.radio input[type='radio']:not(:checked) {
    position: absolute;
    left: -99999px;
}

.radio input[type='radio']:checked + label,
.radio input[type='radio']:not(:checked) + label {
    display: inline-block;
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    color: #0a4d2c; /* emad-primary color */
}

.radio input[type='radio']:checked + label:before,
.radio input[type='radio']:not(:checked) + label:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 3px;
    left: 0;
    background: #ffffff; /* emad-white */
    border: 2px solid #0a4d2c; /* emad-primary */
    border-radius: 100%;
}

.radio input[type='radio']:checked + label:after,
.radio input[type='radio']:not(:checked) + label:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 8px;
    left: 5px;
    background: #0a4d2c; /* emad-primary */
    border-radius: 100%;
    transition: all 0.2s ease;
}

.radio input[type='radio']:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}

.radio input[type='radio']:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

/* Required field indicator */
.required {
    color: #cc4b37;
    margin-left: 3px;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

.control-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.clearfix {
    clear: both;
} 