* {
    box-sizing: border-box;
}

body{
    margin:0;
    font-family:Arial, sans-serif;
    color:white;
}

/* BACKGROUND */
body::before{
    content:"";
    position:fixed;
    inset:0;
    background:url('imgs/orderbg.png') center/cover no-repeat;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    z-index:-1;
}

/* LAYOUT */
.order-container{
    display:flex;
    justify-content:center;
    padding:80px 20px;
}

/* GLASS CARD */
.glass{
    width:100%;
    max-width:850px;

    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    padding:40px;
    border-radius:20px;

    border:1px solid rgba(255,255,255,0.15);
    box-shadow:0 20px 60px rgba(0,0,0,0.4);
}

/* HEADINGS */
h4{
    margin-top:25px;
    color:#f4c400;
}

/* INPUTS */
input, select, textarea{
    width:100%;
    padding:12px;
    margin-bottom:12px;

    border-radius:10px;
    border:1px solid #f4c400;

    background:rgba(0,0,0,0.4);
    color:white;
    outline:none;
}

input:focus, select:focus, textarea:focus{
    box-shadow:0 0 0 2px rgba(244,196,0,0.3);
}

/* BUTTON */
.btn-submit{
    width:100%;
    padding:14px;
    background:#f4c400;
    border:none;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
}

.btn-submit:hover{
    background:white;
}

/* =========================
   ORDER BUILDER
========================= */

#addPlateBtn{
    background:#f4c400;
    border:none;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    margin-bottom:15px;
}

#addPlateBtn:hover{
    background:white;
}

.plate-item{
    background:rgba(0,0,0,0.35);
    border:1px solid rgba(255,255,255,0.15);
    padding:15px;
    border-radius:14px;
    margin-top:10px;
    transition:0.3s;
}

.plate-item:hover{
    transform:translateY(-3px);
    border-color:#f4c400;
}

.plate-item select,
.plate-item input{
    width:100%;
    margin-top:8px;
}

.remove-btn{
    margin-top:10px;
    background:#ff3b3b;
    color:white;
    border:none;
    padding:8px 10px;
    border-radius:8px;
    cursor:pointer;
}

.remove-btn:hover{
    background:red;
}

#eftNotice{
    display:none;

    margin-top:15px;
    padding:20px;

    border-radius:15px;

    background:rgba(244,196,0,0.12);

    border:1px solid rgba(244,196,0,0.35);
}

#eftNotice h5{
    color:#f4c400;
    margin-bottom:15px;
}

#eftNotice p{
    margin:6px 0;
}

label{
    display:block;
    margin-top:10px;
    margin-bottom:5px;
    font-weight:bold;
}

small{
    display:block;
    margin-top:-5px;
    margin-bottom:15px;
    color:#d6d6d6;
    transition: color 0.2s, font-weight 0.2s;
}

small.doc-error{
    color:#ff4d4d;
    font-weight:bold;
}

.form-error-banner{
    background: rgba(255,77,77,0.12);
    border: 1px solid rgba(255,77,77,0.4);
    color: #ff8a8a;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.glass p{
    color:#d6d6d6;
    line-height:1.6;
}

/* MOBILE */
@media(max-width:768px){
    .glass{
        padding:25px;
    }
}
/* ── Customer Type Toggle ──────────────────────────────────── */
.type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.type-option {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.type-option input[type="radio"] {
    display: none;
}

.type-option i {
    font-size: 1.6rem;
    color: #888;
    margin-top: 2px;
    flex-shrink: 0;
    width: auto;
}

.type-option span {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 3px;
}

.type-option small {
    display: block;
    color: #aaa;
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
}

.type-option.active {
    border-color: #f4c400;
    background: rgba(244,196,0,0.08);
}

.type-option.active i { color: #f4c400; }

/* ── Plate line price ──────────────────────────────────────── */
.plate-line-price {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 6px;
    margin-bottom: 4px;
}

.plate-line-price strong {
    color: #f4c400;
    font-size: 1rem;
}

/* ── PO Number field ───────────────────────────────────────── */
.po-wrap {
    margin-top: 10px;
}

.po-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(244,196,0,0.4);
    background: rgba(0,0,0,0.4);
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.po-input::placeholder { color: #666; }
.po-input:focus { box-shadow: 0 0 0 2px rgba(244,196,0,0.25); }

/* ── Accessories Grid ──────────────────────────────────────── */
.accessories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.accessory-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.accessory-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f4c400;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.accessory-item:has(input:checked) {
    border-color: #f4c400;
    background: rgba(244,196,0,0.08);
}

.acc-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 10px;
}

.acc-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0f0f0;
    flex: 1;
}

.acc-name i { color: #f4c400; margin-right: 5px; }

.acc-price {
    font-weight: 700;
    color: #f4c400;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 52px;
    text-align: right;
}

/* ── Order Total Box ───────────────────────────────────────── */
.order-total-box {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(244,196,0,0.3);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.9rem;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.total-line:last-child { border-bottom: none; }

.total-grand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-top: 4px;
    padding-top: 10px;
}

.total-grand span:last-child { color: #f4c400; font-size: 1.3rem; }

/* ── Form error banner ─────────────────────────────────────── */
.form-error-banner {
    background: rgba(255,77,77,0.12);
    border: 1px solid rgba(255,77,77,0.4);
    color: #ff8a8a;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

small.doc-error {
    color: #ff4d4d;
    font-weight: bold;
}

@media (max-width: 600px) {
    .accessories-grid { grid-template-columns: 1fr; }
    .type-toggle { flex-direction: column; }
}

/* ── Accessory quantity dropdown — always visible ──────────── */
.acc-qty {
    background: rgba(0,0,0,0.5);
    border: 1px solid #f4c400;
    border-radius: 8px;
    color: #f4c400;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    outline: none;
    width: 56px;
    flex-shrink: 0;
    display: inline-block !important; /* always visible, never hidden */
}

.acc-qty:focus {
    box-shadow: 0 0 0 2px rgba(244,196,0,0.25);
}

/* Row wrapper */
.acc-row {
    display: contents;
}

/* acc-qty is always visible — no toggle needed */
