/* Schedule Truck page: one form, centered on the screen */
.truck-page {
    margin: 0;
}

.truck-page .pannel {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
}

.truck-page .ections {
    margin-left: auto;
}

.truck-page .pBottom {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow-y: auto;
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
}

.truck-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 440px;
    margin: auto; /* centered both ways; still scrolls from the top when taller than the screen */
    padding: 24px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
}

.truck-form h1 {
    margin: 0;
    font-size: 22px;
}

.truck-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.truck-field[hidden] {
    display: none;
}

.truck-field > span {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.truck-form select,
.truck-form textarea,
.truck-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 16px; /* 16px+ so iPhones don't zoom in on focus */
}

.truck-form textarea {
    resize: vertical;
}

.truck-form input[hidden] {
    display: none;
}

/* Today · Tomorrow · Pick date */
.truck-days {
    display: flex;
    gap: 8px;
}

.truck-days button {
    flex: 1;
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.truck-days button.picked {
    background: #000;
    border-color: #000;
    color: #fab519;
}

.truck-submit {
    min-height: 48px;
    border: none;
    border-radius: 8px;
    background: #fab519;
    color: #000;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.truck-submit:disabled {
    opacity: 0.6;
    cursor: default;
}
