
.driver-finish-modal[hidden] {
    display: none !important;
}

.driver-finish-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(48, 43, 39, 0.36);
    backdrop-filter: blur(6px);
}

.driver-finish-panel {
    width: min(100%, 520px);
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px;
    border-radius: 28px;
    background: #fffdfb;
    box-shadow: 0 24px 70px rgba(48, 43, 39, 0.18);
}

.driver-finish-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.driver-finish-kicker {
    display: block;
    margin-bottom: 5px;
    color: #8c7969;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.driver-finish-head h2 {
    margin: 0;
    color: #302b27;
    font-size: 24px;
}

.driver-finish-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 14px;
    background: #f3ede6;
    color: #5a4e45;
    font-size: 21px;
    cursor: pointer;
}

.driver-finish-trip {
    margin-bottom: 18px;
    padding: 14px 15px;
    border-radius: 18px;
    background: #f6f2ec;
    color: #5f534a;
    font-size: 14px;
    line-height: 1.65;
}

.driver-finish-step {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e2d8ce;
    border-radius: 21px;
    background: #fff;
}

.driver-finish-step-title {
    margin-bottom: 4px;
    color: #3d3732;
    font-size: 15px;
    font-weight: 800;
}

.driver-finish-step-description {
    margin-bottom: 13px;
    color: #817267;
    font-size: 12px;
    line-height: 1.5;
}

.driver-finish-upload {
    display: block;
    padding: 18px;
    border: 1px dashed #c8b9aa;
    border-radius: 18px;
    background: #faf7f3;
    text-align: center;
    cursor: pointer;
}

.driver-finish-upload input {
    display: none;
}

.driver-finish-upload strong,
.driver-finish-upload span {
    display: block;
}

.driver-finish-upload strong {
    margin-bottom: 5px;
    color: #423a34;
}

.driver-finish-upload span {
    color: #8a7a6c;
    font-size: 12px;
}

.driver-finish-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    box-sizing: border-box;
    margin-top: 12px;
    border-radius: 16px;
}

.driver-finish-status {
    min-height: 21px;
    margin: 8px 0 12px;
    color: #75685d;
    font-size: 13px;
    line-height: 1.5;
}

.driver-finish-submit,
.driver-finish-cancel {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 17px;
    font: inherit;
    font-weight: 800;
}

.driver-finish-submit {
    background: #8c544b;
    color: #fff;
}

.driver-finish-submit:disabled {
    opacity: 0.55;
}

.driver-finish-cancel {
    margin-top: 9px;
    background: #f3ede6;
    color: #574b42;
    cursor: pointer;
}

body.driver-finish-lock {
    overflow: hidden;
}
