.portal-page {
    min-height: 70vh;
    padding: 70px 0 90px;
    background: linear-gradient(180deg, rgba(15, 107, 83, 0.05), transparent 45%);
}

.portal-shell {
    max-width: 1050px;
}

.portal-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.portal-heading h1 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
}

.portal-heading p {
    color: var(--muted-text, #667085);
}

.portal-card {
    padding: 30px;
    border: 1px solid rgba(15, 107, 83, 0.14);
    border-radius: 26px;
    background: var(--surface-color, #fff);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.portal-card-narrow {
    max-width: 650px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-full {
    grid-column: 1 / -1;
}

.portal-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.portal-field label {
    font-weight: 700;
}

.portal-field input,
.portal-field select,
.portal-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(16, 24, 40, 0.16);
    border-radius: 14px;
    background: transparent;
    color: inherit;
    font: inherit;
}

.portal-field textarea {
    min-height: 140px;
    resize: vertical;
}

.portal-field input:disabled,
.portal-field select:disabled,
.portal-field textarea:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.portal-submit {
    width: 100%;
}

.portal-alert {
    margin-bottom: 18px;
    padding: 15px 17px;
    border-radius: 14px;
    background: #e9f8f2;
    color: #08644d;
    font-weight: 600;
}

.portal-alert.error {
    background: #fff0f0;
    color: #a32323;
}

.portal-request-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.portal-request-summary > div {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 107, 83, 0.07);
}

.portal-request-summary span {
    color: #667085;
    font-size: 14px;
}

.portal-actions,
.portal-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.portal-secondary-actions {
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 24, 40, 0.1);
}

.danger-button,
.text-button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.danger-button {
    color: #b42318;
    font-weight: 700;
}

.text-button {
    color: #475467;
}

.portal-note {
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
    background: #fff8e7;
    color: #8a5a00;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef2f6;
}

.status-new { background: #e7f8f1; color: #087755; }
.status-pending { background: #fff5d8; color: #8a5a00; }
.status-processing { background: #e7f0ff; color: #1d4e9b; }
.status-ready { background: #efe8ff; color: #6941c6; }
.status-shipped { background: #e8f4ff; color: #175cd3; }
.status-delivered { background: #e9f8ed; color: #067647; }
.status-cancelled { background: #feeceb; color: #b42318; }

@media (max-width: 760px) {
    .portal-grid,
    .portal-request-summary {
        grid-template-columns: 1fr;
    }

    .portal-card {
        padding: 22px;
    }
}


/* Track form readable fields */
.portal-card {
    color: #1f2937;
}

.portal-card .portal-field label {
    color: #1f2937;
    opacity: 1;
}

.portal-card .portal-field input,
.portal-card .portal-field select,
.portal-card .portal-field textarea {
    background: #ffffff;
    color: #111827;
    caret-color: #111827;
}

.portal-card .portal-field input::placeholder,
.portal-card .portal-field textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.portal-card .portal-field input:focus,
.portal-card .portal-field select:focus,
.portal-card .portal-field textarea:focus {
    border-color: #ff5a1f;
    outline: 3px solid rgba(255, 90, 31, 0.16);
}

.portal-card-narrow .portal-submit {
    background: #ff5a1f;
    border-color: #ff5a1f;
    color: #ffffff;
}

.portal-card-narrow .portal-submit:hover {
    background: #e94b12;
    border-color: #e94b12;
}


/* Portal cargo weight fields */
.portal-weight-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.55fr);
    gap: 10px;
}

.portal-weight-group input,
.portal-weight-group select {
    width: 100%;
    min-width: 0;
}
