/* Order form. Colours come from CSS variables set per form. */
.jso-form-wrap {
    --jso-primary: #dc2626;
    --jso-on-primary: #ffffff;
    --jso-bg: #f8f9fa;
    --jso-text: #333333;
    --jso-note-bg: #fef3c7;
    --jso-note-border: #f59e0b;
    --jso-note-text: #92400e;
    --jso-success: #10b981;
    padding: 40px 0;
}

.jso-form-wrap *,
.jso-form-wrap *::before,
.jso-form-wrap *::after {
    box-sizing: border-box;
}

.jso-form-wrap .jso-order-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--jso-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jso-form-wrap .jso-heading {
    text-align: center;
    margin: 0 0 30px;
    color: var(--jso-primary);
}

.jso-form-wrap .jso-group {
    margin-bottom: 20px;
}

.jso-form-wrap .jso-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--jso-text);
}

.jso-form-wrap .jso-single-product {
    color: var(--jso-text);
    font-size: 1.1rem;
}

.jso-form-wrap .jso-group input,
.jso-form-wrap .jso-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: #fff;
    color: #222;
}

.jso-form-wrap .jso-group input:focus,
.jso-form-wrap .jso-group select:focus {
    outline: none;
    border-color: var(--jso-primary);
}

.jso-form-wrap .jso-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.jso-form-wrap .jso-total {
    background: var(--jso-primary);
    color: var(--jso-on-primary);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 15px 0;
}

.jso-form-wrap .jso-disclaimer {
    background: var(--jso-note-bg);
    border: 2px solid var(--jso-note-border);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: var(--jso-note-text);
}

.jso-form-wrap .jso-disclaimer h4 {
    color: var(--jso-note-text);
    margin: 0 0 15px;
    text-align: center;
}

.jso-form-wrap .jso-disclaimer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jso-form-wrap .jso-disclaimer li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.jso-form-wrap .jso-disclaimer li::before {
    content: "•";
    color: var(--jso-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.jso-form-wrap .jso-button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background: var(--jso-primary);
    color: var(--jso-on-primary);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    white-space: normal;
}

.jso-form-wrap .jso-button:hover {
    filter: brightness(0.9);
}

.jso-form-wrap .jso-button:disabled {
    background: #ccc;
    color: #555;
    cursor: not-allowed;
    filter: none;
}

.jso-form-wrap .jso-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
}

.jso-form-wrap .jso-success {
    background: var(--jso-success);
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

.jso-form-wrap .jso-success h3 {
    color: #fff;
    margin: 0 0 10px;
}

.jso-form-wrap .jso-whatsapp-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    background: #25d366;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.jso-form-wrap [hidden] {
    display: none !important;
}

.jso-form-wrap .jso-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .jso-form-wrap .jso-order-form {
        padding: 20px;
    }

    .jso-form-wrap .jso-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
