:root {
    --primary: #0D9488;         /* teal-600 */
    --primary-hover: #0F766E;   /* teal-700 */
    --primary-light: #F0FDFA;   /* teal-50 */
    --primary-glow: rgba(13, 148, 136, 0.25);
    --secondary: #6366F1;       /* indigo accent */
    --bg-color: #F8FFFE;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --input-bg: #F1F5F9;
    --success: #10B981;
    --shadow-soft: 0 10px 40px rgba(13, 148, 136, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 1.5rem 1rem;
}

/* ─── Background Blobs ─────────────────────────── */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}
.blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #5EEAD4, #0D9488);
    top: -120px;
    left: -100px;
}
.blob-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #818CF8, #6366F1);
    bottom: 60px;
    right: -60px;
}
.blob-3 {
    width: 220px;
    height: 220px;
    background: #CCFBF1;
    top: 50%;
    left: 25%;
    opacity: 0.45;
}

/* ─── Container ────────────────────────────────── */
.app-container {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 2.25rem 2rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

/* ─── Stepper Header ──────────────────────────── */
.stepper-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.main-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
}
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 5px;
}
.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.step.active .step-circle,
.step.completed .step-circle {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px var(--primary-glow);
    transform: scale(1.08);
}
.step.active .step-label,
.step.completed .step-label {
    color: var(--primary);
}
.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 -10px;
    margin-bottom: 24px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}
.step-line.completed {
    background-color: var(--primary);
}

/* ─── Form Steps ─────────────────────────────── */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.form-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.event-title-display {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ─── Info Row ────────────────────────────────── */
.lomba-info-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.25rem 1rem;
    margin-bottom: 1.75rem;
}
.lomba-info-item {
    flex: 1;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.lomba-info-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.lomba-sub {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    font-weight: 500;
}
.lomba-divider {
    width: 1px;
    background: var(--border-color);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* ─── Poster ──────────────────────────────────── */
.poster-placeholder {
    width: 100%;
    height: 380px; /* Tinggi maksimal agar pas di iframe 1200px */
    background: #F1F5F9;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.poster-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Memastikan poster tidak terpotong */
    background: #F8FAFC;
}
.poster-text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.poster-subtext {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ─── Form Inputs ─────────────────────────────── */
.form-group {
    margin-bottom: 1.4rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}
input[type="text"] {
    width: 100%;
    background-color: var(--input-bg);
    border: 1.5px solid transparent;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.93rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: inherit;
}
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.radio-item:hover {
    background: #F8FAFC;
    border-color: var(--primary-glow);
}
.radio-item input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
}
.radio-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* ─── Buttons ──────────────────────────────────── */
.action-buttons {
    display: flex;
    margin-top: 2rem;
}
.action-buttons.right         { justify-content: flex-end; }
.action-buttons.space-between { justify-content: space-between; }
.action-buttons.center        { justify-content: center; }

.btn {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-secondary {
    background-color: var(--input-bg);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: #E2E8F0;
    transform: translateY(-1px);
}

/* ─── Step 3 — Success ─────────────────────────── */
.step-success {
    text-align: center;
    padding: 2.5rem 0;
}
.success-icon {
    font-size: 5.5rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    display: block;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.step-success h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.step-success p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .app-container {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }
    .stepper-header {
        margin-bottom: 2rem;
    }
    .step-label {
        font-size: 0.72rem;
        text-align: center;
        max-width: 60px;
    }
    .lomba-info-row {
        padding: 1rem 0.5rem;
    }
    .lomba-info-item p {
        font-size: 0.8rem;
    }
    .poster-text {
        font-size: 1.6rem;
    }
    .poster-subtext {
        font-size: 1.2rem;
    }
}
