.lmn-bd {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: var(--putih);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--hijau-utama) 0%, var(--hijau-tua) 100%);
    color: var(--putih);
    padding: 1.5rem;
    text-align: center;
}

.form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.form-title i {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
}

.form-title h1 {
    font-size: 1.5rem;
    margin: 0;
}

.form-title p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
    width: 100%;
}

.form-period {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.form-body {
    padding: 1.5rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    position: relative;
}

.step-line.active {
    background: var(--hijau-utama);
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--putih);
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--abu);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.step-dot.active {
    background: var(--hijau-utama);
    border-color: var(--hijau-utama);
    color: var(--putih);
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--hijau-gelap);
    border-color: var(--hijau-gelap);
    color: var(--putih);
}

.step-label {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--abu);
    white-space: nowrap;
    font-weight: 500;
    min-width: max-content;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: var(--hijau-tua);
    font-size: 0.875rem;
}

.form-label i {
    color: var(--hijau-utama);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--putih);
    color: var(--abu-gelap);
}

.form-control:focus {
    outline: none;
    border-color: var(--hijau-utama);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-control.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid transparent;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hijau-utama) 0%, var(--hijau-tua) 100%);
    color: var(--putih);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--hijau-utama);
    border: 2px solid var(--hijau-utama);
}

.btn-secondary:hover {
    background: var(--hijau-pastel);
    transform: translateY(-2px);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h4 {
    color: var(--hijau-utama);
    border-left: 3px solid var(--hijau-utama);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.form-preview {
    background: var(--hijau-pastel);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--hijau-utama);
}

.form-preview h5 {
    color: var(--hijau-tua);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

#previewContent {
    background: var(--putih);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    max-height: 200px;
    overflow-y: auto;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 600;
    color: var(--hijau-tua);
    min-width: 120px;
}

.preview-value {
    color: var(--abu-gelap);
    flex: 1;
    text-align: right;
    word-break: break-word;
}

.form-closed {
    text-align: center;
    padding: 3rem 1rem;
}

.form-closed i {
    font-size: 3rem;
    color: var(--abu);
    margin-bottom: 1rem;
}

.form-closed h4 {
    color: var(--hijau-tua);
    margin-bottom: 0.75rem;
}

.form-closed p {
    color: var(--abu);
    margin-bottom: 1.5rem;
}

.error-text {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .lmn-bd {
        padding: 1rem;
        min-height: calc(100vh - 70px);
    }

    .form-container {
        margin: 0 0.5rem;
        border-radius: 8px;
    }

    .form-header {
        padding: 1.25rem;
    }

    .form-body {
        padding: 1.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-indicator {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .step-dot {
        width: 32px;
        height: 32px;
    }

    .step-label {
        font-size: 0.7rem;
        top: 36px;
    }

    .step-buttons {
        flex-direction: column;
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem;
    }

    .form-title {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-title h1 {
        font-size: 1.25rem;
        text-align: center;
    }

    .form-title p {
        text-align: center;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .lmn-bd {
        padding: 0;
        background: var(--putih);
    }

    .form-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: calc(100vh - 70px);
    }

    .form-header {
        border-radius: 0;
        padding: 1rem;
    }

    .form-body {
        padding: 1rem;
    }

    .step-indicator {
        gap: 0.25rem;
    }

    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-label {
        display: none;
    }

    .step h4 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .form-control {
        padding: 0.625rem;
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .form-preview {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .form-container {
        max-width: 1000px;
    }

    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .lmn-bd {
        padding: 0.5rem;
        align-items: flex-start;
    }

    .form-container {
        margin: 1rem auto;
    }

    .form-header {
        padding: 0.75rem;
    }

    .form-body {
        padding: 0.75rem;
    }

    .step-indicator {
        margin-bottom: 1rem;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .step-buttons {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
}

@media print {
    .lmn-bd {
        background: none;
        padding: 0;
    }

    .form-container {
        box-shadow: none;
        border: 1px solid #000;
    }

    .step-buttons,
    .step-indicator,
    .form-header {
        display: none;
    }

    .step {
        display: block !important;
    }
}