* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    width: min(100% - 32px, 1000px);
    margin: 40px auto;
}


/* HEADER */

.header {
    text-align: center;
    margin-bottom: 35px;
}

.badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    background: #e8f7ee;
    color: #168447;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .5px;
}

.header h1 {
    margin: 15px 0 10px;
    font-size: 36px;
    line-height: 1.15;
}

.header p {
    color: #6b7280;
    font-size: 15px;
}


/* PROGRESS */

.progress-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    white-space: nowrap;
}

.progress-step.active {
    color: #168447;
    font-weight: bold;
}

.number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-step.active .number {
    background: #168447;
    color: white;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 12px;
}


/* CARD */

.card {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 35px rgba(0,0,0,.06);
}


/* TITLE */

.step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.step-title > span {
    font-size: 28px;
    font-weight: bold;
    color: #168447;
}

.step-title h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.step-title p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* FORM */

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 15px;
}

.form-group label small {
    color: #9ca3af;
    font-weight: normal;
}


/* UPLOAD */

.upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: #fafafa;
}

.upload-box:hover {
    border-color: #168447;
    background: #f4fbf7;
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.upload-box strong {
    display: block;
    font-size: 16px;
}

.upload-box p {
    margin: 7px 0;
    color: #6b7280;
    font-size: 13px;
}

.upload-box span {
    color: #9ca3af;
    font-size: 11px;
}


/* PREVIEW */

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.preview-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.file-name {
    padding: 8px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6b7280;
}

.remove-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: white;
    cursor: pointer;
    font-size: 18px;
}


/* VIDEO */

.video-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    background: white;
}

.video-input span {
    font-size: 18px;
}

.video-input input {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 14px;
}

.helper {
    margin-top: 7px;
    color: #9ca3af;
    font-size: 12px;
}


/* BUTTON */

.button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 35px;
}

.btn-primary {
    border: none;
    border-radius: 10px;
    background: #168447;
    color: white;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background: #116b38;
}

.btn-primary:disabled {
    opacity: .6;
    cursor: wait;
}


/* STATUS */

.status-message {
    display: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 13px;
}

.status-message.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
}

.status-message.success {
    display: block;
    background: #ecfdf5;
    color: #047857;
}


/* FOOTER */

.footer {
    text-align: center;
    margin-top: 25px;
    color: #9ca3af;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 650px) {

    .container {
        width: min(100% - 20px, 1000px);
        margin: 20px auto;
    }

    .header h1 {
        font-size: 28px;
    }

    .card {
        padding: 20px;
    }

    .progress-wrapper {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .progress-line {
        min-width: 25px;
    }

    .progress-step span {
        display: none;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-wrapper {
        display: block;
    }

    .btn-primary {
        width: 100%;
    }

}

/* =========================
   MULTIPLE VIDEO
========================= */

.video-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.video-row .video-input {
    flex: 1;
}

.video-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    background: white;
}

.video-input span {
    font-size: 18px;
}

.video-input input {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 14px;
}

.remove-video {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 22px;
    cursor: pointer;
}

.remove-video:hover {
    background: #fecaca;
}

.add-video-btn {
    margin-top: 8px;
    border: 1px dashed #168447;
    background: #f4fbf7;
    color: #168447;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.add-video-btn:hover {
    background: #e8f7ee;
}


/* MOBILE */

@media (max-width: 650px) {

    .video-row {
        gap: 7px;
    }

    .remove-video {
        width: 40px;
        height: 40px;
    }

}
.product-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.product-photo-item {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    background: #f9fafb;
}

.product-photo-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.product-photo-name {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    word-break: break-word;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-riwayat {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #168447;
    border-radius: 10px;
    color: #168447;
    background: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.btn-riwayat:hover {
    background: #168447;
    color: #fff;
}