* { box-sizing: border-box; font-family: Arial, sans-serif; }

body {
    background: linear-gradient(135deg, #0f9b0f, #00c853);
    margin: 0;
    padding: 15px;
}

.container {
    max-width: 600px;
    background: #fff;
    margin: auto;
    border-radius: 12px;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-row {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.logo {
    /*background: #2e7d32;*/
    color: #fff;
    padding: 15px;
    border-radius: 6px;
}

.hidden { display: none; }

/**/
/* ---------- FORM BASE ---------- */
label {
    font-weight: 600;
    color: #2e7d32;
    margin-top: 12px;
    display: block;
}

textarea,
input[type="url"],
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1.5px solid #c8e6c9;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #f9fff9;
}

textarea {
    min-height: 90px;
    resize: vertical;
    margin-bottom: 0;
}

/* focus effect */
textarea:focus,
input[type="url"]:focus,
input[type="text"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    background: #fff;
}

input[type="radio"] {
    margin-bottom: 10px;
}

/* ---------- RADIO GROUP ---------- */
.group {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f5e9, #f1fff2);
}

.group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
}

.group input[type="radio"] {
    accent-color: #2e7d32;
    transform: scale(1.1);
}

/* ---------- PESERTA CARD ---------- */
.peserta {
    background: #f9fff9;
    border: 2px solid #a5d6a7;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.peserta p {
    margin: 0 0 6px 0;
    font-weight: bold;
    color: #1b5e20;
}

.peserta small {
    display: block;
    color: #558b2f;
    margin-bottom: 10px;
    font-size: 13px;
}

/* ---------- BUTTON ---------- */
button {
    width: 100%;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 10px 22px rgba(46,125,50,0.35);
}

/* ---------- LOADING & PROGRESS ---------- */
#loadingBox {
    margin-top: 20px;
}

.loading-text {
    text-align: center;
    margin-bottom: 10px;
    color: #1b5e20;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background: #e0f2f1;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    transition: width 0.2s ease;
}

/* ---------- VIDEO PREVIEW ---------- */
.video-preview {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    display: none;
}

.video-preview iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.video-preview .info {
    padding: 10px;
    font-size: 13px;
    color: #1b5e20;
    text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
    .video-preview iframe {
        height: 180px;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    button {
        font-size: 15px;
    }
}
