/* Frontend Form */
.oxj-card {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media screen and (max-width: 480px) {
    .oxj-card {
        margin: 15px auto;
        padding: 18px;
        border-radius: 10px;
    }
}

.oxj-field {
    margin-bottom: 20px;
}

.oxj-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.oxj-label .required {
    color: #e5484d;
}

.oxj-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.oxj-input:focus {
    outline: none;
    border-color: #2f6feb;
    box-shadow: 0 0 0 3px rgba(47,111,235,0.12);
}

/* Select fields get their own treatment: a custom arrow (so the native
   one never overlaps long option text) and room on the right so the
   chosen value never runs into the arrow. */
select.oxj-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23666' d='M1 1l6 6 6-6' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Radio (and Product Price & Quantity, which also renders as radio)
   options as proper touch-friendly choice cards, instead of a bare
   native radio dot with text crammed right next to it. */
.oxj-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.oxj-radio:hover {
    border-color: #2f6feb;
    background: #f7f9ff;
}

.oxj-radio input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2f6feb;
}

.oxj-radio:has(input[type="radio"]:checked) {
    border-color: #2f6feb;
    background: #f0f4ff;
}

.oxj-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 15px;
    cursor: pointer;
}

.oxj-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2f6feb;
    flex-shrink: 0;
}

@media screen and (max-width: 480px) {
    .oxj-radio {
        padding: 14px;
        font-size: 15px;
    }

    select.oxj-input {
        font-size: 16px; /* keeps iOS from auto-zooming on focus */
        padding-right: 36px;
    }
}

.oxj-submit-btn {
    background: #2f6feb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.oxj-submit-btn:hover {
    background: #2559c4;
}

.oxj-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.oxj-response {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
}

.oxj-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.oxj-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

